This patch implements the Topology Slide/Relax brush and the Relax mesh filter.
These tools are designed to move the topology on top of the mesh without affecting the volume.
The Topology Slide/Relax brush slides the topology of the mesh in the direction of the stroke. When pressing shift, it has an alternative smooth mode similar to the Relax Brush in the sculpt branch. It should be way more stable and produce fewer artifacts.
Details
- Reviewers
Jeroen Bakker (jbakker) - Commits
- rBa47f694b8652: Sculpt: Topology Slide/Relax
Diff Detail
- Repository
- rB Blender
- Branch
- sculpt-topology-slide-brush (branched from master)
- Build Status
Buildable 5494 Build 5494: arc lint + arc unit
Event Timeline
This is incredible. This looks like a feature that other softwares have, called Surface Constraint, that does this with the move/rotate/scale tools. Would it be possible to extend the topology slide feature to mesh editing? Or use the relax tool in edit mode on the selected vertices? I mean, could the same code be re-used for this?
Either way, I'm going to get so much use out of this. I can't overstate how great this is.
Just some small code improvements.
Not related to this patch, but an improvement in organizing code is to use code folding. As you have any patches open, perhaps just start adding them.
/* -------------------------------------------------------------------- */
/** \name Sculpt Topology Brush
* \{ */
...
/** \} */
/* -------------------------------------------------------------------- */
/** \name Sculpt Relax Brush
* \{ */
...
/** \} */| source/blender/editors/sculpt_paint/sculpt.c | ||
|---|---|---|
| 1741 | Use float as static multiplyer. | |
| 3130 | isn't this a mul_v3_v3fl? | |
| 3142 | Can't you use madd_v3_v3v3fl instead? | |
| 6562 | Don't think this is intended? | |
| 8477–8482 | put this in the else | |
| 8594 |
| |
| source/blender/editors/sculpt_paint/sculpt.c | ||
|---|---|---|
| 8640 | The idea was to place the ELEM in a function and also use here | |
| source/blender/editors/sculpt_paint/sculpt.c | ||
|---|---|---|
| 3255 | The type cast is required when building on Windows. | |
I used the topology brush to modify the cube mesh.
Topology brush with X symmetry works fine.
Topology Relax brush with X symmetry seems to have a problem near the cube corner.

