Part: Allow helix primitive with negative Angle
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
|
||||
|
||||
namespace Part {
|
||||
const App::PropertyQuantityConstraint::Constraints apexRange = {0.0,90.0,0.1};
|
||||
const App::PropertyQuantityConstraint::Constraints apexRange = {-90.0,90.0,0.1};
|
||||
const App::PropertyQuantityConstraint::Constraints torusRangeV = {-180.0,180.0,1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeU = {0.0,360.0,1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeV = {-90.0,90.0,1.0};
|
||||
@@ -801,7 +801,7 @@ Helix::Helix(void)
|
||||
Height.setConstraints(&quantityRange);
|
||||
ADD_PROPERTY_TYPE(Radius,(1.0),"Helix",App::Prop_None,"The radius of the helix");
|
||||
Radius.setConstraints(&quantityRange);
|
||||
ADD_PROPERTY_TYPE(Angle,(0.0),"Helix",App::Prop_None,"If angle is > 0 a conical otherwise a cylindircal surface is used");
|
||||
ADD_PROPERTY_TYPE(Angle,(0.0),"Helix",App::Prop_None,"If angle is != 0 a conical otherwise a cylindircal surface is used");
|
||||
Angle.setConstraints(&apexRange);
|
||||
ADD_PROPERTY_TYPE(LocalCoord,(long(0)),"Coordinate System",App::Prop_None,"Orientation of the local coordinate system of the helix");
|
||||
LocalCoord.setEnums(LocalCSEnums);
|
||||
|
||||
@@ -261,7 +261,7 @@ DlgPrimitives::DlgPrimitives(QWidget* parent, Part::Primitive* feature)
|
||||
ui->helixPitch->setRange(0, INT_MAX);
|
||||
ui->helixHeight->setRange(0, INT_MAX);
|
||||
ui->helixRadius->setRange(0, INT_MAX);
|
||||
ui->helixAngle->setRange(0, 90);
|
||||
ui->helixAngle->setRange(-90, 90);
|
||||
// circle
|
||||
ui->circleRadius->setRange(0, INT_MAX);
|
||||
ui->circleAngle0->setRange(0, 360);
|
||||
@@ -560,7 +560,7 @@ DlgPrimitives::DlgPrimitives(QWidget* parent, Part::Primitive* feature)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
DlgPrimitives::~DlgPrimitives()
|
||||
@@ -1937,7 +1937,7 @@ TaskPrimitives::~TaskPrimitives()
|
||||
}
|
||||
|
||||
QDialogButtonBox::StandardButtons TaskPrimitives::getStandardButtons() const
|
||||
{
|
||||
{
|
||||
return QDialogButtonBox::Close|
|
||||
QDialogButtonBox::Ok;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user