Skip to content

Determine if an edge lies on the border/boundary/perimeter of a TIN #85

Answered by gwlucastrig
micycle1 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

import java.util.List;
import org.tinfour.common.IQuadEdge;
import org.tinfour.common.Vertex;
import org.tin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gwlucastrig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants