3D Modeling
UsableMeshes and procedural models, and exact CAD solids: sketches, extrusions, fillets and sections
525 nodes in 28 categories
- Ships with
- Divooka ExploreDivooka Compute
- Support tier
- Tier 2 (proposed)
- Package
- CAD Procedural Generation
CAD
Exact solids, surfaces and curves: sketches solved by their constraints, extruded or turned into solids, edges and faces chosen by what they are and filleted, shelled or cut, then sectioned and measured; and lists and trees of them, a node a step.
Procedural Generation
Heightmap terrain, noise, erosion, planet maps and texturing, with the 3D meshes and scenes to put them on.
Mesh Primitive Selection
Brush Select Faces BoxFace box brush.Brush Select Faces SphereFace sphere brush.Brush Select Vertices BoxBrush Select Vertices SphereChecker Deselect EdgesChecker Deselect FacesChecker Deselect VerticesSimple DCC-style "checker deselect":Compute Face AreaWorks for planar or mildly non-planar n-gons.Edge FacesEdge NeighborsEdges From FacesEdges From VerticesEdges Of VertexEdge VerticesExpand EdgesExpand FacesExpand VerticesFace EdgesFace NeighborsFaces From EdgesFaces From VerticesFaces Of VertexFlood Select FacesFlood Select VerticesHalf Edges Of VertexIntersectInvert EdgesInvert FacesInvert VerticesMask SelectPolygon face selection using image mask.Parse Index GroupParses expressions like:Select Adjacent EdgesSelect Adjacent FacesSelect Adjacent VerticesSelect Boundary EdgesSelect Boundary FacesSelect Boundary Of FacesSelect Boundary Vertices Of FacesSelect Downward FacesSelect downward facing/bottom faces.Select Edge By IdSelect Edge LoopSelect Edge RingSelect Edge Ring ComplicatedSelect EdgesSelect Edges By Face AngleSelect Edges By LengthSelect Edges By PredicateSelect Edges Inside BoxSelect Edges Inside SphereSelect Face By IdSelect Face LoopSelect FacesSelect Faces By AreaSelect Faces By Centroid Inside BoxSelect Faces By Centroid Inside SphereSelect Faces By Min SidesSelect Faces By NormalSelects faces whose normal points within maxAngleDeg of the target direction.Select Faces By PredicateSelect Faces By SidesSelect Faces Connected To EdgesSelect Faces Facing PointSelect Interior EdgesSelect Interior FacesFace is considered "interior" here if none of its edges touch the mesh boundary.Select Linked EdgesSelect Linked FacesSelect Linked Flat FacesSelect Linked VerticesSelect Loose EdgesSelect Loose VerticesSelect Mirror VerticesSelect Naked EdgesSelect Non Manifold EdgesSelect Non Manifold VerticesSelect Random EdgesSelect Random FacesSelect Random VerticesSelect Sharp EdgesSelect Shortest Edge PathSelect Shortest Face PathSelect Shortest Vertex PathSelect Side FacesSelect Side Of ActiveBlender-like Side of Active for vertices.Select Similar Edges By LengthSelect Similar Faces By NormalSelect Similar Faces By SidesSelect Upward FacesSelect upward facing/top faces.Select Vertex By IdSelect VerticesSelect Vertices By Plane SideSelect Vertices By PredicateSelect Vertices By ValenceSelect Vertices Connected To EdgesSelect Vertices Inside BoxSelect Vertices Inside SphereShrink EdgesRemoves edges on the border of the current edge selection.Shrink FacesRemoves the outer "shell" of the face selection each step.Shrink VerticesRemoves boundary-like vertices of the current vertex selection.SubtractTo IdsTo Index GroupTry Get EdgeTry Get FaceTry Get VertexUnionVertex NeighborsVertices From EdgesVertices From Faces
CAD
AreaSums body surface areas in square model units, including interior faces of unfused groups.AssembleCollects two models as separate assembly bodies.BodiesReturns each body as an independently owned model for assembly manipulation.BoundsReturns combined bounds of trimmed geometry, or BoundingBox.Empty for an empty model.BoxBox with a minimum corner at the origin, or centered on it when requested.CapCaps planar openings.ChamferBevels the edges a description picks on one solid, cutting each back by a distance on both faces it joins.ColorPaints every face of the bodies, OpenSCAD's color(c): a face keeps its colour through whatever is done to it after - a union keeps each solid's colours, a cut face takes the colour of the cutter it came from, as OpenSCAD's preview shows them, and the faces a fillet or a shell makes take the colour most of the body is.Color OfA colour written as OpenSCAD writes one: a name CSS and OpenSCAD both know, case aside ("red", "SteelBlue"), or a hex code "#rgb", "#rgba", "#rrggbb" or "#rrggbbaa".Color RgbA colour from its red, green and blue, each from 0 to 1, as OpenSCAD's color([r, g, b, a]) gives one.ColorsThe colours a model's faces are painted, each once, in the order its bodies and faces first show them; empty for a model none of whose faces is painted.ConeCapped cone with its base at Z=0 and apex on positive Z.ContainsTests whether a point is contained by any solid in the model.CylinderCapped cylinder along positive Z, base at Z=0 or centered in height.DifferenceSubtracts the union of every cutter body from the union of subject bodies.DraftTilts the flat faces a description picks on one solid by an angle, in radians, about where each meets a neutral plane - a mould's draft: positive angles narrow the part away from the plane.EdgesThe exact curves of the edges a description picks on every body - all of them unless told which - in body and edge order: what a fillet or a chamfer given the same words would round, to see before it does.EmptyA successful collection with no bodies; identity for union and difference tools.EvaluateExplicitly evaluates a graph value so its diagnostic result can be inspected in a node.ExtrudeExtrudes a copied planar profile with optional hole loops.Extrude FacePushes or pulls the one face a description picks on a solid along its outward normal by a distance: outward adds to the solid, a negative distance cuts into it.Extrude RegionsExtrudes planar boolean regions, preserving each region's holes.Face ColorsThe colour each face of one body is painted, by face, or null for a face never painted.FacesThe faces a description picks on every body - all of them unless told which - each a sheet of its own in body and face order, its exact surface, holes and trims kept: what a shell or a draft given the same words would take, to see before it does.Faceted SphereOpenSCAD's faceted sphere, sphere(r, $fn = segments): rings of corners at (i + ½)·180°/rings from the top, rings being half the segments rounded up, each ring's first corner over +X; flat polygons close the top and the bottom and flat quadrilaterals join the rings.FilletRounds the edges a description picks on one solid with a rolling ball of a radius: "edges parallel to Z", "edges of the top face", "edges of Boss top".From BrepsImports independently owned copies of exact kernel geometry.From SurfaceCreates an open B-rep from a copied surface.FrustumA cone cut off square to its axis, standing on Z = 0 or centred on it - OpenSCAD's cylinder(h, r1, r2, center): its bottom radius and its top radius may differ, either may be zero for a point, and equal they make a cylinder.FuseSet union of two models, retaining disconnected output bodies.GroupCollects models without fusing touching or overlapping bodies.HullThe convex hull of solids, OpenSCAD's hull(): the smallest convex solid holding them all.Hull Of PointsThe convex polyhedron of points: OpenSCAD's hull of points (the corners of tiny cubes, say), exact, its corners the given points.IntersectionIntersection of two body sets.JoinJoins coincident naked edges of open B-reps; does not boolean fuse overlapping solids.Linear ArrayCopies the model count times, including the original at index zero, without fusing bodies.Linear ExtrudeA flat shape carried up the Z axis into a solid, OpenSCAD's linear_extrude(height, center, twist, scale): as it rises the shape turns about the Z axis by up to Twist and is scaled about it along X and Y up to Scale X and Scale Y, turned first and then scaled.LoftLofts ordered, copied cross-sections.MinkowskiThe Minkowski sum of solids, OpenSCAD's minkowski(): every point of one added to every point of the next.MirrorMirrors in a plane.Move FaceMoves the one flat face a description picks on a solid by X, Y and Z, and the faces around it follow: a wall made thicker, a step raised.OffsetOffsets a single closed solid without changing its topology.OrientOrients a model between local frames without scaling.Pick EdgesWhich edges, chosen from a list instead of written: the words a Fillet's or a Chamfer's pin reads, made for it.Pick FacesWhich faces, chosen from a list instead of written: the words a Fillet's, a Shell's or a Draft's pin reads, made for it.PipePipe along a copied rail.Planar FaceCreates a planar trimmed sheet from a closed boundary and optional hole loops.Polar ArrayCopies around the world Z axis without fusing bodies.PolyhedronA closed solid of flat faces through points, OpenSCAD's polyhedron(points, faces): each face a list of indices into the points.Project CurveProjects a curve in a direction onto all trimmed faces, retaining all resulting pieces.ProjectionThe shadow of solids on the XY plane, OpenSCAD's projection(): everything a line parallel to Z through it would meet, as a flat shape; with Cut, the cut through them at Z = 0 instead, OpenSCAD's projection(cut = true) (Cad.Slice).Pull CurvePulls a curve onto trimmed B-rep faces by closest point.ResizeA solid scaled about the origin to a size, OpenSCAD's resize([x, y, z], auto): a size of zero keeps that direction as it is, or, with Auto, scales it by the largest factor of the sizes given, keeping the proportions.RevolveRevolves a copied profile about a line.RotateRotates around an axis through the supplied center, in radians.Rotate ExtrudeA flat shape turned about the Z axis into a solid, OpenSCAD's rotate_extrude(angle): the shape's X becomes the distance from the axis and its Y the height, so the shape stands in the XZ plane, and it turns from there counter-clockwise seen from +Z.Rotate XyzA solid turned about the X, Y and Z axes in that order, each through the origin - OpenSCAD's rotate([x, y, z]), whose angles are in degrees where these are in radians.RuledCreates an open ruled surface B-rep between copied curves.ScaleScales about the origin.SectionReturns independently owned section curves through all bodies.SelectNames a selection on a solid, as an operation names what it made: the faces or edges the words pick - over the solid's descriptions and its groups, "edges of Boss top", "vertical edges of Plate" - become a group of that Name, which later operations read as they read any group ("Boss rim").ShellHollows one solid to walls of a thickness, leaving open the faces a description picks: "the top face" makes an open box.SliceThe cut through a solid at a height, as a flat shape in the XY plane - OpenSCAD's projection(cut = true) of the solid moved down by Z.SnapshotEvaluates and detaches construction history, preserving exact geometry.SphereSphere centered at the origin.SplitSplits every body by a plane, retaining both sides and all disconnected pieces.SubtractSubtracts one cutter model, including all of its bodies, from a subject model.SurfaceA heightmap read from a file as a solid, OpenSCAD's surface(file, center, invert): a text file of heights, one row of numbers a line along X, the lines along Y, blank lines and lines starting with # skipped; or an image, each pixel's grey (its luminance, 0.2126 R + 0.7152 G + 0.0722 B) a height from 0 to 100, the top row of the image furthest along Y.Surface From HeightsA heightmap as a solid, OpenSCAD's surface() of numbers given here: height heights[y][x] over the point (x, y), one unit apart, closed by upright sides and a flat bottom at the lower of 0 and one unit under the lowest height, as OpenSCAD closes it (smooth, one unit under the lowest point of the top, which can dip between heights).SweepSweeps a copied profile along one rail; freeform sweeps are fitted to tolerance.Sweep Two RailsSweeps a copied profile between two rails.ThickenThickens a single open surface B-rep into a solid.To MeshTessellates exact bodies with shared face-boundary vertices, preserving solid topology for collision and analysis.TorusRing torus around the Z axis.TransformedApplies a finite, invertible affine transform to every body.TranslateTranslates every body by a vector in model units.TrimTrims bodies to one side of a plane.UnionUnites all bodies as a set.VolumeSums signed solid volumes, in cubic model units.
Transform
M00Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M01Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M02Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M03Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M10Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M11Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M12Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M13Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M20Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M21Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M22Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M23Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M30Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M31Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M32Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M33Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).Make TransformCreates a transform from its 16 entries in row-major order.Epsilon EqualsTrue when every entry differs by at most Tol.EqualsExact equality of all entries.DeterminantDeterminant of the 4×4 matrix (for affine transforms the determinant of the 3×3 linear part; negative for mirrors).Is AffineTrue when the last row is (0, 0, 0, 1), i.e. there is no projective part.Is IdentityTrue when the transform is exactly the identity.ItemEntry at row R, column C.Get Hash CodeInverseThe inverse transform.To ArrayCopies the entries into a new 4×4 array indexed [row, column].To StringReturns the four rows, e.g. "[1, 0, 0, 5; 0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1]" (invariant culture).TransposeThe transposed matrix.Try Get InverseGeneral 4x4 inverse.Change BasisChange of coordinates: returns the transform taking coordinates in Source's frame to coordinates in Target's frame.From ArrayCreates a transform from a 4×4 array indexed [row, column].IdentityThe identity transform.MirrorReflection through a plane.Equality OperationExact equality of all entries.Inequality OperationInequality of some entry.Multiply OperationComposition a·b: applying the result equals applying B first, then A.Planar ProjectionProjection onto a plane along its normal.Plane To PlaneMaps geometry expressed relative to From to the same relative placement on To.RotationRotation by Angle radians about an axis through Center.ScaleUniform scale about the world origin.ShearShear: p' = p + (dot(p - plane.Origin, plane.ZAxis)) * shear.TranslationTranslation by a vector.
3D Geometry
Array CopyBevel EdgesBevel FacesBevel MeshBridge Edge LoopsBridge FacesCreate Bipyramid GemCreate BoxCreate a box of any size.Create ConeCreate a cone.Create CubeCreate a square cube.Create CylinderCreate a quad face cylinder.Create FenceCreate Great WallCreate GridCreate a quad grid meshCreate Ico SphereCreate a triangle sphere.Create Leaf BladeCreates a pointed leaf blade in local XY plane, oriented by rotation.Create Leaf QuadCreate Oriented BoxCreate PrismCreate Space BuddyCreate Square PyramidCreates a stepped square pyramid (a ziggurat/frustum made of quads only).Create StairCreates a common stair.Create Star PrismCreate TorusCreate a quad face torus.Create TreeCreate TubeCreate Uv SphereCreate a UV sphere (quad face).DifferenceInset FacesIntersectionMirror X CopyMirror Y CopyMirror Z CopyPackPack multiple meshes into one.Radial Array Copy DegreesRevolveRotateScaleTransformTranslateUnionUnpack Islands
CAD Builder
Make CAD BuilderCreates an empty session with a fixed, positive modeling tolerance.AddAdds a model by set union, applying the current placement first.AppendAdds a model as separate bodies without fusing them.BuildReturns the current immutable snapshot with no copying or regeneration.ClearRemoves all bodies, retaining the placement stack.ColorAdds everything a block builds, painted: OpenSCAD's color(c) { ... } (Cad.Color).CutSubtracts a model after applying the current placement.DifferenceAdds the first child of a block less every other: OpenSCAD's difference() { ... }.Difference GroupRuns a nested construction in an independent session, then subtracts its completed union as one atomic edit.ChildrenThe children added so far, in order, each placed: what a scoped operation given this session's block works on.CurrentThe current immutable evaluated snapshot.ToleranceThe tolerance used by builder boolean edits, in model units.HullAdds the convex hull of everything a block builds: OpenSCAD's hull() { ... } (Cad.Hull: exact for solids of flat faces and for solids standing upright between two heights, the hull of their tessellation otherwise).IntersectKeeps the intersection with a model after applying the current placement.IntersectionAdds what every child of a block has in common: OpenSCAD's intersection() { ... }.Linear ExtrudeAdds a flat shape a block draws, carried up the Z axis: OpenSCAD's linear_extrude(height) { ... }.MinkowskiAdds the Minkowski sum of everything a block builds, each child added to the next: OpenSCAD's minkowski() { ... } (Cad.Minkowski: exact for a solid and a ball, for solids standing upright, and for polyhedra; the sum of a tessellation otherwise).MirrorAdds what a block builds, mirrored in the plane through the origin square to a direction: OpenSCAD's mirror([x, y, z]) { ... }.Mult MatrixAdds what a block builds under a transform: OpenSCAD's multmatrix(m) { ... }.Pop TransformRestores the preceding placement; throws if the stack is empty.Push TransformPushes a local placement.ResizeAdds what a block builds, scaled about the origin to a size: OpenSCAD's resize([x, y, z], auto) { ... }.RotateAdds what a block builds, turned about the X, Y and Z axes in that order: OpenSCAD's rotate([x, y, z]) { ... }, in radians.Rotate ExtrudeAdds a flat shape a block draws, turned about the Z axis: OpenSCAD's rotate_extrude(angle) { ... } (Cad.RotateExtrude; the angle is in radians).ScaleAdds what a block builds, scaled about the origin: OpenSCAD's scale([x, y, z]) { ... }.SetReplaces the current model on success.Transform CurrentTransforms all current geometry; does not change the placement used for subsequent additions.TranslateAdds what a block builds, moved: OpenSCAD's translate([x, y, z]) { ... }.Try SetAttempts to replace Current without throwing for a geometric failure.Union GroupRuns a nested construction in an independent session, then unions the completed model as one atomic edit.With TransformExecutes a placement scope and restores placement even if the action throws.BeginCreates an empty session from a graph node.
CAD Curves
ArcCircular arc, in radians, with end angle greater than start angle and a sweep no greater than one turn.AreaArea of a closed planar boundary, before subtracting holes.BlendCreates a tangent or curvature continuous connector between the end of the first and start of the second curve.Boolean RegionsPlanar region boolean retaining outer/hole relationships.CircleCircle in a local frame.Closest PointClosest point on the curve.Control Point CurveNURBS from control points with optional rational weights.Curvature AtCurvature vector at a normalized parameter.Divide LengthReturns count+1 points dividing the curve into equal arc-length segments, including both endpoints.Divide ParameterReturns count+1 samples equally spaced in parameter space, including both endpoints; this is not equal arc-length division.EllipseElliptical curve in a local frame.ExtendExtends one or both ends by model length using the selected continuation style.FrameCreates a local frame from an origin and nonzero normal.FramesRotation minimizing frames at equal arc-length stations, suitable for orienting repeated components.InterpolateNURBS interpolant through the supplied points.IntersectionsCurve intersections including overlap intervals; event parameters use each curve's native domain.JoinJoins curves whose endpoints meet within tolerance; disconnected chains remain separate.LengthCurve length in model units.LineLine between distinct points.OffsetOffsets a planar curve by signed distance; reports failure when the kernel cannot construct the offset.Offset SharpOffsets a planar line/arc chain with sharp corners by intersecting the exact extended offset primitives.PairCollects two independently copied curves in order, for loft sections or region inputs in visual graphs.PointCreates a finite point.Point AtEvaluates a curve at a normalized parameter from zero through one.PolylinePolyline through copied points, optionally closing the last-to-first segment.Project To PlaneOrthogonally projects onto a plane; a collapsed projection reports failure.RebuildRebuilds a curve to a specified control point count and degree; this is an approximation.RectangleRectangle in a local frame, beginning at its origin and extending in positive local X and Y.ReverseReverses the curve without modifying its input.SplitSplits at normalized parameters strictly between zero and one, retaining all pieces.Tangent AtUnit tangent at a normalized parameter.TransformedReturns a transformed copy of a curve.TrimExtracts the normalized interval [start,end] from a curve.VectorCreates a finite vector.
Constraint Sketch
AngleThe angle between two lines, in degrees.ArcAn arc counter-clockwise from its start to its end about its centre.BuildSolves the sketch and builds its solid.CircleA circle.CoincidentTwo points at the same place.DiameterThe diameter of a circle or arc.DistanceThe distance between two points; with a name, it can be changed later through ConstraintCad.SetDimension.Equal LengthTwo lines of equal length.Equal RadiusTwo circles or arcs of equal radius.ExtrudeExtrudes the sketch's closed regions along the workplane's normal; the depth is a dimension like any other.OriginThe sketch origin, which is fixed.HorizontalA line parallel to the workplane's X axis.LatheTurns the sketch's closed regions a full turn about a construction line.LengthThe length of a line segment.LineA line segment; a construction line takes part in constraints and serves as a lathe axis but bounds no region.MidpointA point at a line's midpoint.On CircleA point on a circle or arc.On LineA point on a line (extended without end).ParallelTwo parallel lines.PerpendicularTwo perpendicular lines.PointA datum point.PolygonA closed polygon of lines with coincident corners, through the points in order.RectangleA closed rectangle of four lines with coincident corners, horizontal and vertical, counter-clockwise from the bottom edge.RevolveTurns the sketch's closed regions about a construction line by an angle in degrees.TangentAn arc tangent to a line at the point they share, which a ConstraintSketch.Coincident must make them share.VerticalA line parallel to the workplane's Y axis.BeginStarts a sketch in the XY workplane.
CAD 2D Shapes
AreaA shape's area, in square model units.BoundsThe box round a shape, flat at Z = 0.CircleA disk centred on the origin, an exact circle; or, given three or more segments, OpenSCAD's regular polygon of that many corners on the circle, the first on +X: circle(r, $fn = segments).DifferenceA shape with every cutter taken away, OpenSCAD's difference() of 2D children: the first child less the others.FillA shape without its holes, OpenSCAD's fill(): each region's outer boundary filled, islands in former holes merged in.FragmentsHow many segments OpenSCAD cuts a circle of a radius into, from its special variables: $fn when it is set, else as many as keep each segment's angle at least Minimum Angle and its length at least Minimum Size, and never fewer than five.From CurvesThe shape closed curves in the XY plane enclose: even-odd by default, as polygon paths are, so curves inside others are holes; nonzero reads which way each curve runs, as font outlines and most SVG paths do; any fills everything inside any curve.From RegionsThe shape of planar regions in the XY plane - what CadCurves.BooleanRegions and CadText.Regions give - merged where they overlap.HullThe convex hull of flat shapes, OpenSCAD's hull() of 2D children: the smallest convex shape holding them all.Hull Of PointsThe convex hull of points in the XY plane, as a flat shape; their Z is ignored.IntersectionWhat every shape has in common, OpenSCAD's intersection() of 2D children.MinkowskiThe Minkowski sum of flat shapes, OpenSCAD's minkowski() of 2D children: every point of one added to every point of the next.MirrorA shape mirrored in the line through the origin square to a direction, OpenSCAD's mirror([x, y]): (1, 0) mirrors left to right.OffsetA shape grown or shrunk by a distance with round corners, OpenSCAD's offset(r): growing, every point within the radius of the shape joins it (its Minkowski sum with a disk); shrinking, every point within the radius of its outside leaves it.Offset DeltaA shape grown or shrunk by a distance with sharp corners, OpenSCAD's offset(delta, chamfer): every boundary moves out (or in) square to itself, and corners are carried out to where the moved sides meet, or with Chamfer cut straight across.OutlinesCopies of every boundary of a shape: each region's outer boundary, then its holes.PolygonA polygon through points, OpenSCAD's polygon(points, paths): with no paths, one boundary through every point in order; with paths, one boundary through each list of point indices.ResizeA shape scaled about the origin to a width and height, OpenSCAD's resize([x, y], auto): a size of zero keeps that direction as it is, or, with Auto, scales it by the largest factor of the sizes given, keeping the proportions.RotateA shape turned about a point, counter-clockwise seen from +Z, OpenSCAD's rotate(a) about the origin (whose angle is in degrees).ScaleA shape scaled about the origin, OpenSCAD's scale([x, y]).SquareA rectangle with a corner at the origin, or centred on it: OpenSCAD's square([width, height], center).TextText as a flat shape, OpenSCAD's text(text, size, font, halign, valign): the font's exact outlines, counters as holes, laid out from the origin along +X with lines going down.TransformedA shape under a transform that keeps the XY plane where it is, OpenSCAD's multmatrix of a 2D child: any invertible mix of moves, turns, scales, mirrors and shears within the plane.TranslateA shape moved, OpenSCAD's translate([x, y]).UnionEverything in any of the shapes, OpenSCAD's union() of 2D children.
CAD Shape Builder
Make CAD Shape BuilderCreates an empty session with a fixed, positive modeling tolerance.AddAdds a shape by union.BuildReturns the shape drawn so far.ClearRemoves everything drawn.CutTakes a shape away from everything drawn so far.DifferenceAdds the first child of a block less every other: OpenSCAD's difference() { ... } of 2D children.FillAdds what a block draws without its holes: OpenSCAD's fill() { ... }.ChildrenThe children added so far, in order, each placed.CurrentThe shape drawn so far.ToleranceThe tolerance used by the session's booleans, in model units.HullAdds the convex hull of everything a block draws: OpenSCAD's hull() { ... } of 2D children (Cad2D.Hull), exact.IntersectKeeps only what everything drawn so far has in common with a shape.IntersectionAdds what every child of a block has in common: OpenSCAD's intersection() { ... } of 2D children.MinkowskiAdds the Minkowski sum of everything a block draws, each child added to the next: OpenSCAD's minkowski() { ... } of 2D children (Cad2D.Minkowski).MirrorAdds what a block draws, mirrored in the line through the origin square to a direction: OpenSCAD's mirror([x, y]) { ... }.OffsetAdds what a block draws, grown or shrunk with round corners: OpenSCAD's offset(r) { ... }.Offset DeltaAdds what a block draws, grown or shrunk with sharp or cut corners: OpenSCAD's offset(delta, chamfer) { ... }.ProjectionAdds the shadow of what a 3D block builds on the XY plane, or with Cut the cut through it at Z = 0: OpenSCAD's projection(cut) { ... } (Cad.Projection).ResizeAdds what a block draws, scaled about the origin to a size: OpenSCAD's resize([x, y], auto) { ... }.RotateAdds what a block draws, turned about the origin counter-clockwise: OpenSCAD's rotate(a) { ... }, in radians.ScaleAdds what a block draws, scaled about the origin: OpenSCAD's scale([x, y]) { ... }.SliceAdds the cut through what a 3D block builds at Z = 0: OpenSCAD's projection(cut = true) { ... }.TranslateAdds what a block draws, moved: OpenSCAD's translate([x, y]) { ... }.BeginCreates an empty flat session from a graph node.
3D Preview Scene
CAD Surfaces
AreaArea of the entire untrimmed surface.BoundaryCoons patch bounded by four connected curves in perimeter order.Closest PointClosest point on an untrimmed surface.Curvature AtPrincipal, Gaussian and mean curvature at normalized U and V.Frame AtLocal surface frame at normalized U and V.Interpolate GridInterpolates a rectangular grid in U-major order: points[u * countV + v].Iso CurveIsoparametric curve varying in U (direction 0) or V (direction 1), at a normalized parameter in the other direction.LoftUncapped loft surface with explicit interpolation degree and closing behavior.NetworkGordon surface through intersecting U and V curve families; the network must be compatible.Normal AtSurface unit normal at normalized U and V.OffsetSigned offset surface, fitted to tolerance when an exact construction is unavailable.PanelsSubdivides a surface into U-major rectangular panels.Point AtSurface point at normalized U and V.ReverseReverses one parametric direction without changing the surface locus.RuledRuled surface between two curves.TransformedTransforms an independently owned surface.TrimRectangular sub-surface using normalized bounds.
Mesh Editing
Geometry Converters
Build Rpr Mesh DataBuild Triangle Mesh IndicesAssume mostly it's triangle mesh already.Build Vertex BufferHalf Edge Mesh To N GonConverts Representations.HalfEdgeMesh back to Representations.NGonFaceIndexMesh.N Gon To Half Edge MeshConverts between editable half-edge topology and simple face-index mesh representation.To Half Edge MeshConverts streamed triangle or quad geometry into a half-edge mesh.To Interleaved Mesh DataConverts Representations.VertexDataTriangleMeshBuilder into rendering-ready interleaved triangle geometry.To N Gon Face Index MeshConverts InterleavedTriangleGeometry back into an NGonFaceIndexMesh.To Streamed Vertex Mesh DataConverts half-edge geometry into streamed indexed mesh data.To Yet Another Triangle MeshConverts interleaved triangle geometry back into Representations.VertexDataTriangleMeshBuilder.
Self Replicating Tree
Constraint Cad
CurvesThe model's solved curves, exact, in millimetres: every line, arc, circle, spline and text outline its sketches draw, and what its extrusions, lathes and repeats make of them - their copies, and the edges an extrusion runs between the copies of their ends - with construction lines and hidden groups left out.DimensionsThe dimensions that drive the model, with their names (the constraints' comments) and values.Exact SolidThe model's solid made exactly by the CAD kernel, in millimetres: every extrusion, lathe and revolve made from its sketch's exact curves rather than triangles, every repeat copied, each combined with the solid before it as the model combines it - joined, cut away, kept where they meet, or kept beside it.GroupsThe model's feature history: each group's name, type, remaining degrees of freedom and errors.RegionsThe closed regions a sketch bounds, exact, in millimetres: each the area inside an outer contour and outside the contours within it, its lines and arcs kept as lines and arcs.Set DimensionA new model with one dimension changed and everything re-solved: lengths in millimetres, angles in degrees.SolidThe solid the whole history builds, as a triangle mesh with shared vertices and normals; null when the model builds none.Surface AreaThe surface area of the model's solid, in square millimetres; 0 when it builds none.VolumeThe volume of the model's solid, in cubic millimetres; 0 when it builds none.
Declarative DSG Routines
CAD Evaluation
CAD Export
Write3mfWrites a 3MF package (3D Manufacturing Format, the core specification's model with base materials), the format slicers read colour from: each body one object, a closed mesh tessellated as CadExport.WriteStl tessellates, each triangle in the colour of the face it was cut from, with its alpha.Write DxfWrites a flat shape as a DXF drawing, as OpenSCAD exports a 2D object: its boundaries as lines, arcs and polylines on one layer, curves other than lines and arcs followed by polylines within the tolerance (the kernel's DxfWriter).Write OffWrites the bodies as one OFF file (Object File Format, which OpenSCAD reads and writes), tessellated as CadExport.WriteStl tessellates, each body a closed mesh of shared corners, its faces counter-clockwise seen from outside.Write StepWrites all exact B-reps to STEP, retaining disconnected bodies.Write StlWrites an explicitly tessellated binary STL.Write SvgWrites a flat shape as an SVG drawing, as OpenSCAD exports a 2D object: one filled path, even-odd so that holes stay holes, in millimetres with Y running up the page as it does in the model, on a page that is the shape's box.
Constraint Model
DimensionsThe dimensions that drive the model, in the order the model holds them.GroupsThe feature history, in order, without the built-in references group.Is SoundTrue when every group solved and built without errors.To Kerf BytesThe model as a Kerf document (.kerf), from which it can be loaded again.To StringFrom Kerf BytesLoads a model from the bytes of a Kerf document.
Custom Tree Nodes
CAD Surface Interpolation
Closed Cubic LoftInterpolates a cyclic sequence of at least three sections with a periodic C2 cubic spline.Cubic CurveInterpolates ordered points with a C2 cubic spline, chord-length parameters and unit Bessel endpoint tangents.Cubic LoftInterpolates compatible section control polygons with cubic Bessel endpoint tangents estimated from RMS control-point chord lengths.Cubic Loft At ParametersInterpolates sections at supplied strictly increasing parameters, using Bessel endpoint conditions in that same parameter space.
CAD Import Result
CAD Fonts
CAD Text
CAD Data Trees
CAD Import
Read MeshA closed mesh read from a file as an exact solid of flat faces, OpenSCAD's import() of STL, OFF, OBJ and 3MF: corners closer than the tolerance are one corner, triangles in one plane one face, and the faces are built as Cad.Polyhedron builds them - a solid of the kernel's own kind, which the words pick faces of, a fillet rounds and STEP carries.Read ShapeA flat shape read from a drawing, OpenSCAD's import() of SVG and DXF.Read StepReads STEP and converts coordinates to the chosen target unit.