Bonsai: preview drawing SVG in camera viewport - #9472
Open
franklincg wants to merge 2 commits into
Open
franklincg wants to merge 2 commits into
franklincg wants to merge 2 commits into
Conversation
Add an opt-in vector overlay for the final generated drawing SVG, with cached straight-line parsing and camera-plane mapping. Refresh the overlay after drawing generation and cover the pure SVG logic with focused tests. Generated with the assistance of an AI coding tool.
This was referenced Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a focused first slice for #6422. It adds an opt-in Generated SVG Overlay in the Drawings panel that reads the final combined drawing SVG and previews its straight-line publication styling directly in the active orthographic drawing camera viewport.
The overlay:
POST_VIEWGPU path;This PR deliberately does not attempt the complete publication preview yet. Fills, text, curves, transforms, clipping, markers/patterns, and paint servers remain outside this first bounded slice. In particular, cut/fill-color fidelity still needs a follow-up slice if this direction is accepted.
Testing
opacity="inherit".git diff --checkpassed.pytest-blenderis unavailable.Visual evidence
A local Windows visual harness used Blender 4.5.4 LTS with Bonsai 0.8.5-post1 and minimal integration adaptations for that older Bonsai API. The overlay/parser logic from this PR was used against a Bonsai-generated
PLAN_VIEW.svg. These screenshots validate the stroke-overlay slice only, not fills/text/patterns or full print fidelity.AI assistance
OpenAI Codex was used to investigate, implement, test, and review this change. I reviewed the resulting patch and take responsibility for the contribution. New AI-generated files contain the repository-required disclosure.
Refs #6422