Divide square faces into triangles
5 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Matt J
2020-1-3
编辑:Matt J
2020-1-3
If the vertices of the squares are all pre-ordered in counter-clockwise or clock-wise order, I think you could just do,
Triangulation=[ Faces(:,[1,2,3]) ; Faces(:,[3,4,1])] ;
If the vertices are not pre-ordered, it wouldn't be too difficult to loop through and sort them first.
3 个评论
更多回答(1 个)
Matt J
2020-1-3
I think you would have to do the following steps in a loop over all the faces,
- FInd a 2D coordinate system for the plane passing through each face
- Convert the 3D coordinates of each of the faces vertice to 2D coordinates
- Do a 2D Delaunay tringulation
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Delaunay Triangulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!