Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / fitToUnsignedShortIndices
函数: fitToUnsignedShortIndices()
Splits a geometry into multiple geometries, if necessary, to ensure that indices in the <code>indices</code> fit into unsigned shorts. This is used to meet the WebGL requirements when unsigned int indices are not supported. <p> If the geometry does not have any <code>indices</code>, this function has no effect. </p>
参数
geometry
The geometry to be split into multiple geometries.
返回
Geometry[]
An array of geometries, each with indices that fit into unsigned shorts.
示例
ts
const geometries = Cesium.GeometryPipeline.fitToUnsignedShortIndices(geometry);