Contour triangulation

谁都会走 提交于 2020-01-03 06:35:14

问题


I write my study and is stuck when i try triangulate the contour of surface. When it is in 2D its ok. When it in 3D a have trouble with triangle angle detection, i tried with:

Triange have 3 Vertices v1,v2,v3 I create 2 vectors(vec21, vec23) from v2v1 and v2v3 then vec21 x vec23 and obtain a det of matrix on the stand which I define Span angle I also check if edges do not crossing and if any point isnt in area of triangle.

But when it in 3D i choose point around polygon then this metod didn't work

Points of contour i want triangulate to flat polygon: https://docs.google.com/open?id=0Bw5-VXnqutXBckRJMGNJMW9JaXc

Bad resoult: https://docs.google.com/open?id=0Bw5-VXnqutXBMzV5elIxX1FaeDQ

In 2d:

Points on 2D :https://docs.google.com/open?id=0Bw5-VXnqutXBWVE4bWJsZ09mOVk

Good resoults:https://docs.google.com/open?id=0Bw5-VXnqutXBdGFKM2Z4UnFRdXc

Where i made mistake? Can u explain me this?

Greetings!

PS. Im interested in algoithm at 2 last case:http://www.cosy.sbg.ac.at/~held/projects/triang/triang.html


回答1:


Typically one would use a Delaunay Triangulation for the 2D case. For the 3D case you can project the points to 2D, triangulate and project the triangles back to 3D. This will of course only work if the patch to be triangulated can be projected to 2D (without selfintersections).



来源:https://stackoverflow.com/questions/12582862/contour-triangulation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!