Skip to content

Conversation

@ThierryBerger
Copy link
Contributor

Comment on lines 168 to 174
/// Computes the AABB of this fluid.
#[cfg(feature = "nphysics")]
pub fn compute_aabb(&self, particle_radius: Real) -> ncollide::bounding_volume::AABB<Real> {
use ncollide::bounding_volume::{self, BoundingVolume};
bounding_volume::local_point_cloud_aabb(&self.positions).loosened(particle_radius)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be kept but translated for parry ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The translation should look very similar. Parry’s point-cloud calculation function is in bounding_volume::details::local_point_cloud_aabb.

Copy link
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines 168 to 174
/// Computes the AABB of this fluid.
#[cfg(feature = "nphysics")]
pub fn compute_aabb(&self, particle_radius: Real) -> ncollide::bounding_volume::AABB<Real> {
use ncollide::bounding_volume::{self, BoundingVolume};
bounding_volume::local_point_cloud_aabb(&self.positions).loosened(particle_radius)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The translation should look very similar. Parry’s point-cloud calculation function is in bounding_volume::details::local_point_cloud_aabb.

@ThierryBerger ThierryBerger force-pushed the fix_unexpected_features branch from 3403bf7 to 14f5885 Compare September 6, 2024 13:42
@ThierryBerger ThierryBerger force-pushed the fix_unexpected_features branch from c49ee7d to d75d412 Compare September 9, 2024 09:15
@ThierryBerger ThierryBerger merged commit 1b57c18 into dimforge:master Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants