toWireframe

Converts a geometry's triangle indices to line indices. If the geometry has an indices and its primitiveType is TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN, it is converted to LINES; otherwise, the geometry is not changed.

This is commonly used to create a wireframe geometry for visual debugging.

geometry = GeometryPipeline.toWireframe(geometry);

Return

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

Parameters

geometry

The geometry to modify.

See also