Skip to main content

Module decoder

Module decoder 

Source
Expand description

Mesh3DDecoder adaptors for OBJ + standalone MTL inputs.

These are thin wrappers around crate::obj::parse_obj / crate::mtl::parse_mtl_with_scene that conform to the oxideav-mesh3d decoder trait. The OBJ decoder carries one optional knob — free-form curve tessellation (Bezier + B-spline, rational and non-rational), opt-in via ObjDecoder::with_curve_tessellation; the wrapper exists so registry-based lookup gets a uniform Box<dyn Mesh3DDecoder> factory.

Structs§

MtlDecoder
Standalone MTL decoder. Returns a Scene3D populated with the MTL’s materials and any external textures they reference; no meshes / nodes / cameras / lights / animations are added.
ObjDecoder
Wavefront OBJ decoder.