Skip to content

KBE3D / KBCore / Cesium / GeometryPipeline / fitToUnsignedShortIndices

函数: fitToUnsignedShortIndices()

fitToUnsignedShortIndices(geometry: Geometry): Geometry[]

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

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);

KBE3D @3.0.0 Copyright © 2024-present KBE3D