Package-level declarations
Types
Arranges any number of Shape3d in a roughly square pattern (X and Y), with no shapes touching each other. Primarily designed to arrange multiple independent pieces on a single build-plate.
Currently the one and only heuristic used by AutoArrange.
Sometimes it is useful for the holes to be 1st class objects, instead of only modelling the solid parts. For example, we could define a pipe by modelling just the solid part (an extruded ring), or we could define it as a solid cylinder with a cylindrical cavity through it.
The base class for Union2d, Intersection2d and Difference2d.
The base class for Union3d, Intersection3d and Difference3d.
An extrusion takes a Shape2d, and stretches (extrudes) it upwards (the Z direction). Created via Shape2d.extrude. OpenSCAD calls this linear_extrude
.
Creates a 3D shape from a 2D shape (or many 2D shapes).
A heuristic, which makes a "best effort" to join the two shapes in a "pleasing" manner, avoiding twists, and broken extrusions where possible.
See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#hull
Pair up the points manually.
See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski
See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski
Similar to OneToOnePairing, except the pairs are offset. So point 0 of shapeA is paired to point offset of shapeB, and point 1 of shapeA is paired to offset + 1 of shapeB etc.
Assuming shapeA and shapeB are have the same number of points, this pairs the first point of A with the first point of B and so on, in a 1 to 1 fashion.
A solid of revolution built from a 2D shape shape2d. Created via Shape2d.revolve.
Parses STL files, and returns a Polyhedron. Note, STL comes in two flavours, binary and text. To distinguish between the two, we check the first 5 bytes, and if it reads solid
, then it is assumed to be an ascii file. However, I have seen binary STL files with an (erroneous?) header. In this case, use parseBinaryFile, instead of the more usual parseFile (which attempts to guess the flavour).
Parses an SVG file (Use the program Inkscape to edit SVG files) This is a Union2d of all shapes within the SVG file.
Helps Worm determine how points in pairs of paths are joined to form a tube between the two shapes.
Determines how the vertices of two 2D shapes are to be paired up when making 3d shapes from 2d shapes.
Static methods which are automatically imported within FooCAD scripts, which start making Worms from Shape2d.