(this: Bound<'py, Self>)
| 173 | /// The `Mx3` array of vertex indices per triangle |
| 174 | #[getter] |
| 175 | pub fn triangles<'py>(this: Bound<'py, Self>) -> PyResult<Bound<'py, PyArray2<NumpyUsize>>> { |
| 176 | match &this.borrow().inner { |
| 177 | PyTriMesh3dData::F32(mesh) => view_triangles_generic(mesh.cells(), this.into_any()), |
| 178 | PyTriMesh3dData::F64(mesh) => view_triangles_generic(mesh.cells(), this.into_any()), |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | /// Returns a copy (deep copy) of this mesh |
| 183 | pub fn copy(&self) -> Self { |
nothing calls this directly
no test coverage detected