此类实现 I3S 几何。每个 I3SGeometry 都会在内存中生成一个 glTF,用作 Cesium3DTile 的内容 This class implements an I3S Geometry. Each I3SGeometry generates an in memory glTF to be used as content for a Cesium3DTile
不要直接构造它,而是通过访问图块 Do not construct this directly, instead access tiles through I3SNode.
成员 Members
获取几何体的自定义属性。 Gets the custom attributes of the geometry.
获取此对象的 I3S 数据。 Gets the I3S data for this object.
readonly resource : Resource
获取几何资源 Gets the resource for the geometry
方法 Methods
找到一个接触点[px,py,pz]的三角形,然后返回距离搜索点最近的顶点 Find a triangle touching the point [px, py, pz], then return the vertex closest to the search point
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
px |
number | 要查询的点的 x 分量 The x component of the point to query |
py |
number | 要查询的点的 y 分量 The y component of the point to query |
pz |
number | 要查询的点的 z 分量 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
