MCPcopy
hub / github.com/fogleman/ln / Compile

Method Compile

ln/mesh.go:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func (m *Mesh) Compile() {
17 if m.Tree == nil {
18 shapes := make([]Shape, len(m.Triangles))
19 for i, triangle := range m.Triangles {
20 shapes[i] = triangle
21 }
22 m.Tree = NewTree(shapes)
23 }
24}
25
26func (m *Mesh) BoundingBox() Box {
27 return m.Box

Callers

nothing calls this directly

Calls 1

NewTreeFunction · 0.85

Tested by

no test coverage detected