pub struct RemeshParams {
pub max_edge_intersections: usize,
pub max_nodes: usize,
pub min_subdivision_size: Scalar,
pub curve_curve_min_subdivision_size: Scalar,
pub max_trace_steps: usize,
pub max_rewrites: usize,
}Expand description
Every tunable remesh and its phases need. Bundled rather than passed
positionally: the phases don’t share one tolerance (see
curve_curve_min_subdivision_size’s own note below), so the list is
long enough that positional arguments stop being readable at the call
site — and each field’s meaning is documented once here instead of in
every signature it’s threaded through.
Every field only affects how hard a search tries (budget, tolerance,
step length), never what a converged answer means — see AGENTS.md’s
“never use epsilons” rule.
Fields§
§max_edge_intersections: usizeSolution cap for the pairwise curve_curve_intersect /
curve_surface_intersect searches: how many points one returns at
most — its crossings, or, where the two coincide along an arc, that
overlap’s ends and points spread over it. The searches find overlaps
directly, not by hitting the cap.
max_nodes: usizeNode budget for every subdivision search.
min_subdivision_size: ScalarConvergence tolerance for the single-shape searches
(curve_could_contain / surface_could_contain).
curve_curve_min_subdivision_size: ScalarConvergence tolerance for the pairwise searches. Deliberately its
own, looser value: empirically a pairwise search needs a much
looser tolerance than a single-shape query to reliably converge
within max_nodes at all — see ValidationParameters’s own doc
comment.
max_trace_steps: usizeHow many marching steps one traced curve may take before it’s considered to have failed to reach a terminating vertex. An effort budget only: a trace that reaches its vertex does so in the same steps whatever the budget. The steps scale with the surfaces traced between and their curvature, not with the model’s units, so a curve takes about 16 steps across a flat face and 64 around a turn.
max_rewrites: usizeHow many rewrites — splits, merges, imprints — one stage of the remesh may make before it is considered not to settle, and how many pairs of faces one start point may trace between. An effort budget only: a stage that settles makes the same rewrites whatever the budget, and one that runs out is an error, never taken as settled.
Trait Implementations§
Source§impl Clone for RemeshParams
impl Clone for RemeshParams
Source§fn clone(&self) -> RemeshParams
fn clone(&self) -> RemeshParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more