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

Use meshloader to support multiple file formats loading #744

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Sep 30, 2024

## Unreleased
Renamed the crate from `rapier3d-stl` to `rapier3d-meshloader`, to better reflect its support for multiple formats.
### Added
- Add optional support for Collada and Wavefront files through new feature flags `collada` and `wavefront`.
### Modified
- Support for STL is now optional through feature `stl`.
- Features `stl`, `wavefront` and `collada` are enabled by default.

crates/rapier3d-urdf/src/lib.rs Outdated Show resolved Hide resolved
Comment on lines -17 to +19
//! - Mesh file types other than `stl` are not supported yet. Contributions are welcome. You my check the `rapier3d-stl`
//! - Mesh file types are limited. Contributions are welcome. You may check the `rapier3d-meshloader`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about what other types urdf could support 🤔

/// - `converter`: controls how the shapes are computed from the content. In particular, it lets
/// you specify if the computed [`SharedShape`] is a triangle mesh, its convex hull,
/// bounding box, etc.
// TODO: call a function for each mesh to load ? To be able to have a different mesh converter?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

open question 💭

Comment on lines +8 to +10
//! `stl`: support .stl files
//! `collada`: support .dae files
//! `wavefront`: support .obj files
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not a huge fan of listing features here, it sounds like an easy thing to forget when changing features, I'd be more comfortable with an include of the readme.md here 🤔 ?

crates/rapier3d-meshloader/src/lib.rs Outdated Show resolved Hide resolved
@Vrixyz Vrixyz marked this pull request as ready for review October 1, 2024 07:31
@Vrixyz Vrixyz changed the title Use meshloader to support multiple file formats loading for urdf Use meshloader to support multiple file formats loading Oct 1, 2024
@Vrixyz Vrixyz mentioned this pull request Oct 1, 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.

1 participant