Page MenuHome

Sculpt: Mask Slice
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Oct 31 2019, 2:04 PM.
Tokens
"Love" token, awarded by Zino."Love" token, awarded by S_Jockey."Love" token, awarded by Enoch11223344."Love" token, awarded by damian."Mountain of Wealth" token, awarded by TheAngerSpecialist."Love" token, awarded by astrand130."Love" token, awarded by viadvena."Love" token, awarded by Tonatiuh."Love" token, awarded by RodDavis."Love" token, awarded by MetinSeven."Love" token, awarded by Maged_afra."Love" token, awarded by monio."Love" token, awarded by Brandon777."Love" token, awarded by mfink."Love" token, awarded by Dusty_Shoe."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by plyczkowski."Like" token, awarded by erickblender."Like" token, awarded by xrg."Love" token, awarded by amonpaike."Like" token, awarded by knightknight."Burninate" token, awarded by lopoIsaac."Party Time" token, awarded by tiagoffcruz."Party Time" token, awarded by Floatharr."Yellow Medal" token, awarded by Alrob."Love" token, awarded by Fracture128.

Details

Summary

Sculpt: Mask Slice

This operator is similar to Mask Extract, but it deletes the masked points on the original mesh and fills the holes. This can be useful for quickly trimming or splitting an object.

This is not meant to be the main trimming tool of sculpt mode. I plan to have a set of trimming tools based on geometry booleans (trim box, lasso, line, bisect...) but in some cases doing a mask selection is more convenient.

Diff Detail

Repository
rB Blender

Event Timeline

Wow! That was what I had been dreaming about!
How may I test it?
I checked out branches, but didnt find one dedicated. =(

Jeroen Bakker (jbakker) requested changes to this revision.Nov 14 2019, 3:26 PM

You mention other slicing tools. Does this still fit into this list of tools?

source/blender/editors/mesh/editmesh_mask_extract.c
450

Bad parameter name. Would suggest new_object

This revision now requires changes to proceed.Nov 14 2019, 3:26 PM
Pablo Dobarro (pablodp606) marked an inline comment as done.
Pablo Dobarro (pablodp606) edited the summary of this revision. (Show Details)
  • Review update

I also added Mask Slice and Mask Slice and Fill Holes to the menu, as some users requested that they want to delete the masked geometry without filling the holes.

The main trimming tools will cut directly through the whole mesh from the view using a box or lasso selection and should be available as a tool directly from the toolbar (like box mask and box hide) using the new boolean code in T67744 and the sculpt mode undo, so hopefully, they will be much faster and precise than this.
This operator is more similar to mask extract, and should only be used when you need to remove a masked selection, so I think it is a good idea to keep them separate.

Jeroen Bakker (jbakker) requested changes to this revision.Nov 15 2019, 4:00 PM
Jeroen Bakker (jbakker) added inline comments.
release/scripts/startup/bl_ui/space_view3d.py
2911

fill_holes = True is already the default value of the parameter. So this can be removed (IMO the less python code the better)

2914

new_object = True is already the default value of the parameter. So this can be removed (IMO the less python code the better)

This revision now requires changes to proceed.Nov 15 2019, 4:00 PM
Pablo Dobarro (pablodp606) marked 2 inline comments as done.
  • Review update, use PROP_SKIP_SAVE
This revision is now accepted and ready to land.Nov 18 2019, 2:44 PM
This revision was automatically updated to reflect the committed changes.

I wonder if you might consider adding a Border option for Mask Slice to New Object and future trim tools. The idea is to give a border of additional geometry for a slice so that it'd intersect with the original piece. This way after remeshing the pieces there won't be any visible separation between the pieces and they can be joined and remeshed again.