JSPolygon
API for creating and modifying polygon objects.
var object = Module.createPolygon("ID");Function
getArea() → number
var area = object.getArea();getBoundary() → JSAABBox3D
var boundary = object.getBoundary();
var boundary_min = boundary.min;
var boundary_max = boundary.max;getCenter() → JSVector3D
getExtent() → number
getId() → string
loadFile(option) → boolean
Name
Type
Description
loadTexture(name, url) → boolean
Name
Type
Description
setCircle(position, radius, segment)
Name
Type
Description
setFaceTexture(index, name) → boolean
Name
Type
Description
setFireEffect(type) → boolean
Name
Type
Description
setHeight(height) → boolean
Name
Type
Description
setPartCoordinates(coordinates, parts) → boolean
Name
Type
Description
setPartCoordinatesUV(coordinates, parts, uv, type) → boolean
Name
Type
Description
Getter / Setter
getCoordinates(), setCoordinates(coordinates) → Collection
Name
Type
Description
getDescription(), setDescription(desc) → string
Name
Type
Description
getName(), setName(name) → string
Name
Type
Description
getVisible(), setVisible(visible) → boolean
Name
Type
Description
getStyle(), setStyle(style) → JSPolygonStyle
Name
Type
Description
Type Definitions
JSPolygon.loadFileOption
Name
Type
Attributes
Default
Description
Last updated