Mesh Operations
explode
Explode a solid outward by a vector, separating its components.
Syntax:
Parameters:
| Parameter | Type | Description |
|---|---|---|
obj |
solid | The object to explode |
v |
[x, y, z] or number |
Explosion vector or scalar |
Examples:
oversample
Subdivide mesh edges for finer geometric detail. This increases the number of triangles in the mesh.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to oversample |
n |
int | — | Subdivision level |
round |
bool | False |
Round vertices toward a sphere |
Examples:
debug
Visualize mesh faces for debugging purposes. Colors faces to help identify geometry issues.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to debug |
faces |
bool | False |
Show individual faces |
Examples:
repair
Attempt to make a solid watertight (manifold). This is useful for fixing imported meshes that have holes, self-intersections, or other defects.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to repair |
color |
bool | False |
Preserve color information |
Examples:
separate
Split a solid into its disconnected components. Returns a list of separate solid objects.
Syntax:
Parameters:
| Parameter | Type | Description |
|---|---|---|
obj |
solid | The object to split |
Returns: A list of separate solid objects.
Examples: