View previous topic :: View next topic |
Author |
Message |
Basiror DeleD PRO user
Joined: 12 Dec 2007 Posts: 59
|
Posted: Sat Dec 15, 2007 5:01 pm Post subject: Concave polylines not possible? |
|
|
In the help file you got an example of a concave polyline,
now I tried several polylines looking like a "U" that are triangulated to a convex shape
I guess you falsely use a delaunay triangulation if convexionate is not selected
the yellow marked area should not be part of the triangulation
delaunay triangulations are always convex, for concave polygons you need an algorithm like "sweep line" |
|
Back to top |
|
|
Mr.Fletcher DeleD PRO user
Joined: 07 Aug 2004 Posts: 1772 Location: Germany
|
Posted: Sat Dec 15, 2007 5:10 pm Post subject: |
|
|
It's just a matter of rendering then. If you've got a concave polyline consisting of one polygon, DeleD might still render it convec, although the data itself if correctly concave. If you're annoyed by that, you've got to triangulate the polygon manually. _________________ Behold! The DeleD Wiki! Please help us expanding it
DeleD on IRC |
|
Back to top |
|
|
Basiror DeleD PRO user
Joined: 12 Dec 2007 Posts: 59
|
Posted: Sat Dec 15, 2007 5:22 pm Post subject: |
|
|
how to do that?
create several polylines, merge them and weld the vertices? at the shared edges? |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sat Dec 15, 2007 5:45 pm Post subject: |
|
|
You can use the Triangulate function for that. Or the Optimize function, which will break up the concave polygon in convex pieces. Using Optimize usually gives better results than triangulation.
Edit: moved to DeleD forum because it is a question, not a bug. |
|
Back to top |
|
|
Basiror DeleD PRO user
Joined: 12 Dec 2007 Posts: 59
|
Posted: Sat Dec 15, 2007 5:47 pm Post subject: |
|
|
I just created several convex polylines and merged them, implementing a sweep line algorithm to triangulate them for rendering is really no fun
corner cutting would be a option is conjunction with plücker coordinates to determine line contour intersections inside the cut triangle |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sat Dec 15, 2007 6:05 pm Post subject: |
|
|
Basiror wrote: |
I just created several convex polylines and merged them, implementing a sweep line algorithm to triangulate them for rendering is really no fun
corner cutting would be a option is conjunction with plücker coordinates to determine line contour intersections inside the cut triangle |
I must admit I have no idea what you´re talking about.
Did you try the Optimize and/or Triangulate commands on a concave polyline?
Alternatively, you can triangulate or convexionate a polyline at creation. But I bet you knew that already. |
|
Back to top |
|
|
Basiror DeleD PRO user
Joined: 12 Dec 2007 Posts: 59
|
Posted: Sun Dec 16, 2007 2:41 pm Post subject: |
|
|
the convexionate was not an option in my case since I wanted to do some extruding and vertex adjustments, merging several quads did the job though |
|
Back to top |
|
|
|