I’m creating an extruded geometry using an array of shapes and would like to assign bones for each shape.
Disclaimer: Figures are created in blender just because it was easier for me to create sample shapes in it.
Below are the shapes that I want to draw. I’ll be drawing them using THREE.Shape
They should be joined into one geometry just like this image below
Then have these characteristics. The red lines representing a cut and blue line representing where it should fold.
Problem is, the vertices that fall under the edges highlighted by the red lines are treated as one therefore I am not able to separate them and animate.
I need ExtrudeGeometry to treat them as separate vertices for me to be able to assign different bones to them and animate them. Is this possible? If not, do you have any proposed approach to achieve my goal?
I was creating an ExtrudeGeometry, not ExtrudeBufferGeometry.
My algorithm is to first create an ExtrudeGeometry, assign skinIndices and skinWeights, then convert it to ExtrudeBufferGeometry.
I built it this way since it is easier to assign skinIndices and skinWeights for ExtrudeGeometry since it is indexed which makes it easier for me to track the vertex indices. As opposed to ExtrudeBufferGeometry which is non-indexed, which means the sequence of vertices in the position attribute is all over the place.
Is it important to merge the vertices? Would it break other features if this method call is not included? If not, maybe we could add a parameter to ExtrudeGeometry to optionally disable merging of vertices