pub struct TessellationSettings {
pub linear_deflection_mode: LinearDeflectionMode,
pub mesh_deviation: f32,
pub chord_tolerance: f32,
pub angular_tolerance_deg: f32,
pub weld_cross_face: bool,
pub weld_angle_threshold_deg: f32,
pub persist_brep_snapshot: bool,
pub generate_boundary_edges: bool,
}Expand description
Parameters controlling tessellation quality for viewport rendering.
Fields§
§linear_deflection_mode: LinearDeflectionMode§mesh_deviation: f32Dimensionless multiplier applied to the bbox-derived chord height when
Self::linear_deflection_mode is LinearDeflectionMode::BboxScaled.
Typical range 0.05..=1.0; smaller values yield finer triangulation.
chord_tolerance: f32Absolute chord height in model units when using LinearDeflectionMode::AbsoluteMm.
angular_tolerance_deg: f32§weld_cross_face: boolWhen true, the kernel collapses vertices that share a position across
multiple faces and whose face normals are within
Self::weld_angle_threshold_deg of each other. This typically
shrinks vertex counts by 4–6× on dense CAD models without flattening
genuine sharp edges, since dissimilar face normals stay separate.
weld_angle_threshold_deg: f32Maximum angle between two face normals at a shared position for them to be merged into a single welded vertex. Above this angle the kernel keeps them separate so hard CAD edges stay crisp under shading. Defaults to 30°.
persist_brep_snapshot: boolWhen true, import keeps each body’s shape snapshot in brep_blob
beside its mesh. Meshing happens during the import either way;
serializing the snapshots is most of the work of reading a large
assembly, and turning this off skips it. The STEP asset remains
available in the document regardless.
generate_boundary_edges: boolWhen true, compute mesh outline / edge segments for the viewport (face boundaries). Skipping saves CPU on huge imports when outlines are not needed.