Constrained Delauney Triangulation #512
Replies: 6 comments 5 replies
-
|
Thanks, looks like a cool library, I’ll have a look. Q. it looks like it already has python bindings, have you tried it in CAD? It’s an interesting topic, honestly, a bit over my head. I had added these in hopes it would be useful. I don’t know if you have seen the Delaunator sample, its pretty powerful in that it gives you triangles and halfedges, so it’s possible to do rudimentary constraints if you already have a polyline boundary(s). Just eliminate the triangle if the edge crosses the polyline, or the circumcircle of the triangle falls in an unwanted area. In the meantime, I will play around with it in C++. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
fixed that bad triangle above, CDT will use CAD's built in tolerance (AcGeContext::gTol.equalPoint()) same test as above but 3d:
|
Beta Was this translation helpful? Give feedback.
-
|
Commit 363df60 preview build, you can grab the new |
Beta Was this translation helpful? Give feedback.
-
|
Hi I committed a new build to the repository; I also added a new sample I changed the bool to an enum, and triangulate returns a new set of points along with the triangle indices. Apparently flag The enum is bitwise class CDTOpts(_BoostPythonEnum):
kNone: ClassVar[Self] # 0
KEraseSuperTriangle: ClassVar[Self] # 1
kEraseOuterTriangles: ClassVar[Self] # 2
kEraseOuterTrianglesAndHoles: ClassVar[Self] # 4
KInsertEdges: ClassVar[Self] # 8
KConformToEdges: ClassVar[Self] # 16
|
Beta Was this translation helpful? Give feedback.
-
|
Hi, while the last release has the a beta implementation, I’ve since refactored the code a bit. |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I read into the following thread at AutoDesk forum:
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-for-topo-survey-boundary/td-p/14013405.
At message 11, user autoid374ceb4990 asks about "breaklines". What he actually talks about is "Constrained Delauney Triangulation - CDT". This is a standard feature of Softdesk (and Land Development and so on) products.
This algorithm would fit very nicely with the Concave Hull, Daniel has already implemented. The generated boundary could be used as a constraint to the triangulation. Also other polylines could be used as internal islands and breaklines.
A C++ project on the subject is https://github.com/artem-ogre/CDT. Could it be used by PyRX?
Beta Was this translation helpful? Give feedback.
All reactions