GCubeSDK
©2026 FenixFox®Studios

Points

Points ⟵ Object3D

A geometry class for rendering point clouds using BufferGeometry.
Points creates a point cloud geometry that renders individual vertices as points. This is useful for particle systems, point clouds, and other point-based rendering.

InheritanceDiagram node_Object3D Object3D node_Points Points node_Object3D->node_Points

Methods

Points()

Default constructor - creates empty points object

Points(BufferGeometry* geometry, Material* material)

Constructor with geometry and material

geometry BufferGeometry containing vertex positions nullptr
material Material for the points nullptr

virtual Object3D* clone(bool recursive) const override

Creates a copy of this object

recursive Whether to clone children true

virtual void copy(const Object3D& object, bool recursive) override

Copies properties from another object

object Source
recursive Copy children too true

void setGeometry(BufferGeometry* geometry)

Sets the geometry for this points object

geometry BufferGeometry containing vertex positions

BufferGeometry* getGeometry() const

Gets the geometry of this points object

void setMaterial(Material* material)

Sets the material for this points object

material Material to use for rendering

Material* getMaterial() const

Gets the material of this points object

void render()

Renders this points object

void dispose()

Releases resources (CPU/GPU)

void updateGXState()

Updates GX state for point rendering

void setupGXLight()

Sets up GX lighting for points

Properties

isPoints bool Read
name std Optional display name
id u32 Unique identifier
uuid std UUID string
enabled bool Active/inactive
version u32 Bumps on change
pointSize u8 Size of points in pixels
pointAdjust u8 Point size adjustment mode (GX_TO_ZERO, GX_TO_ONE)