Repository navigation
OpenVCAD 3.1.0 Patch Notes
OpenVCAD 3.1.0 is mostly about the renderer. It adds new ways to look inside a design, including a node-by-node tree view, an in-scene signed distance slice, and a layered iso-surface mode. It also adds surface probing tools for placing features on curved parts, better DICOM loading, and several fixes to the slicer project compilers and the renderer.
Upgrade with:
pip install --upgrade OpenVCADNew Features
Design Tree panel
- New Design panel in the renderer (View > Show Design Tree, or the tree icon in the toolbar) that shows your design as a tree of nodes. Each node gets a color for its family: geometry, composition, transform, modifier, attribute process, or mapping.
- Click any node to render that step of the design on its own. By default the node is shown as it was authored, in its own coordinate frame, with everything above it undone.
- Two toggles put the ancestor context back:
- Placement re-applies
Translate/Rotate/Scale/Mirrorabove the node, so it sits where it ends up in the full design. - Attributes re-applies the attributes and attribute processes (
AttributeModifier,Blend,Convolve) above the node.
- Placement re-applies
- Ghosts draw translucent context around the selected node: its Inputs (each child in its own tint, the default), its Parent, the Full design, or None to isolate it.
- A read-only property grid lists every parameter of the selected node.
- Exports (VTK, screenshots) follow the view you have selected, and the export dialog tells you what is included.
SDF Slice tool
- New Inspect > SDF Slice tool. It shows the signed distance field on a plane inside the 3D scene, clipped to the object's bounding box, so you can see the field outside the part as well as inside it.
- Drag the plane or its normal arrow to move it. Hold Shift while rotating to snap, or use the Face X / Y / Z buttons to line it up with an axis.
- A black contour traces the surface (SDF = 0). The part fades to a faint gray so you can see the plane through it, and you set how faint with the Object opacity slider.
- Done hides the handles and keeps the slice. Clear removes the slice and brings the object back.
Layered Iso-surface render mode
- New third render mode, Render > Layered Iso-surface (
"render_mode": "layered_iso"in the headless renderer), alongside Iso-surface and Volumetric. - Draws a translucent shell at each boundary between materials, attribute bands, or alpha bands, so features embedded in clear or translucent material show through the outer skin. The edges stay crisp, which the volume renderer can't give you.
- Material opacity follows the same physical convention as the volumetric view: alpha is the fraction of light that 1 mm of material absorbs.
- New Layers display settings: Opacity scale (
layered_opacity_scale) makes every material more or less absorbing, and Shells (layered_shell_count, 1 to 32) sets how many iso-levels a graded field is split into.
Better volumetric rendering
- Volumetric renders get better lighting, less color bleed at material edges, and a smoother falloff at the surface.
- New Glossy surface option (
volume_gloss) that draws a clear, reflective skin on the outside of the part, like a glossy print. Without it, clear materials barely show. - New Glossiness slider (
volume_glossiness, 0 = matte/sanded, 1 = polished) for the volumetric and layered iso-surface views. It updates live without re-sampling.
Surface probing and placement (probe_point, probe_ray, surface_normal, alignment_angles)
- New
pyvcadfunctions for placing features against the surface of another node:pv.probe_point(node, point)moves a rough point onto the nearest surface and returns the exact position plus the outward normal there.pv.probe_ray(node, origin, direction)casts a ray and returns the first surface it enters.pv.surface_normal(node, point)returns the outward unit normal.pv.alignment_angles(forward, up)returns the pitch/yaw/roll thatpv.Rotateneeds to aim a child's +Z alongforwardand its +Y alongup.
- The renderer's Probe tool now shows a Surface Orientation readout (normal and matching
Rotateangles). A Copy Placement button copies a ready-to-pastepyvcadsnippet that orients a child node against the surface you clicked. - New example:
examples/surface_probe/text_on_a_curved_surface.py(raised and engraved text on a curved pressure vessel).
Custom render quality (fixed voxel size)
- New Custom quality profile (Render > Quality > Custom Voxel Size... or the toolbar dropdown). It samples at a voxel size you choose, in mm, rather than scaling with the part's size, so you can preview a design at a known print resolution.
- Works in the headless renderer too, through the
custom_voxel_sizesetting. It is saved with your other render settings.
DICOM loading improvements
DICOMLoadernow stacks slices by Instance Number (0020,0013) when every file has a unique one. Otherwise it falls back to a natural, digit-aware filename sort, so exports named1/2/10,001/002/010, orIMG_0000_0001all come out in the right order with no extra arguments.- New
slice_orderargument (pv.DICOMSliceOrder.AUTO/INSTANCE_NUMBER/SLICE_POSITION/FILENAME) to force a strategy. - New
filename_prefixargument to ignore a fixed part of the filename whose digits should not count toward the order (e.g."scan2024_"inscan2024_001.dcm). - New helpers
pv.collect_dicom_files()andpv.sort_dicom_slices()to check the resolved slice order without loading any pixel data. - (C++)
DICOMVolumecan now be placed anywhere. Its origin is configurable, andcenter_on_origin()handles the common case of centering the stack.
VisualizeSDF improvements
VisualizeSDFcan now slice the XY, XZ, or YZ plane (plane="xy" | "xz" | "yz"), withoffsetplacing the slice along the remaining axis.z_heightstill works as an alias foroffset, so existing scripts don't need to change.- Pass
show=Falseto get the matplotlib figure back for saving, which also lets you use it headless.
Slicer project compilers (PrusaSlicer / Full Spectrum)
- New
volume_fraction_palette_modesetting on bothPrusaSlicerProjectSettingsandFullSpectrumSlicerProjectSettings:"uniform"(new default) splits the fraction range intomax_palette_sizeequal bins, so a linear two-material gradient comes out as evenly spaced regions for any palette size."adaptive"keeps the old median-cut behavior, which is better when most of a part is one pure material with a thin transition.- Uniform needs a single free axis, so exports with three or more materials still use adaptive.
- New examples:
cyan_magenta_gradient_sweep(Full Spectrum color mixing across palette sizes),fuzzy_skin_chirp_bar.py, andfuzzy_skin_region_count_sweep.py(graded slicer settings meshes).
Node introspection API
- Every node now describes itself from Python:
child_nodes(),child_labels()(e.g.keep/subtractfor aDifference),type_name(),family(),properties(),display_label(),own_attribute_list(),node_id(), andis_placement(). Many nodes also have new getters for their parameters, such asSphere.center()/radius()andRotate.angles()/pivot(). All of these are safe to call beforeprepare(). - New
pv.SubtreeViewbuilds a view of any node inside a design, with optional placement and attribute context re-applied. This is what the Design Tree panel uses, and you can use it in your own scripts.
Other improvements
Node.prepare()andSignedDistanceField.prepare()now release the Python GIL, so long prepares (such as mesh SDFs) no longer freeze other Python threads like a GUI.TreeSamplersampling andevaluate_pointsmethods now accept an(N, 3)NumPy array and return NumPy arrays, which is much faster than passing lists ofpv.Vec3.- New OpenVCAD logo across the docs and renderer windows, and a script that builds it in OpenVCAD (
examples/logo/openvcad_logo.py).
Bug Fixes
- Slicer project compilers: Fixed empty gaps (slots running through the part) between settings-mesh regions when an attribute jumps sharply or is discontinuous between neighboring voxels, e.g. a sawtooth grading. The regions now meet at the midpoint of the transition and the part stays solid. This is on by default and can be turned off with the new
close_unresolved_band_gapssetting. - Renderer (Windows): Fixed the render window becoming unresponsive partway through a render. Progress updates are now throttled to a GUI-friendly rate, so the status bar no longer runs out of system handles.
- Renderer (Windows): Fixed floods of
wglMakeCurrent failed in MakeCurrent()errors (and the VTK error window) after closing a render window, especially after callingRender()more than once. The VTK scene is now released properly when the window closes. - Renderer: Iso-surfaces now always render opaque. Before, a handful of vertices with undefined color (e.g. thin lattice strut tips at high quality) could turn the whole part translucent.
- Renderer: Volumetric renders now respect each material's own alpha from its config (e.g.
clearstays nearly transparent). Before, the display opacity replaced it rather than scaling it. - Renderer: Fixed the window/taskbar icon not showing on startup.
VisualizeSDF: Fixed a "Node tree not prepared before evaluation" error on every call, and a crash when the slice extended outside the prepared bandwidth.- Packaging: Fixed the hatchling builds for
pyvcad-rendering,pyvcad-medical,pyvcad-metamaterials, andpyvcad-attribute-resolver.
Breaking Changes
- The renderer's "Signed Distance" visualized attribute has been removed. Use the new Inspect > SDF Slice tool in the GUI, or
pyvcad_rendering.VisualizeSDF(node, offset=..., plane="xy" | "xz" | "yz")in scripts. Headless render settings that still pass"visualized_attribute": "Signed Distance"now raise aValueErrorthat points to the replacement. - DICOM slice order: for multi-phase series where Instance Number repeats (e.g. cardiac CT with several phases), slices now come out phase by phase, where before they were interleaved. Pass
slice_order=pv.DICOMSliceOrder.FILENAMEif you relied on the old order. - (C++ only) Removed the unused
volumetric_ditheringutility fromlibvcad.