Overview#

In OpenVCAD, a compiler is a class you run on an implicit Node tree that turns the design into a concrete artifact—files or data meant for another program, not another implicit model. The implicit field and attributes stay on the core side; the compiler prepares the tree at its own voxel size, samples what it needs and writes the output format. You do not need to call prepare() on the root first.

The bundled compiler families are:

  • Inkjet and PolyJet slices – MaterialInkjetCompiler (material volume fractions) and ColorInkjetCompiler (RGBA color) write PNG stacks; GCVFCompiler writes a Stratasys GCVF archive; MyersonCompiler writes per-material 1-bit BMP stacks.

  • Vat photopolymerization – VatCompiler writes grayscale BMP slices from an intensity field; MultiMaterialVatCompiler writes synchronized grayscale PNG stacks from volume fractions for dual- or quad-vat printers.

  • Extrusion (FFF) slicer projects – PrusaSlicerProjectCompiler writes a PrusaSlicer project with per-region print settings; FullSpectrumSlicerProjectCompiler writes an Orca FullSpectrum project that mixes filaments from color_rgb or volume fractions.

  • Volumetric data – VdbCompiler writes the surface level set and, optionally, occupancy and attribute grids to an OpenVDB file.

  • Simulation – SimulationCompiler meshes the design and exports it with material assignments for a finite element solver.

All of them derive from CompilerBase. The compiler classes are documented under Compilers; shared helpers such as the color pipeline live under Utilities.

OpenVCAD Python Bindings for reference compilers

pyvcad_compilers.version() → str#

Get the version of OpenVCAD