Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
fix meshTetraBCC bug
Browse files Browse the repository at this point in the history
  • Loading branch information
soypat committed Jun 13, 2022
1 parent 9183ceb commit 633130b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/sdfexp/bccmesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func makeBCCMesh(b r3.Box, resolution float64) *bccMesh {

func (t *bccMesh) meshTetraBCC() (nodes []r3.Vec, tetras [][4]int) {
n := 0
tetras = make([][4]int, len(t.matrix.nodes))
tetras = make([][4]int, 0, len(t.matrix.nodes))
t.matrix.foreach(func(_, _, _ int, node *bccNode) {
bb := d3.Box(node.box())
vert := bb.Vertices()
Expand Down

0 comments on commit 633130b

Please sign in to comment.