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
impl Tree
impl Tree
pub fn rounded_rectangle(a: TreeVec2, b: TreeVec2, r: TreeFloat) -> Self
pub fn rectangle_exact(a: TreeVec2, b: TreeVec2) -> Self
pub fn rectangle_centered_exact(size: TreeVec2, center: TreeVec2) -> Self
pub fn box_mitered(a: TreeVec3, b: TreeVec3) -> Self
pub fn box_mitered_centered(size: TreeVec3, center: TreeVec3) -> Self
pub fn box_exact_centered(size: TreeVec3, center: TreeVec3) -> Self
pub fn rounded_box(a: TreeVec3, b: TreeVec3, r: TreeFloat) -> Self
pub fn half_space(norm: TreeVec3, point: TreeVec3) -> Self
pub fn cylinder_z(r: TreeFloat, h: TreeFloat, base: TreeVec3) -> Self
pub fn cone_ang_z(angle: TreeFloat, height: TreeFloat, base: TreeVec3) -> Self
pub fn emptiness() -> Self
impl Tree
impl Tree
pub fn array_polar_z(shape: Tree, n: u32, center: TreeVec2) -> Self
impl Tree
impl Tree
pub fn intersection(self, b: Tree) -> Self
pub fn inverse(self) -> Self
pub fn difference(self, b: Tree) -> Self
pub fn blend_expt(self, b: Tree, m: TreeFloat) -> Self
pub fn blend_expt_unit(self, b: Tree, m: TreeFloat) -> Self
pub fn blend_rough(self, b: Tree, m: TreeFloat) -> Self
pub fn blend_difference(self, b: Tree, m: TreeFloat, o: TreeFloat) -> Self
pub fn loft_between(self, b: Tree, lower: TreeVec3, upper: TreeVec3) -> Self
impl Tree
impl Tree
pub fn reflect_xy(self) -> Self
pub fn reflect_yz(self) -> Self
pub fn reflect_xz(self) -> Self
pub fn symmetric_x(self) -> Self
pub fn symmetric_y(self) -> Self
pub fn symmetric_z(self) -> Self
pub fn taper_x_y(
self,
base: TreeVec2,
h: TreeFloat,
scale: TreeFloat,
base_scale: TreeFloat
) -> Self
pub fn taper_xy_z(
self,
base: TreeVec3,
height: TreeFloat,
scale: TreeFloat,
base_scale: TreeFloat
) -> Self
pub fn shear_x_y(
self,
base: TreeVec2,
height: TreeFloat,
offset: TreeFloat,
base_offset: TreeFloat
) -> Self
pub fn attract_xy(
self,
locus: TreeVec3,
radius: TreeFloat,
exaggerate: TreeFloat
) -> Self
pub fn attract_yz(
self,
locus: TreeVec3,
radius: TreeFloat,
exaggerate: TreeFloat
) -> Self
pub fn attract_xz(
self,
locus: TreeVec3,
radius: TreeFloat,
exaggerate: TreeFloat
) -> Self
pub fn twirl_axis_x(
self,
amount: TreeFloat,
radius: TreeFloat,
center: TreeVec3
) -> Self
pub fn twirl_axis_y(
self,
amount: TreeFloat,
radius: TreeFloat,
center: TreeVec3
) -> Self
pub fn twirl_axis_z(
self,
amount: TreeFloat,
radius: TreeFloat,
center: TreeVec3
) -> Self
Checks if the tree is a variable.
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
– SeeBRepSettings
.
pub fn to_triangle_mesh<T: Point3>(
&self,
region: &Region3,
settings: &BRepSettings
) -> Option<TriangleMesh<T>>
[src]
pub fn to_triangle_mesh<T: Point3>(
&self,
region: &Region3,
settings: &BRepSettings
) -> Option<TriangleMesh<T>>
[src]Renders the tree to a TriangleMesh
.
pub fn to_contour_2d<T: Point2>(
&self,
region: Region2,
z: f32,
settings: &BRepSettings
) -> Option<Vec<Contour<T>>>
[src]
pub fn to_contour_2d<T: Point2>(
&self,
region: Region2,
z: f32,
settings: &BRepSettings
) -> Option<Vec<Contour<T>>>
[src]Renders a tree to a set of 2D contours.
pub fn to_contour_3d<T: Point3>(
&self,
region: Region2,
z: f32,
settings: &BRepSettings
) -> Option<Vec<Contour<T>>>
[src]
pub fn to_contour_3d<T: Point3>(
&self,
region: Region2,
z: f32,
settings: &BRepSettings
) -> Option<Vec<Contour<T>>>
[src]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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tree
impl UnwindSafe for Tree
Blanket Implementations
Mutably borrows from an owned value. Read more