b3dSubdivideMesh

Subdivides mesh triangles by splitting edges and creating midpoint vertices, optionally applying smoothing. Takes mesh (surface-based mesh entity), iterations (number of subdivision passes, 1+), smooth (0=no smoothing, 1=apply smoothing), smoothFactor (0.0-1.0, smoothing strength when smooth=1, ignored when smooth=0). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
iterations Int
smooth Int
smoothFactor Double

Returns

Void

Quick Summary

Subdivides mesh triangles by splitting edges and creating midpoint vertices, optionally applying smoothing. Takes mesh (surface-based mesh entity), iterations (number of subdivision passes, 1+), smooth (0=no smoothing, 1=apply smoothing), smoothFactor (0.0-1.0, smoothing strength when smooth=1, ignored when smooth=0). Returns nothing.

Technical Exegesis...

Subdivides mesh triangles by splitting edges and creating midpoint vertices, optionally applying smoothing. Takes mesh (surface-based mesh entity), iterations (number of subdivision passes, 1+), smooth (0=no smoothing, 1=apply smoothing), smoothFactor (0.0-1.0, smoothing strength when smooth=1, ignored when smooth=0). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, and locked. Clamps iterations to minimum 1. Clamps smoothFactor to 0.0-1.0 range.

Example

Example.bam
; No example implemented yet