public interface ElementPolygon extends Element
Title: ElementPolygon
Description: A 3D polygon.
Polygons can be closed (a real polygon) or open (polylines).| Modifier and Type | Interface and Description |
|---|---|
static class |
ElementPolygon.ElementPolygonLoader |
Element.LoaderTARGET_POSITION, TARGET_SIZE| Modifier and Type | Method and Description |
|---|---|
double[][] |
getData()
Gets ths data of the points fo the polygon
|
boolean |
isClosed()
Gets whether the polygon is closed
|
void |
setClosed(boolean closed)
Sets whether the polygon is closed
|
void |
setData(double[][] data)
Sets the data for the points of the polygon.
|
getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameaddInteractionListener, getInteractionTarget, removeInteractionListenervoid setClosed(boolean closed)
closed - booleanboolean isClosed()
void setData(double[][] data)
data - double[][] the double[nPoints][3] array with the datadouble[][] getData()