public final class ConstraintPolygon extends Element
WEIGHTED_PROPERTIES| Constructor and Description |
|---|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon)
Generate a polygon.
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
boolean isEmpty)
Generate a polygon.
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property)
Generate a polygon with property.
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ)
Generate a polygon with property.
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ,
boolean isEmpty)
Generate a polygon with property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.vividsolutions.jts.geom.Coordinate coordinate)
check if this polygon contain the point given in argument.
|
boolean |
contains(DEdge anEdge) |
boolean |
contains(DPoint aPoint)
Check if this polygon contain the point given in argument.
|
BoundaryBox |
getBoundingBox()
Get the minimum boundary of this element.
|
List<DEdge> |
getEdges()
Get the edges structure.
|
List<DPoint> |
getPoints()
Get points.
|
com.vividsolutions.jts.geom.Polygon |
getPolygon() |
DTriangle |
getRefTriangle() |
boolean |
isEmpty() |
boolean |
isIntersect(DEdge anEdge) |
boolean |
isUsePolygonZ() |
void |
setEmpty(boolean isEmpty)
True, if we remove triangle who are inside the polygon.
|
void |
setRefTriangle(DTriangle refTriangle)
Set the reference triangle.
|
addProperty, getExternalGID, getGID, getHeight, getMaxWeight, getProperty, hasProperty, removeProperties, setExternalGID, setGID, setHeight, setPropertypublic ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon)
throws DelaunayError
polygon - DelaunayErrorpublic ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
boolean isEmpty)
throws DelaunayError
polygon - isEmpty - True, if we remove triangle who are inside the polygon.DelaunayErrorpublic ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property)
throws DelaunayError
polygon - property - DelaunayErrorpublic ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ)
throws DelaunayError
polygon - property - usePolygonZ - -
True, if we set Z coordinate of polygon to new point else set an average of polygon and mesh Z coordinate.DelaunayErrorpublic ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ,
boolean isEmpty)
throws DelaunayError
polygon - property - usePolygonZ - True, if we set Z coordinate of polygon to new point else set an average of polygon and mesh Z coordinate.isEmpty - True, if we remove triangle who are inside the polygon.DelaunayErrorpublic boolean isUsePolygonZ()
public boolean isEmpty()
public void setEmpty(boolean isEmpty)
isEmpty - public DTriangle getRefTriangle()
public void setRefTriangle(DTriangle refTriangle)
refTriangle - public com.vividsolutions.jts.geom.Polygon getPolygon()
public List<DPoint> getPoints() throws DelaunayError
DelaunayErrorpublic BoundaryBox getBoundingBox()
getBoundingBox in class Elementpublic boolean contains(DPoint aPoint)
public boolean contains(DEdge anEdge) throws DelaunayError
DelaunayErrorpublic boolean contains(com.vividsolutions.jts.geom.Coordinate coordinate)
throws DelaunayError
contains in class Elementcoordinate - DelaunayErrorpublic boolean isIntersect(DEdge anEdge) throws DelaunayError
anEdge - DelaunayErrorCopyright © 2013 IRSTV CNRS-FR-2488. All Rights Reserved.