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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Defaults for rendering a Tree.

resolution: 10 quality: 8 workers: 0 (determined automatically) algorithm: DualContouring

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.