You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds the Line Trim tool to Sculpt mode. It is exposed via
the toolbar along with the other Trim tools and as an entry in the Sculpt menu.
Technical Approach
Line gestures are represented as two points in screen space: the start
and end of the gesture. Trim tools work by taking a set of screen
points as the top face of a volume, projecting a copy of the face into
the scene, then using that as the operand shape for boolean operations.
To behave as users would expect, the Line Trim tool does the following
steps to make the initial face:
Take the sculpted object's bounding box.
Project the bounding box into screen space
Take the magnitude of the diagonal line made from the bounding box
Use the magnitude multiplied by an arbitrary factor to ensure the
initial line is long enough to fully divide the object.
Create two points by moving in a perpendicular direction from start
and end points.
Use the resulting four points as vertices of the quad in screen space.
Differences with Other Trim Tools
Line Trim only supports the Difference mode. As such, the
corresponding tool options have been disabled in the header.
Alternatives
Instead of using a boolean operation, this could be achieved by using
a bisect operation when using the Fixed projection mode. While this
may result in a better performing tool, it is not guaranteed and
requires extra work to integrate this approach.
New line trim act-once operator... that already exists in the toolshelf.
Add icon, document.
Details
SHA-1: d4a6164
This PR adds the Line Trim tool to Sculpt mode. It is exposed via
the toolbar along with the other Trim tools and as an entry in the
Sculpt menu.
Technical Approach
Line gestures are represented as two points in screen space: the
start
and
end
of the gesture. Trim tools work by taking a set of screenpoints as the top face of a volume, projecting a copy of the face into
the scene, then using that as the operand shape for boolean operations.
To behave as users would expect, the Line Trim tool does the following
steps to make the initial face:
initial line is long enough to fully divide the object.
and end points.
Differences with Other Trim Tools
corresponding tool options have been disabled in the header.
Alternatives
a bisect operation when using the Fixed projection mode. While this
may result in a better performing tool, it is not guaranteed and
requires extra work to integrate this approach.
Pull Request: https://projects.blender.org/blender/blender/pulls/120845
The text was updated successfully, but these errors were encountered: