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

wip parry_to_bevy_mesh #628

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Jan 15, 2025

@Vrixyz Vrixyz force-pushed the mesh_parry_to_bevy branch from 596f9ea to 9dfe1f5 Compare January 16, 2025 11:24
src/geometry/to_bevy_mesh.rs Outdated Show resolved Hide resolved
}
#[cfg(feature = "dim2")]
rapier::prelude::TypedShape::RoundConvexPolygon(round_shape) => {
// FIXME: parry doesn't have easy to use functions to convert RoundShapes to a mesh.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's missing for to_trimesh module

bevy_rapier3d/Cargo.toml Outdated Show resolved Hide resolved
github-merge-queue bot pushed a commit to bevyengine/bevy that referenced this pull request Jan 23, 2025
# Objective

Make `Mesh::merge` more resilient to use.

Currently, it's difficult to make sure `Mesh::merge` will not panic
(we'd have to check if all attributes are compatible).

- I'd appreciate it for utility function to convert different mesh
representations such as:
dimforge/bevy_rapier#628.

## Solution

- Make `Mesh::merge` return a `Result`.

## Testing

- It builds

## Migration Guide

- `Mesh::merge` now returns a `Result<(), MeshMergeError>`.

---------

Co-authored-by: Alice Cecile <[email protected]>
Co-authored-by: Greeble <[email protected]>
Co-authored-by: Benjamin Brienen <[email protected]>
src/geometry/to_bevy_mesh.rs Outdated Show resolved Hide resolved
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