Twist object can do no cutting

This commit is contained in:
Lars Brubaker 2022-02-22 11:49:37 -08:00
parent 9953345498
commit e21c8ab604
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ namespace MatterHackers.MatterControl.DesignTools
public DoubleOrExpression RotationDistance { get; set; } = 10;
[Description("Specifies the number of vertical cuts required to ensure the part can be twist well.")]
[Slider(3, 50, snapDistance: 1)]
[Slider(0, 50, snapDistance: 1)]
public IntOrExpression RotationSlices { get; set; } = 5;
[Description("The source part is specifying a preferred radius. You can turn this off to set a specific radius.")]
@ -153,7 +153,7 @@ namespace MatterHackers.MatterControl.DesignTools
var angle = Angle.ClampIfNotCalculated(this, 0, 10000, ref valuesChanged);
var rotationDistance = RotationDistance.ClampIfNotCalculated(this, 0, 10000, ref valuesChanged);
var rotationSlices = RotationSlices.ClampIfNotCalculated(this, 3, 300, ref valuesChanged);
var rotationSlices = RotationSlices.ClampIfNotCalculated(this, 0, 300, ref valuesChanged);
var endHeightPercent = EndHeightPercent.ClampIfNotCalculated(this, 0, 100, ref valuesChanged);
endHeightPercent = EndHeightPercent.ClampIfNotCalculated(this, 1, 100, ref valuesChanged);
var startHeightPercent = StartHeightPercent.ClampIfNotCalculated(this, 0, endHeightPercent - 1, ref valuesChanged);

@ -1 +1 @@
Subproject commit a2e8099fb069e1de30009c275f8a4a7a97247717
Subproject commit b4f5d0ac4e4c190103f74fdaaa691180a8ac9131