Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / toWireframe
函数: toWireframe()
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
The geometry to modify.
返回
The modified geometry argument, with its triangle indices converted to lines.
示例
ts
geometry = Cesium.GeometryPipeline.toWireframe(geometry);