wireframes.shapes.primitives documentation
active-points
(active-points shape)
Filters points that only participate in polygon faces
augment
(augment shape1 shape2)(augment shape1 shape2 & more)
Add two or more shapes together
center-at-origin
(center-at-origin shape)
Determines the bounds of the shape, then shifts it to be centered at the origin.
Note only the bounds are used to determine the central point, rather than the
averaged centroids
compute-bounds
(compute-bounds shape)
Calculates the minimum and maximum bounds for the shape
extrude
(extrude shape transform n)(extrude generator n)
Given a shape, make a more complicated shape by copying it through the
transform n times, and connecting the corresponding points. This is more
powerful than the usual kind of extrusion, and can be used to create fairly
interesting shapes --- a snail shell from a circle, for instance.
make-grid
(make-grid x y w h)
make-line
(make-line & points)
Creates a joined line consisting of the points of the form [x y z]
make-point
(make-point x y z)
Create a shape consisting of a single point
make-polygon
(make-polygon & points)
make-surface
(make-surface x-range y-range z-fn)
mesh
(mesh x-divisions y-divisions & [x-periodic? y-periodic?])