B-rep mesh compiler

class pyvcad_compilers.MeshCompiler
__init__(self: pyvcad_compilers.pyvcad_compilers.MeshCompiler, root: pyvcad.pyvcad.Node, voxel_size: pyvcad.pyvcad.Vec3, output_directory: str, file_prefix: str, num_iso_slices: SupportsInt) None

Constructor. Creates a MeshCompiler object.

Parameters:
  • root (Node) – The root node of the tree.

  • voxel_size (vec3) – The size of the voxel.

  • output_directory (str) – The output directory.

  • file_prefix (str) – The file prefix.

  • num_iso_slices (size_t) – The number of iso slices.

compile(self: pyvcad_compilers.pyvcad_compilers.MeshCompiler) None

Compiles the mesh.

setProgressCallback(self: pyvcad_compilers.pyvcad_compilers.MeshCompiler, callback: object) None

Sets the progress callback function.

Parameters:

progress_callback (function) – The progress callback function.