Expand description
The scad_tree library is a library for generating OpenSCAD code from Rust.
Notes on usage:
- 2D profiles for non-OpenSCAD functions/macros are specified by points in clockwise order.
- Polyhedron faces are specified in clockwise order.
Re-exports§
pub use dim2::BezierStar;
pub use dim2::CubicBezier2D;
pub use dim2::CubicBezierChain2D;
pub use dim2::QuadraticBezier2D;
pub use dim3::CubicBezier3D;
pub use dim3::CubicBezierChain3D;
pub use dim3::Polyhedron;
pub use dim3::QuadraticBezier3D;
Modules§
- Module for the creation of 2D profiles and curves.
- Module for the creation of 3D curves and polyhedrons.
- Module for metric threaded rod, nuts and bolts.
- Module for quickly importing library types and macros.
Macros§
- Creates a circle.
- Colors children.
- Create a cube.
- Creates a cylinder.
- Constructive Solid Geometry difference operation.
- Runs a code block in a separate thread.
- Constructive Solid Geometry hull operation.
- Import a file for use in OpenSCAD
- Constructive Solid Geometry intersection operation.
- Extrude a 2D profile along the Z axis creating a 3D shape.
- Minkowski sum.
- Mirror object(s).
- Offsets a 2D shape.
- Creates a polygon.
- Creates a polyhedron.
- Create a 2D projection of a 3D object.
- Resize an object.
- Rotates children.
- Create a 3D shape by rotating a 2D profile around the Z axis.
- Saves Scad objects to a file in a separate thread.
- Scale an object.
- Creates a sphere.
- Creates a square or rectangle.
- Loads a height map from a file.
- Creates text.
- Translates children.
- Constructive Solid Geometry union operation.
Structs§
- Wraps a
Vec<u64>
. - Holds the data for the Mersenne Twister algorithm.
- A matrix with column major order.
- Paths wrap a
Vec<Indices>
. - A 2D point.
- A 3D point.
- A 4D point.
- Wraps a
Vec<Pt2>
. - Wraps a
Vec<Pt3>
. - Wraps a
Vec<Pt4>
. - A tree of OpenSCAD operations.
- Text macro parameters
- Viewer struct is used to view points, edges, and curves in OpenSCAD.
Enums§
- Enum of all the named OpenSCAD colors
- The supported OpenSCAD operations.
- The possible directions of text.
- The ways for horizontal alignment of text.
- The ways for vertical alignment of text.
Functions§
- Returns true if a and b are within epsilon
- Returns the arc-cosine of degrees
- Returns the arc-sine of degrees
- Returns the arc-tangent of degrees
- Returns the cosine of degrees
- Returns the sine of degrees
- Returns the tangent of degrees
- Triangulate a 2D polygon.
- Triangulate a 2D polygon with vertices in CCW order.
- Triangulate a 3D polygon
- Triangulate a 3D polygon with vertices in CCW order.
Type Aliases§
- Alias for Paths.