Skip to content

KBE3D / KBCore / Cesium / GeometryPipeline / toWireframe

函数: toWireframe()

toWireframe(geometry: Geometry): Geometry

Converts a geometry's triangle indices to line indices. If the geometry has an <code>indices</code> and its <code>primitiveType</code> is <code>TRIANGLES</code>, <code>TRIANGLE_STRIP</code>, <code>TRIANGLE_FAN</code>, it is converted to <code>LINES</code>; otherwise, the geometry is not changed. <p> This is commonly used to create a wireframe geometry for visual debugging. </p>

参数

geometry

Geometry

The geometry to modify.

返回

Geometry

The modified geometry argument, with its triangle indices converted to lines.

示例

ts
geometry = Cesium.GeometryPipeline.toWireframe(geometry);

KBE3D @3.0.0 Copyright © 2024-present KBE3D