MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / getTriangleCount

Function getTriangleCount

js/stlLoader.js:143–148  ·  view source on GitHub ↗
(geometry)

Source from the content-addressed store, hash-verified

141 box.getCenter(center);
142 return { min, max, center, size };
143}
144
145/**
146 * Triangle count helper.
147 */
148export function getTriangleCount(geometry) {
149 const pos = geometry.attributes.position;
150 return geometry.index
151 ? geometry.index.count / 3

Callers 5

populateLanguageSelectorFunction · 0.90
handlePlaceOnFaceClickFunction · 0.90
loadDefaultCubeFunction · 0.90
handleModelFileFunction · 0.90
adoptBakedGeometryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected