Skip to main content

Module remesh

Module remesh 

Source
Expand description

Region remeshing: matching a brush region’s density to a target edge length.

remesh runs rounds of midpoint splits, midpoint collapses, and Delaunay-style flips over the edges under a Region, until a round changes nothing or max_rounds runs out, and commits through one Transaction. New vertices sit at edge midpoints; existing positions are never modified.

Structs§

Region
A spherical region of influence. An edge takes part when its midpoint lies in the strict interior; the boundary itself is inert.
RemeshOptions
Options for remesh.
RemeshOptionsBuilder
Builder for RemeshOptions.
RemeshReport
Outcome of remesh.

Constants§

COLLAPSE_FACTOR
Edges shorter than this multiple of the target length collapse.
REMESH_MAX_ROUNDS
Default cap on remesh rounds.
SPLIT_FACTOR
Edges longer than this multiple of the target length are split.

Functions§

remesh
Remeshes the edges inside options.region toward the target length.