We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1354d96 + c287d40 commit bec7a78Copy full SHA for bec7a78
1 file changed
epa/polytope.go
@@ -212,6 +212,8 @@ func (b *PolytopeBuilder) calculateCentroid() mgl64.Vec3 {
212
b.uniquePoints = append(b.uniquePoints, mgl64.Vec3{}) // Add space
213
copy(b.uniquePoints[insertIdx+1:], b.uniquePoints[insertIdx:])
214
b.uniquePoints[insertIdx] = point
215
+ } else {
216
+ b.uniquePoints = append(b.uniquePoints, point)
217
}
218
219
0 commit comments