GCubeSDK
©2026 FenixFox®Studios

WireframeGeometry

WireframeGeometry ⟵ BufferGeometry

A geometry class that creates wireframe representation of any BufferGeometry.
WireframeGeometry takes any BufferGeometry and creates a wireframe version by extracting edges from the geometry's faces. This is useful for debugging, visualization, and creating wireframe effects on any 3D object.

Methods

WireframeGeometry(BufferGeometry* geometry)

Constructor that creates wireframe from existing geometry

geometry Source geometry to create wireframe from nullptr

WireframeGeometry* clone() const

Creates a copy of this geometry

void copy(const WireframeGeometry& geometry)

Copies properties from another geometry

geometry Source geometry to copy from

void setFromGeometry(BufferGeometry* geometry)

Updates wireframe from new source geometry

geometry Source geometry to create wireframe from

void enableVertexColors(bool enable, const Color& color)

Toggles per-vertex coloring and sets wireframe color

enable Enable or disable vertex colors
color RGBA color used when enabled 0xFFFFFFFF

void setLineColor(const Color& color)

Sets the per-vertex line color without toggling

color RGBA color value

void buildWireframe()

Builds the wireframe geometry from source geometry

Properties