Determine if an edge lies on the border/boundary/perimeter of a TIN #85
-
In an unconstrained TIN, how do I determine if an edge lies on the border/boundary/perimeter of the triangulation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well, I am really surprised that there isn't a method that does that. In the short term, I will write up some code to show you how to do it. For the long term, I'll add a new isPerimeter() method to the IQuadEdge interface. Thanks for bringing this to my attention. Gary P.S. In case it helps, the IIncrementTin classes do have a method called getPerimeter() that gets an ordered list of the perimeter edges. |
Beta Was this translation helpful? Give feedback.
-
Here's an example application that creates a TIN and tests its edges to see if they are on the perimeter. I'm not quite sure what you need for your purposes, but I think that this application illustrates enough different ways of doing things that you can fine an approach that suits your needs. The main method of interest is isEdgeOnPerimeter(). Note that each edge in Tinfour has two sides. For a perimeter edge,
|
Beta Was this translation helpful? Give feedback.
Here's an example application that creates a TIN and tests its edges to see if they are on the perimeter. I'm not quite sure what you need for your purposes, but I think that this application illustrates enough different ways of doing things that you can fine an approach that suits your needs.
The main method of interest is isEdgeOnPerimeter(). Note that each edge in Tinfour has two sides. For a perimeter edge,
one side will be facing inward, and one side will be facing outward. So we need to test both the edge itself and its dual to see if either of them is an outward facing edge.