fix(SegmentationTools): [Bug] Changes of brush/eraser radius with hotkey do not reflect on segmentation tool (#5535)
This commit is contained in:
1 parent
0c8ab01d34
commit
29bd87c8c0
27 files changed
+472
-267
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { MIN_SEGMENTATION_DRAWING_RADIUS, MAX_SEGMENTATION_DRAWING_RADIUS } from './constants';
|
||||
|
||||
const colours = {
|
||||
'viewport-0': 'rgb(200, 0, 0)',
|
||||
'viewport-1': 'rgb(200, 200, 0)',
|
||||
@@ -32,6 +34,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'FILL_INSIDE_CIRCLE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -48,6 +52,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'ERASE_INSIDE_CIRCLE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -55,6 +61,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'FILL_INSIDE_SPHERE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -62,6 +70,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'ERASE_INSIDE_SPHERE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -69,6 +79,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -76,6 +88,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'THRESHOLD_INSIDE_SPHERE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -83,6 +97,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
threshold: {
|
||||
isDynamic: true,
|
||||
dynamicRadius: 3,
|
||||
@@ -100,6 +116,8 @@ function createTools({ utilityModule, commandsManager }) {
|
||||
parentTool: 'Brush',
|
||||
configuration: {
|
||||
activeStrategy: 'THRESHOLD_INSIDE_SPHERE',
|
||||
minRadius: MIN_SEGMENTATION_DRAWING_RADIUS,
|
||||
maxRadius: MAX_SEGMENTATION_DRAWING_RADIUS,
|
||||
threshold: {
|
||||
isDynamic: true,
|
||||
dynamicRadius: 3,
|
||||
|
||||
Reference in new issue
Block a user