meshlite is a library with focus on 3D mesh generating and processing in rust language. Currently, it’s been used in Dust3D project as the core library of mesh generating. https://dust3d.org
usemesh::Mesh;pubfncube()-> Mesh{letmut m =Mesh::new();let face_id = m.add_plane(1.0,1.0);let normal = m.face_norm(face_id);
m.extrude_face(face_id, normal,1.0).translate(0.0,0.0,-0.5);
m
}