Skip to content

Conversation

@ThierryBerger
Copy link
Contributor

This is based on cpic branch. + uses dimforge/rapier#796 to simplify code examples.

let aabb =
bounding_volume::details::point_cloud_aabb(&rapier3d::na::Isometry::default(), &vertices);

let decomposed_shape = SharedShape::convex_decomposition(&vertices, &indices);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

try with simpler trimesh but trimeshflags oriented

Comment on lines +76 to +88
let mut rapier = RapierData::default();
rapier.insert_body_and_collider(
RigidBodyBuilder::fixed(),
ColliderBuilder::new(decomposed_shape.clone()),
);
rapier.update();
let mut positions = vec![];
dbg!(aabb);
let aabb_sample = aabb.scaled(&Vector3::new(
SAMPLE_PER_UNIT,
SAMPLE_PER_UNIT,
SAMPLE_PER_UNIT,
));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use TriMesh::contains_local_point

@ThierryBerger ThierryBerger mentioned this pull request Mar 8, 2025
@ThierryBerger
Copy link
Contributor Author

Closing in favor of #6

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.

1 participant