Skip to content

Comments

wip parry_to_bevy_mesh#628

Merged
ThierryBerger merged 15 commits intodimforge:masterfrom
ThierryBerger:mesh_parry_to_bevy
Feb 3, 2025
Merged

wip parry_to_bevy_mesh#628
ThierryBerger merged 15 commits intodimforge:masterfrom
ThierryBerger:mesh_parry_to_bevy

Conversation

@ThierryBerger
Copy link
Contributor

@ThierryBerger ThierryBerger commented Jan 15, 2025

Discord discussion https://discordapp.com/channels/507548572338880513/748627261384556715/1314267962668220447

⚠️ considering these shapes out of scope for this PR:

  • Linestrip
  • rounded
  • Custom

⚠️ Cuboid has no builder exposed on bevy yet (see bevyengine/bevy#17475)

image

}
#[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

@ThierryBerger ThierryBerger Jan 17, 2025

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 in parry

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 <alice.i.cecile@gmail.com>
Co-authored-by: Greeble <166992735+greeble-dev@users.noreply.github.com>
Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
@ThierryBerger ThierryBerger marked this pull request as ready for review February 3, 2025 15:31
@ThierryBerger ThierryBerger merged commit a4e9343 into dimforge:master Feb 3, 2025
4 checks passed
mrchantey pushed a commit to mrchantey/bevy that referenced this pull request Feb 4, 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 <alice.i.cecile@gmail.com>
Co-authored-by: Greeble <166992735+greeble-dev@users.noreply.github.com>
Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>

- Added optional feature `picking-backend` to support bevy_picking.
- See `picking_backend` module documentation for more details.
- Added `geometry::to_bevy_mesh` module behind the feature `to-bevy-mesh` to help with converting parry shapes into bevy meshes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add limitations clearly + link PR

ThierryBerger added a commit to ThierryBerger/bevy_rapier that referenced this pull request Feb 18, 2025
ThierryBerger added a commit that referenced this pull request Feb 18, 2025
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