load_from_raw_mesh

Function load_from_raw_mesh 

Source
pub fn load_from_raw_mesh(
    raw_mesh: &Mesh,
    converter: &MeshConverter,
    scale: Vector,
) -> Result<(SharedShape, Pose), MeshConverterError>
Expand description

Loads an file as a shape from a preloaded raw mesh_loader::Mesh.

ยงParameters

  • raw_mesh: the raw mesh.
  • converter: controls how the shape is computed from the STL content. In particular, it lets you specify if the computed SharedShape is a triangle mesh, its convex hull, bounding box, etc.
  • scale: the scaling factor applied to the geometry input to the converter. This scale will affect at the geometric level the LoadedShape::shape. Note that raw mesh value stored in LoadedShape::raw_mesh remains unscaled.