Primitive catalog#
Every OpenVCAD design starts from leaf nodes: the primitives at the bottom of the tree that define geometry. This page shows each one with a render, a link to its Python API entry, and the example script it came from. Where a primitive has more than one useful form, use the arrows on its image to step through them.
Leaves combine with booleans, transforms and the other operations in this section, and each one carries attributes like any other node. If those are new to you, start with Getting Started. Every example lives in examples/geometry/ and runs on its own.
Basic solids#
A box from a center and size, or from two corners with RectPrism.FromMinAndMax.
Implicit functions#
Any implicit surface from a math expression or a Python callable, cut to a bounding box.
Profiles, curves and text#
These leaves build solids from 2D outlines and 3D curves. Curves, profiles and sweeps covers them in depth, including grading material along a path.
A 2D Profile lifted from its sketch plane, with optional draft, twist and a wall offset law.
A 2D Profile spun about an axis in its sketch plane (Z by default), fully or through part of a turn.
A blend between 2D Profile sections at chosen heights, even between different shapes and topologies.
Lattices#
Tip
Building a lattice? Start with the Metamaterials guides. The pyvcad_metamaterials package builds TPMS, strut, plate and stochastic lattices, fills parts with them, grades them, and maps them onto curved surfaces. The TPMS and lattice catalog shows every built-in cell.
The two leaves below are lower level. They describe a beam lattice one beam at a time, written by hand or read from a 3MF file. Reach for them when you already have explicit node and beam lists, such as a lattice designed in another tool.
Beams indexed into one shared vertex list, with optional tapering and balls at the nodes.
A lattice imported from a 3MF file that uses the Beam Lattice Extension. See Importing 3MF beam lattices.
Imported and sampled geometry#
These leaves bring in geometry made elsewhere. The Imported geometry section covers them in more detail.
A closed triangle mesh from a file or a SurfaceMesh, converted to a signed distance field.
A colored 3MF or OBJ model; this one is an OBJ with an image texture. Its colors become a COLOR_RGBA field. See Importing textured solids.
A distance or occupancy grid from an OpenVDB file or grid. The render compares an original part with copies rebuilt at three smoothing levels.
Raised relief on a selected patch of a mesh or CAD surface, from an image or a function. See Physical surface relief.