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

Method vertices

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

Source from the content-addressed store, hash-verified

164 /// The `Nx3` array of vertex positions of the mesh
165 #[getter]
166 pub fn vertices<'py>(this: Bound<'py, Self>) -> PyResult<Bound<'py, PyUntypedArray>> {
167 match &this.borrow().inner {
168 PyTriMesh3dData::F32(mesh) => utils::view_vec_generic(mesh.vertices(), this.into_any()),
169 PyTriMesh3dData::F64(mesh) => utils::view_vec_generic(mesh.vertices(), this.into_any()),
170 }
171 }
172
173 /// The `Mx3` array of vertex indices per triangle
174 #[getter]

Callers 1

compute_normals_genericFunction · 0.45

Calls 1

view_vec_genericFunction · 0.85

Tested by

no test coverage detected