Struct libfive::BRepSettings [−][src]
pub struct BRepSettings { pub resolution: f32, pub quality: f32, pub workers: u32, pub algorithm: BRepAlgorithm, }
Expand description
Boundary representation settings passed to any of the rendering/export functions.
Fields
resolution: f32
The meshing region is subdivided until the smallest region’s edge is
below 1/resolution
in size. Make this larger to get a higher
resolution model.
In other words: should be approximately half the model’s smallest feature size. Subdivision halts when all sides of the region are below it.
quality: f32
This value is used when deciding whether to collapse cells. If it is
very large, then only linear regions are merged. Set as 0.1
to
completely disable cell merging.
workers: u32
Number of worker threads to use while meshing. Set as 0 to use the platform’s-default number of threads.
algorithm: BRepAlgorithm
The meshing algorithm.
Trait Implementations
Defaults for rendering a Tree
.
resolution
: 10
quality
: 8
workers
: 0
(determined automatically)
algorithm
: DualContouring
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BRepSettings
impl Send for BRepSettings
impl Sync for BRepSettings
impl Unpin for BRepSettings
impl UnwindSafe for BRepSettings
Blanket Implementations
Mutably borrows from an owned value. Read more