20 #ifndef ANTKEEPER_GEOM_BREP_OPERATIONS_HPP
21 #define ANTKEEPER_GEOM_BREP_OPERATIONS_HPP
64 std::unique_ptr<render::model>
generate_model(
const brep_mesh& mesh, std::shared_ptr<render::material> material =
nullptr);
std::unique_ptr< render::model > generate_model(const brep_mesh &mesh, std::shared_ptr< render::material > material)
Generates a model from a B-rep mesh.
void generate_loop_barycentric(brep_mesh &mesh)
Generates the math::fvec3 loop attribute "barycentric" for a B-rep mesh.
void generate_face_normals(brep_mesh &mesh)
Generates the math::fvec3 face attribute "normal" for a B-rep mesh.
void generate_vertex_normals(brep_mesh &mesh)
Generates the math::fvec3 vertex attribute "normal" for a B-rep mesh.