Three.explodemodifier Hacking
I'm using the ExplodeModifier to duplicate the vertices so I can have individual control over Face3 objects. For my specific example, this alone looks visually poor, so I decided t
Solution 1:
As pointed out by @mrdoob I was assigning a THREE.Vector3
and not an index
to the added THREE.Face3
.
var extraFace1 = new THREE.Face3().copy(face)
extraFace1.a = geometry.faces.length * 3 - 1var extraFace2 = new THREE.Face3().copy(face)
extraFace2.b = geometry.faces.length * 3 - 1var extraFace3 = new THREE.Face3().copy(face)
extraFace3.c = geometry.faces.length * 3 - 1
Post a Comment for "Three.explodemodifier Hacking"