Page MenuHome

Sculpt: Union and Join mode for trim tools
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Oct 1 2020, 1:20 AM.
Tags
None
Tokens
"100" token, awarded by shader."Love" token, awarded by chironamo."Love" token, awarded by n-pigeon."Love" token, awarded by ostapblender."100" token, awarded by MetinSeven."Love" token, awarded by lopoIsaac."100" token, awarded by Frozen_Death_Knight.

Details

Summary

This enables a union boolean mode for the trimming gestures tools which
adds geometry to the mesh instead of cutting it.
It also adds a Join mode, which adds the geometry directly without
using a boolean operation.
Depending if you plan to use dyntopo or not, it is useful to have both
options available.

This is using the full depth of the object from the camera view for the
depth of the geometry, but options for controlling the trimming depth in
all modes are going to be added in later patches

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Oct 1 2020, 1:20 AM
Pablo Dobarro (pablodp606) created this revision.
Pablo Dobarro (pablodp606) retitled this revision from Sculpt: Enable Union mode for the trim tool to Sculpt: Enable Union mode for the trim tools.Oct 1 2020, 1:24 AM
Pablo Dobarro (pablodp606) edited the summary of this revision. (Show Details)

It would be amazing to have the option to just add the new geometry as well and skip the boolean operation all together.

A lot of the time it is much easier to work with multiple intersecting geometry islands instead of one, big geometry island.

Pablo Dobarro (pablodp606) retitled this revision from Sculpt: Enable Union mode for the trim tools to Sculpt: Union and Join mode for trim tools.Oct 4 2020, 8:40 PM
Pablo Dobarro (pablodp606) edited the summary of this revision. (Show Details)

It would be amazing to have the option to just add the new geometry as well and skip the boolean operation all together.
A lot of the time it is much easier to work with multiple intersecting geometry islands instead of one, big geometry island.

I guess what you really want is an "insert mesh" brush. And yes, count me in, IT'S A MUST!

Bastien Montagne (mont29) requested changes to this revision.Oct 5 2020, 1:00 PM

Generally looks fine, besides points noted in comments below.

source/blender/editors/sculpt_paint/paint_mask.c
827

Why did you remove INTERSECT mode here?

835

difference

836

no need for a capital? Or else, please also add it to the Difference comment…

1103–1124

Better move the whole block inside the if (trim_operation->mode != SCULPT_GESTURE_TRIM_JOIN) condition, that way we have properly localized boolean_mode variable, which does not stay undefined in SCULPT_GESTURE_TRIM_JOIN case e.g.

This revision now requires changes to proceed.Oct 5 2020, 1:00 PM

Would it be possible to offer a mode for the generation of the new mesh where the thickness of the 3D mesh along the shape created is determined by how close to the edge each point on the surface is? Basically allowing for drawing sausages. Because that could be a really fast method for creating basic anatomical shapes for starting a sculpt of a character.

Pablo Dobarro (pablodp606) marked 4 inline comments as done.
  • review update
source/blender/editors/sculpt_paint/paint_mask.c
827

Before this commits modes were not exposed in the UI, but I implemented them anyway to debug the boolean operation. The problem with exposing intersect is that it won't work with symmetry using the current implementation (if you intersect the trimming shape on one side of the object, it will remove the all the original mesh from the other side, so the result won't be symmetrical).

Bastien Montagne (mont29) added inline comments.
source/blender/editors/sculpt_paint/paint_mask.c
827

OK, then maybe add a comment here explaining why it has to be hidden for now?

841

any ?

This revision is now accepted and ready to land.Oct 6 2020, 11:17 AM