Snapping to 3d geometry#547
Open
NeilHarbin0 wants to merge 2 commits into
Open
Conversation
…a blenders "Snap during transform" setting Co-Authored-By: Codex <267193182+codex@users.noreply.github.com>
…nabled Co-Authored-By: Codex <267193182+codex@users.noreply.github.com>
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.
All of the code in this PR was done by codex AI, and tested in Blender by me.
This feature allows you to snap sketch geometry to existing 3d geometry in the scene. It doesn't cause any constraints to be made, or link anything to make it more parametric unfortunately. It snaps to a projection of 3d geometry onto the workplane. Ideally you would be doing this in an orthographic view normal to the sketch plane, but you don't have to be. If you are not, you can still snap accurately to things that are in the same plane as the workplane, which of course covers the face you made the workplane on.
I believe this covers #12.
This implementation enables:
Ideally it would show the little icons you get when blender does the snapping itself, but I wasn't able to figure out how to get that without having to implement new rendering just for the plugin which would basically duplicate whatever that existing code is.