Package-level declarations

Types

Link copied to clipboard
interface Customisable

Models can have customisable data using the @Custom annotation on its vars. These can use simple types, such as int, double etc. But you may also create a type with one of more vars with a @Custom annotation. e.g.

Link copied to clipboard
abstract class Lazy2d : Shape2d

Sometimes it is handy to have a class be a type of Shape2d, but we don't want the complexity of creating a primitive shape, and instead, we build the shape from other primitives.

Link copied to clipboard
abstract class Lazy3d : Shape3d

Sometimes it is handy to have a class be a type of Shape3d, but we don't want the complexity of creating a primitive shape, and instead, we build the shape from other primitives.

Link copied to clipboard
class Path2d(val points: List<Vector2>, val closed: Boolean)

A set of points most commonly used by Shape2d. When a Shape2d is rendered, the path is assumed to be closed, despite the closed boolean. Therefore, the closed property is only used for such things as extruding a profile along a path.

Link copied to clipboard
class Path3d(val points: List<Vector3>, val closed: Boolean)

A list of 3D points (Vector3). This class was first created, so that ExtrusionBuilder could extrude along an arbitrary 3D path.

Link copied to clipboard
object Quality
Link copied to clipboard
data class QualityData(val minimumAngle: Double, val minimumSize: Double, val numberOfSides: Int)
Link copied to clipboard
class ScadOutputConfig(val writer: PrintWriter, val preamble: PrintWriter)
Link copied to clipboard
interface Shape

In FooCAD there are two kinds of Shape : a Shape2d or a Shape3d. The only things they have in common are defined here.

Link copied to clipboard
interface Shape2d : Shape

The basis for all two-dimensional objects in FooCAD.

Link copied to clipboard
interface Shape3d : Shape

The basis for all three-dimensional objects in FooCAD.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard