0

Creating new model after cutting

Anonymous 5 years ago 0
This discussion was imported from CodePlex

MichaelKubrak wrote at 2012-09-27 15:14:

Hello. I need to show the distribution of heat in a solid object. The first thing I came up with that figure expanded to many cubes and noticed paint them depending on the situation. but it's no good for me, because shapes are complex and large.The second thought is that the load already created a model from a file, and then divide it by cutting. But after cutting a cavity appears in the model. Please tell me how to close the cavity?Cutting is done using MeshGeometryHelper.Cut function. Maybe you can get all the vertexes models after cutting, and put them together again to paint this area?


objo wrote at 2012-10-09 22:28:

There is a simple "Ear clipping" triangulation method (see Geometry/CuttingEarsTriangulator) that can be used to close simple convex polygon cutting regions. If your cuts are creating more complex regions you need a more advanced triangulation method (not included in this toolkit). http://en.wikipedia.org/wiki/Polygon_triangulation