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

Method Compile

ln/scene.go:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8func (s *Scene) Compile() {
9 for _, shape := range s.Shapes {
10 shape.Compile()
11 }
12 if s.Tree == nil {
13 s.Tree = NewTree(s.Shapes)
14 }
15}
16
17func (s *Scene) Add(shape Shape) {
18 s.Shapes = append(s.Shapes, shape)

Callers 1

RenderWithMatrixMethod · 0.95

Calls 2

NewTreeFunction · 0.85
CompileMethod · 0.65

Tested by

no test coverage detected