/* Mesh conversions, for instance, obj description to mesh or stl to mesh. */ #ifndef meshconv_H #define meshconv_H /* Last edited on 2021-08-12 05:24:01 by stolfi */ /* From Y. Matsuzake's {cviewer.c} */ #include #include #include void obj_to_mesh(obj_format_t const* obj, mesh_t* mesh); /* Converts the description of a OBJ file {obj} to a mesh {mesh} in GPU. The {mesh} object must have been initialized. */ void stl_to_mesh(stl_format_t const* stl, mesh_t* mesh); /* Converts the description of an STL file {stl} to a mesh {mesh} in GPU. The {mesh} object must have been initialized. */ #endif