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

Method AddGroup

geometry/geometry.go:90–94  ·  view source on GitHub ↗

AddGroup adds a geometry group (for multimaterial).

(start, count, matIndex int)

Source from the content-addressed store, hash-verified

88
89// AddGroup adds a geometry group (for multimaterial).
90func (g *Geometry) AddGroup(start, count, matIndex int) *Group {
91
92 g.groups = append(g.groups, Group{start, count, matIndex, ""})
93 return &g.groups[len(g.groups)-1]
94}
95
96// AddGroupList adds the specified list of groups to this geometry.
97func (g *Geometry) AddGroupList(groups []Group) {

Callers 3

NewSegmentedBoxFunction · 0.95
NewTruncatedConeSectorFunction · 0.95
NewGeometryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected