new I3SGeometry()
This class implements an I3S geometry. Each I3S geometry will generate a glTF in memory for use as the content of Cesium3DTile. Do not directly construct this class, but access it through I3SNode.
Members
-
readonly customAttributesobject
-
Get custom properties of geometry.
-
readonly dataobject
-
Retrieve the I3S data of the object.
-
readonly resourceResource
-
Obtain resources for geometric shapes.
Methods
-
getClosestPointIndexOnTriangle(px, py, pz){object}
-
Find the triangle connected to the point [px, py, pz] and return the vertex closest to the search point
Name Type Description pxnumber The x-component of the point to be queried.
pynumber The y-component of the point to be queried.
pznumber The z-component of the point to be queried.
Returns:
Type Description object A structure that includes the index of the nearest point, the square of the distance from the queried point to the found point, the distance from the queried point to the found point, the position of the queried point in the local space, and the nearest position in the local space.