- Home /
How do i cut polygons?
im new to the whole 3d portion of unity and while i did familiarize myself with parts of it, one thing i wan to do is cut my 3d models in half with knives and swords. there are utilities but none do it as curvy lines. they're all strait. Can any one point me in the right direction?
Well, there is not such thing as a curvy line in 3D graphics, since every line in the end has to go from vertex to vertex, so even something that looks like a curve is only simulated by increasing the number of straight line segments.
Take a look at the $$anonymous$$esh class in the Scripting API, and familiarize yourself with how Vectors and Normals work.
i am aware of this but my point was from where the cut begins and ends, it is one, consistant line.
Ok, so you would take such a mesh splitting solution and add additional vertices depending on the path the blade or whatever takes.
What you would like to do is a function like:
void Cut$$anonymous$$esh($$anonymous$$esh mesh, Plane section, out $$anonymous$$esh side1, out $$anonymous$$esh side2);
?
Your answer
![](https://koobas.hobune.stream/wayback/20220612084351im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
C#, Creating a single mesh polygon problems 2 Answers
Mesh creation by code not working? 0 Answers
Multiple Cars not working 1 Answer
create a polygon mesh from a set of points 1 Answer
Mesh texture not properly rendered 0 Answers