diff --git a/convert.go b/convert.go index c37d2b1..58d0f17 100644 --- a/convert.go +++ b/convert.go @@ -103,7 +103,7 @@ func Convert(stl STL, outFile string) { ByteOffset: 0, ComponentType: 5126, Type: "VEC3", - Count: int(stl.TriangleNum), + Count: stl.TriangleNum * 3, Max: []float32{1, 1, 1}, Min: []float32{-1, -1, -1}, },