Struct libfive::Tree[][src]

pub struct Tree(_);
Expand description

Tree of operations.

Core

Standard Library

These features are dependent on the stdlib feature being enabled.

Implementations

Operations taking multiple 2nd arguments.

Checks if the tree is a variable.

Returns the value of the tree if it is constant.

I.e. if it was created from an f32 value.

Errors

Returns TreeIsNotConstant if the tree is not constant.

Evaluation, Import & Export

Common Arguments

  • region – A bounding box that will be subdivided into an quadtree/octree.For clean lines/triangles, it should be near-cubical.But this is not a hard requirement.

  • settings – See BRepSettings.

Renders a 2D slice at the given z height into a Bitmap.

Arguments

  • resolution – Should be approximately half the model’s smallest feature size. Subdivision halts when all sides of the region are below it.

Renders the tree to a TriangleMesh.

Renders a tree to a set of 2D contours.

Renders a tree to a set of 3D contours.

Computes a contour and saves it to path in SVG format.

Computes a mesh and saves it to path in STL format.

Serializes the tree to a file.

The file format is not archival and may change without notice.

Note that files may fail to load with older versions of libfive if the packed_opcodes feature is enabled.

Deserializes a tree from a file.

Note that old files may fail to load if the packed_opcodes feature is enabled.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Executes the destructor for this type. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

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

This method tests for !=.

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

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.