FoundationPartsPrimitives2D Shapes

2D shapes

A handful of 2D primitives that compose with Extrusion, Lathe, Sweep, and Loft:

RectangleRounded(center, w, h, radius)        # filleted rectangle
Trapezoid(center, w_top, w_bottom, h)         # symmetric trapezoid
Triangle(p1, p2, p3)                          # triangle from 3 sketch points
ConvexHull(points)                            # 2D convex hull (monotone chain)
Text(sketch, text, size, font_url)            # glyph outlines (opentype.js)

RegularPolygon, Hexagon, Circle, Ellipse, Rectangle, and Square are documented separately — those are the existing canonical 2D types.