MCPcopy Index your code
hub / github.com/fogleman/ln / Transform

Method Transform

ln/mesh.go:70–79  ·  view source on GitHub ↗
(matrix Matrix)

Source from the content-addressed store, hash-verified

68}
69
70func (m *Mesh) Transform(matrix Matrix) {
71 for _, t := range m.Triangles {
72 t.V1 = matrix.MulPosition(t.V1)
73 t.V2 = matrix.MulPosition(t.V2)
74 t.V3 = matrix.MulPosition(t.V3)
75 t.UpdateBoundingBox()
76 }
77 m.UpdateBoundingBox()
78 m.Tree = nil // dirty
79}
80
81func (m *Mesh) SaveBinarySTL(path string) error {
82 return SaveBinarySTL(path, m)

Callers 2

MoveToMethod · 0.95
FitInsideMethod · 0.95

Calls 2

UpdateBoundingBoxMethod · 0.95
MulPositionMethod · 0.80

Tested by

no test coverage detected