I3SGeometry

new SuperMap3D.I3SGeometry()

This class implements an I3S geometry. Each I3S geometry generates a in-memory GLTF, used as the content of a @see Cesium3DTile. Do not directly instantiate this class, but access it through I3SNode.

Members

readonlycustomAttributes : object

Gets the custom attributes of the geometry.

readonlydata : object

Gets the I3S data for this object.

readonlyresource : Resource

Gets the resource for the geometry

Methods

getClosestPointIndexOnTriangle(px, py, pz)object

Find a triangle touching the point [px, py, pz], then return the vertex closest to the search point
Name Type Description
px number The x component of the point to query
py number The y component of the point to query
pz number The z component of the point to query
Returns:
A structure containing the index of the closest point, the squared distance from the queried point to the point that is found, the distance from the queried point to the point that is found, the queried position in local space, the closest position in local space