Skip to content

ColliderBuilder::trimesh doesn't return an error, and does not document potential panics #717

Open
@Astralchroma

Description

@Astralchroma

ColliderBuilder::trimesh doesn't return an error, and does not document potential panics.

panicked at .cargo/registry/src/index.crates.io-6f17d22bba15001f/parry3d-0.17.0/src/shape/trimesh.rs:268:9:
A triangle mesh must contain at least one triangle.

The potential for this panic should be at least documented, though given the error message, it seems like this should instead be returning a Result

Metadata

Metadata

Assignees

No one assigned

    Labels

    2DThe issue is specifically about the 2D version of Rapier.3DThe issue is specifically about the 3D version of Rapier.A-GeometryC-BugSomething isn't workingD-MediumP-Medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions