Skip to main content

SurfaceGeometryData

Other

Represents a surface mesh using vertex positions, triangle cells, and optional RGB color arrays.

Import

import ScriptingApi as api

# Access the class
# SurfaceGeometryData is available via api.SurfaceGeometryData

Properties

vertices

Vertex positions [x, y, z].

Type: list


cells

Triangle cells stored as vertex index triplets [i0, i1, i2].

Type: list


vertex_colors

Optional RGB colors [r, g, b] for each vertex. Values must be in the range [0, 1].

Type: list


cell_colors

Optional RGB colors [r, g, b] for each triangle cell. Values must be in the range [0, 1].

Type: list


See Also