How to get triangle index of meshe's desired part?
Hi. I'm trying to slice a rectangle object. I could use some assets to slice it but they only slice like a sword. I want to draw a path over object, which can be zigzag. Then get the triangle indexes of right and left part of the mesh. Finally I'll use them to create new 2 objects and the object will be sliced along the path.
What I tried? 1- I tried to get all the triangle indexes of the right part of mesh, using BoxRayCastAll(). The problem was this raycastAll only returns once for one collider so it didn't work.
2-I thought I could reach the desired part using indices of the right part of mesh. But indices are too complex to do that. It's not like first lines indices are 1,2,3,4,... so I couldn't do it that way.
Any ideas how can I do that?
Your answer
Follow this Question
Related Questions
How can I create a plane at any given vertex position? 0 Answers
Reload meshes with readable = true? 0 Answers
Point on a triangle. 1 Answer
Mesh generation triangles issue 0 Answers
Some triangles are black on a mesh generated by script 1 Answer