Mesh creation should be fallible
Mesh generation can sometimes fail, e.g. `Mesh::new(vec![], vec![])` results in a stack overflow. Perhaps `Mesh::new` should return a `Result` and `impl From<Trimesh> for Mesh` should be a `TryFrom` implementation instead? I imagine it's also possible to input non-manifold meshes that produce weird results and should probably fail.
关闭于 2024-05-23 0 条评论