Repository navigation
Releases
Releases · szubster/build123d-techdraw
v0.10.0
⚠️ Breaking changes
- Datum feature indicator placement (#62):
DatumFeatureSymbol(DatumFeature) now defaults todirection=None, automatically placing the frame outside the material along the outward surface normal with the triangle base on the feature outline (ISO 5459) instead of defaulting to"up". Passing an invaliddirectionvalue now raisesValueError. - Form tolerances reject datum references (#63): Per ISO 1101,
FeatureControlFramenow raisesValueErrorwhen a form characteristic (STRAIGHTNESS,FLATNESS,CIRCULARITY,CYLINDRICITY) is given datum references (datum_refs/datum_a..c). Use an orientation tolerance such asGDTCharacteristic.PARALLELISMwhen referencing a datum.
✨ Highlights
- Opt-in WebGPU (
wgpu) shading & WGSL technical views (#71, #75): Installbuild123d-techdraw[gpu]to unlockViewStylemodes (SHADED,SHADED_WITH_EDGES,GOOCH,TOON,BLUEPRINT_SHADED,XRAY) with hemisphere SSAO, per-part BOM colors, and supersampled raster layers composited underneath exact vector edges in both dual-theme SVG and native PDF. The base package remains 100% CPU-only with no GPU dependencies. - GPU Visibility-Buffer Hidden Line Removal (#76): Opt into
hlr="gpu"orhlr="auto"(default remains exact OCCThlr="exact") or callproject_shape_gpu_hlr(...)to classify B-Rep edges and silhouettes on the GPU while emitting standard crisp vector SVG/PDF/DXF geometry. - Interactive 3D-in-2D WebGL2 HTML blueprints (#73): Export self-contained, zero-CDN HTML5 blueprints via
sheet.export_html(...)/export_interactive_html(...)pairing the 2D drawing sheet with an interactive WebGL2 3D viewport featuring synchronized themes, BOM picking, explode slider, camera presets, and live X/Y/Z section cuts with procedural ISO hatching. - Distance-field (SDF) smart annotation layout (#74): Computes millimeter clearance fields around true concave view contours, title blocks, and tables via a WGSL Jump Flooding (JFA+1) shader with exact CPU fallback (
use_sdf=True,place_balloons_sdf(...),place_leaders_sdf(...)). - ISO 6410-1 cosmetic threads (#37): Added
CosmeticThreadandauto_cosmetic_threads(...)across SVG, PDF, and DXF outputs. - CPU & native PDF 1.4 acceleration (#72): Spatial-hash hidden-edge deduplication (~11× faster), parallel multiview projection (1.6×–2.5×), and a rewritten native PDF 1.4 renderer (16×–30× faster, with full RGBA
/SMaskraster<image>and<clipPath>support). - Drafting fixes & strict typing (#59–#69): Cleaner placement for leader callouts, surface finishes, weld symbols, diameter/linear dimensions, and broken views; model-unit return values from
dim_horizontal/dim_vertical/dim_aligned/add_overall_*; strictpyrightenforcement in CI. - Expanded documentation site (#77): New GPU Acceleration & Shaders guide, Interactive 3D HTML walkthrough with a live embedded demo, and a 12-example gallery at https://szubster.github.io/build123d-techdraw/.
📦 Installing optional GPU support
# Default CPU-only install (unchanged, zero GPU dependencies)
pip install build123d-techdraw
# With optional WebGPU / WGSL shaders, GPU HLR, and GPU SDF layout
pip install "build123d-techdraw[gpu]"When [gpu] is installed, GPU acceleration is auto-enabled when a compatible adapter is available (hardware Vulkan/Metal/DX12, or Mesa Lavapipe software Vulkan on headless Linux with WGPU_BACKEND_TYPE=Vulkan). Set BUILD123D_TECHDRAW_GPU=0 or pass gpu=False to force the CPU path, and inspect runtime status with is_gpu_available(), is_gpu_enabled(), and gpu_info().
What's Changed
🚨 Breaking Changes
- fix(annotations)!: place datum feature indicator outside the material by @szubster in #62
- fix(annotations)!: reject datum references on form tolerances by @szubster in #63
🚀 Features
- feat: add ISO 6410-1 cosmetic threads with bd_warehouse lookup by @szubster in #37
- feat(gpu): add opt-in wgpu foundation, mesh/camera bridge, and CI raster diff by @szubster in #71
- feat(renderers): add interactive 3D WebGL2 HTML blueprint exporter by @szubster in #73
- feat(layout): add GPU Jump Flooding SDF smart annotation layout by @szubster in #74
- feat(gpu): add WGSL shaded technical views with Gooch, SSAO, Blueprint, and X-Ray shaders by @szubster in #75
- feat(gpu): add GPU Visibility-Buffer Hidden Line Removal engine by @szubster in #76
🐛 Bug Fixes
- fix(core): report model lengths from dim_horizontal/dim_vertical/dim_aligned/add_overall_* by @szubster in #65
- fix(dimensions): render broken views correctly by @szubster in #61
- fix(dimensions): keep linear dimensions clear of the view outline by @szubster in #66
- fix(dimensions): extend DiameterDimension leader until its text is clear by @szubster in #67
- fix(annotations): move leader callouts off view geometry by @szubster in #59
- fix(annotations): draw ISO 2553 weld identification line clear of weld text by @szubster in #60
- fix(annotations): snap surface texture symbol onto its target surface by @szubster in #64
⚡ Performance
- perf: accelerate hidden-edge dedup, parallel multiview, and native PDF 1.4 export by @szubster in #72
📖 Documentation
- docs: expand website with GPU shaders, HLR, SDF layout, gallery, and live 3D HTML by @szubster in #77
🔧 Maintenance & Internal
- test: fix pyright errors in semantic-anchor and update_shape tests by @szubster in #68
- refactor: leverage build123d ExportSVG/ExportDXF and ezdxf.path by @szubster in #38
- ci: run pyright in the type-check job and fix its errors by @szubster in #69
- chore(skills): add merge-pr-queue skill for landing PRs one by one by @szubster in #70
Full Changelog: v0.9.0...v0.10.0
v0.9.0
⚠️ Breaking changes
- First-angle projection is now the default (ISO 128-3 / ISO 5456-2).
add_standard_multiview()andStandardMultiviewdefault tolayout="first_angle", andTitleBlockInfo.third_angledefaults toFalse. Passlayout="third_angle"/third_angle=Truefor ASME Y14.3 (#46). - BOM rows use a typed
PartInfoinstead of untyped dicts (#57). - Runtime duck typing replaced with static types in the public API (#58).
What's Changed
🚨 Breaking Changes
- feat(layout)!: typed BOM PartInfo; fix pyright errors, section backgrounds and anchored ordinates by @szubster in #57
- feat(layout)!: default to ISO first-angle projection and fix projection symbols by @szubster in #46
- refactor!: replace runtime duck typing with static types by @szubster in #58
🐛 Bug Fixes
- fix(core): show bare ratio in title block SCALE field by @szubster in #45
- fix(layout): size multiview isometric cell from its true projected extent by @szubster in #47
- fix(core): regenerate all view types in update_shape and keep view settings by @szubster in #53
- fix(annotations): re-project stale anchors and ordinate datums on view move by @szubster in #54
- fix(annotations): tighten radius matching for cylinder and fingerprint anchors by @szubster in #52
- fix(dimensions): stop measuring to view centre and use model deltas for H/V dims by @szubster in #51
- fix(core): replace placeholder revision row on first add_revision by @szubster in #50
⚡ Performance
📖 Documentation
🔧 Maintenance & Internal
- chore: add AGENTS.md agent tooling and use real third-party types by @szubster in #44
- refactor: simplify semantic anchor resolution and dedupe helpers by @szubster in #48
- chore: add CLAUDE.md symlink and enable pyright-lsp plugin by @szubster in #49
Full Changelog: v0.8.0...v0.9.0
v0.8.0
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
What's Changed
🚨 Breaking Changes
🚀 Features
📦 Dependencies
- chore(ci): bump actions/upload-pages-artifact from 3 to 5 by @dependabot[bot] in #24
- chore(ci): bump actions/deploy-pages from 4 to 5 by @dependabot[bot] in #25
- chore(ci): bump amannn/action-semantic-pull-request from 5 to 6 by @dependabot[bot] in #26
- chore(ci): bump astral-sh/setup-uv from 5 to 7 by @dependabot[bot] in #27
- chore(ci): bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #28
- chore(ci): bump actions/github-script from 7 to 9 by @dependabot[bot] in #34
- chore(ci): bump actions/checkout from 4 to 7 by @dependabot[bot] in #35
🔧 Maintenance & Internal
- ci: add Python 3.14 to test matrix by @szubster in #31
- ci(release): fix release notes generation and auto-label PRs by @szubster in #32
Full Changelog: v0.3.0...v0.4.0
v0.3.0
v0.2.0
What's Changed
🚀 Features
- feat: model-space dimensioning, context-aware balloons, rich tables, layout inspection, and frameless sheets by @szubster in #29
🐛 Bug Fixes
🔧 Maintenance & Internal
Full Changelog: v0.1.0...v0.2.0