MCPcopy
hub / github.com/g3n/engine / SetIndices

Method SetIndices

geometry/geometry.go:117–123  ·  view source on GitHub ↗

SetIndices sets the indices array for this geometry.

(indices math32.ArrayU32)

Source from the content-addressed store, hash-verified

115
116// SetIndices sets the indices array for this geometry.
117func (g *Geometry) SetIndices(indices math32.ArrayU32) {
118
119 g.indices = indices
120 g.updateIndices = true
121 g.boundingBoxValid = false
122 g.boundingSphereValid = false
123}
124
125// Indices returns the indices array for this geometry.
126func (g *Geometry) Indices() math32.ArrayU32 {

Callers 14

NewSpriteFunction · 0.95
NewSegmentedPlaneFunction · 0.95
NewDiskSectorFunction · 0.95
NewRibbonFunction · 0.95
NewSphereSectorFunction · 0.95
NewSegmentedBoxFunction · 0.95
NewTruncatedConeSectorFunction · 0.95
NewTorusFunction · 0.95
InitializeMethod · 0.95
newMeshPolylistFunction · 0.95
newMeshTrianglesFunction · 0.95
newMeshLinesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected