Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation and remove nphysics mentions #60

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Sep 6, 2024

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!

Cargo.toml Outdated Show resolved Hide resolved
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.

@Vrixyz Vrixyz merged commit 1b57c18 into dimforge:master Sep 9, 2024
23 checks passed
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