MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / triangles

Method triangles

pysplashsurf/src/mesh.rs:175–180  ·  view source on GitHub ↗
(this: Bound<'py, Self>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

view_triangles_genericFunction · 0.85
cellsMethod · 0.80

Tested by

no test coverage detected