pub enum ScadOp {
Show 25 variants
Union,
Difference,
Intersection,
Circle {
radius: f64,
fa: Option<f64>,
fs: Option<f64>,
fn_: Option<u64>,
},
Square {
size: Pt2,
center: bool,
},
Polygon {
points: Pt2s,
paths: Option<Paths>,
convexity: u64,
},
Text {
text: String,
size: f64,
font: String,
halign: TextHalign,
valign: TextValign,
spacing: f64,
direction: TextDirection,
language: String,
script: String,
fn_: Option<u64>,
},
Import {
file: String,
convexity: u64,
},
Projection {
cut: bool,
},
Sphere {
radius: f64,
fa: Option<f64>,
fs: Option<f64>,
fn_: Option<u64>,
},
Cube {
size: Pt3,
center: bool,
},
Cylinder {
height: f64,
radius1: f64,
radius2: f64,
center: bool,
fa: Option<f64>,
fs: Option<f64>,
fn_: Option<u64>,
},
Polyhedron {
points: Pt3s,
faces: Faces,
convexity: u64,
},
LinearExtrude {
height: f64,
center: bool,
convexity: u64,
twist: f64,
scale: Pt2,
slices: Option<u64>,
fn_: Option<u64>,
},
RotateExtrude {
angle: f64,
convexity: u64,
fa: Option<f64>,
fs: Option<f64>,
fn_: Option<u64>,
},
Surface {
file: String,
center: bool,
invert: bool,
convexity: u64,
},
Translate {
v: Pt3,
},
Rotate {
a: Option<f64>,
a_is_scalar: bool,
v: Pt3,
},
Scale {
v: Pt3,
},
Resize {
newsize: Pt3,
auto: bool,
auto_is_vec: bool,
autovec: (bool, bool, bool),
convexity: u64,
},
Mirror {
v: Pt3,
},
Color {
rgba: Option<Pt4>,
color: Option<ScadColor>,
hex: Option<String>,
alpha: Option<f64>,
},
Offset {
r: Option<f64>,
delta: Option<f64>,
chamfer: bool,
},
Hull,
Minkowski {
convexity: u64,
},
}
Expand description
The supported OpenSCAD operations.
Variants§
Union
Difference
Intersection
Circle
Square
Polygon
Text
Import
Projection
Sphere
Cube
Cylinder
Fields
Polyhedron
LinearExtrude
Fields
RotateExtrude
Surface
Translate
Rotate
Scale
Resize
Mirror
Color
Offset
Hull
Minkowski
Trait Implementations§
source§impl PartialEq<ScadOp> for ScadOp
impl PartialEq<ScadOp> for ScadOp
impl StructuralPartialEq for ScadOp
Auto Trait Implementations§
impl RefUnwindSafe for ScadOp
impl Send for ScadOp
impl Sync for ScadOp
impl Unpin for ScadOp
impl UnwindSafe for ScadOp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more