Enum scad::ScadElement
source · pub enum ScadElement {
Show 25 variants
Translate(Vector3<f32>),
Scale(Vector3<f32>),
Rotate(f32, Vector3<f32>),
Mirror(Vector3<f32>),
LinearExtrude(LinExtrudeParams),
RotateExtrude(RotateExtrudeParams),
Difference,
Union,
Hull,
Intersection,
Cube(Vector3<f32>),
Cylinder(f32, CircleType),
Sphere(CircleType),
Cone(f32, CircleType, CircleType),
Polyhedron(Vec<Vector3<f32>>, Vec<Vec<i32>>),
Import(String),
Square(Vector2<f32>),
Circle(CircleType),
Polygon(PolygonParameters),
Offset(OffsetType, bool),
Rotate2d(f32),
Translate2d(Vector2<f32>),
Scale2d(Vector2<f32>),
Color(Vector3<f32>),
NamedColor(String),
}
Expand description
Different kinds of scad modules and function. These are parameters
for ScadObjects
.
Most of these have the same name as the openscad counterparts so see their documentation for details
Variants§
Translate(Vector3<f32>)
Scale(Vector3<f32>)
Rotate(f32, Vector3<f32>)
Mirror(Vector3<f32>)
LinearExtrude(LinExtrudeParams)
RotateExtrude(RotateExtrudeParams)
Difference
Union
Hull
Intersection
Cube(Vector3<f32>)
Cylinder(f32, CircleType)
Sphere(CircleType)
Cone(f32, CircleType, CircleType)
Polyhedron(Vec<Vector3<f32>>, Vec<Vec<i32>>)
Import(String)
Square(Vector2<f32>)
Circle(CircleType)
Polygon(PolygonParameters)
Offset(OffsetType, bool)
Rotate2d(f32)
Translate2d(Vector2<f32>)
Scale2d(Vector2<f32>)
Color(Vector3<f32>)
NamedColor(String)
Implementations§
Trait Implementations§
source§impl Clone for ScadElement
impl Clone for ScadElement
source§fn clone(&self) -> ScadElement
fn clone(&self) -> ScadElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ScadElement
impl Send for ScadElement
impl Sync for ScadElement
impl Unpin for ScadElement
impl UnwindSafe for ScadElement
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.