Builds a cube of edge length size centered on center, with its faces parallel to the
axes.
The cube solid
Builds a box centered on center with width along X, height along Y and length along
Z, its faces parallel to the axes.
The center and the three side lengths
The box solid
Builds a cylinder with an elliptical cross-section whose radii can differ at the two ends,
standing along Z and centered on center.
startRadius is the X and Y radius at the bottom end and endRadius at the top, so unequal
pairs make a tapered or cone-like solid; height is split evenly above and below center.
The center, the height, the two radius pairs and the segment count
The elliptic cylinder solid
Builds a round cylinder of the given radius standing along Z, with height split evenly
above and below center.
segments is the number of flat sides around it; more makes it rounder.
The center, the height, the radius and the segment count
The cylinder solid
Builds an ellipsoid, a sphere stretched separately along X, Y and Z, centered on center.
radius holds the three half-sizes in [x, y, z] order; equal values make a sphere.
The center, the three radii and the segment count
The ellipsoid solid
Builds a sphere from evenly sized triangles, the way a geodesic dome is built, centered on
center.
frequency is how finely the twenty starting faces are subdivided; it is used in whole
multiples of 6 and must be at least 6, and higher values give a rounder sphere.
The center, the radius and the subdivision frequency
The geodesic sphere solid
Builds a box with all its edges and corners rounded by roundRadius, centered on center
with width along X, height along Y and length along Z.
roundRadius must be less than half of the smallest side or an error is thrown; segments
sets how smoothly the rounding is faceted.
The center, the three side lengths, the rounding radius and the segment count
The rounded box solid
Builds a cylinder standing along Z whose two rims are rounded by roundRadius, with height
split evenly above and below center.
height must be more than twice roundRadius or an error is thrown.
The center, the rounding radius, the height, the radius and the segment count
The rounded cylinder solid
Builds a sphere of the given radius centered on center; segments is the number of
facets around it, so more makes it rounder.
The sphere solid
Builds a torus, a ring with a round cross-section, lying flat in the XY plane around center
with Z through its hole.
outerRadius is the distance from the center to the middle of the tube and innerRadius the
tube's own radius, which must be smaller. Rotations and startAngle are in degrees; an
outerRotation below 360 leaves the ring open.
The torus solid
Builds one cube of edge length size on every point of centers, in the same order.
The center points and the edge length
One cube per center point
Builds one box of the given width, height and length on every point of centers, in
the same order.
The center points and the three side lengths
One box per center point
Builds one elliptic cylinder with the given radii and height on every point of centers, in
the same order, as cylinderElliptic does for one.
The center points, the height, the two radius pairs and the segment count
One elliptic cylinder per center point
Builds one cylinder of the given radius and height on every point of centers, in the
same order, as cylinder does for one.
The center points, the height, the radius and the segment count
One cylinder per center point
Builds one ellipsoid with the given radii on every point of centers, in the same order, as
ellipsoid does for one.
The center points, the three radii and the segment count
One ellipsoid per center point
Builds one geodesic sphere of the given radius on every point of centers, in the same
order, as geodesicSphere does for one.
The center points, the radius and the subdivision frequency
One geodesic sphere per center point
Builds one rounded box with the given sides and rounding on every point of centers, in the
same order, as roundedCuboid does for one.
The center points, the three side lengths, the rounding radius and the segment count
One rounded box per center point
Builds one rounded cylinder with the given size and rounding on every point of centers, in
the same order, as roundedCylinder does for one.
The center points, the rounding radius, the height, the radius and the segment count
One rounded cylinder per center point
Builds one sphere of the given radius on every point of centers, in the same order, as
sphere does for one.
The center points, the radius and the segment count
One sphere per center point
Builds a solid from its faces, each given as a list of points that go around the face.
List the points of every face clockwise as seen from outside the solid; the faces must close the solid for booleans to work on it. Each list is read in reverse order and the input is not changed.
The faces as lists of points
The solid
Building JSCAD solids: cubes, cuboids, spheres, ellipsoids, cylinders, a torus and a solid from raw polygon points, each with a variant that places one copy on every point of a list. The kernel keeps Z as its own axis, so a cylinder stands along Z and a torus lies flat in the XY plane; every solid is a closed mesh of polygons and
segmentssays how many flat facets approximate a round surface.