public class SimpleTriangle extends Object
| Constructor and Description |
|---|
SimpleTriangle(IIncrementalTin tin,
IQuadEdge a,
IQuadEdge b,
IQuadEdge c)
Construct a simple triangle from the specified edges.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArea()
Gets the area of the triangle.
|
IConstraint |
getContainingRegion()
Gets the polygon-based constraint that contains this triangle, if any.
|
IQuadEdge |
getEdgeA()
Get edge A from the triangle
|
IQuadEdge |
getEdgeB()
Get edge B from the triangle
|
IQuadEdge |
getEdgeC()
Get edge C from the triangle
|
public SimpleTriangle(IIncrementalTin tin, IQuadEdge a, IQuadEdge b, IQuadEdge c)
tin - a reference to the TIN that was used to create this triangle.a - a valid edgeb - a valid edgec - a valid edgepublic IQuadEdge getEdgeA()
public IQuadEdge getEdgeB()
public IQuadEdge getEdgeC()
public double getArea()
public IConstraint getContainingRegion()
Under ConstructionThis method is not yet complete. Because the Tinfour implementation does not yet record which side of an edge an region-based constraint lies on, there are cases involving constraint borders that will not be accurately detected. It can only reliably report membership when a triangle has at least one edge that is entirely inside a constraint area
Copyright © 2019. All rights reserved.