the source shape onto a cylinder.
"""
# Example: see GEOM_TestAll.py
+ flagStartAngle = False
+ if isinstance(theStartAngle,str):
+ flagStartAngle = True
+ flagAngleLength = False
+ if isinstance(theAngleLength,str):
+ flagAngleLength = True
theRadius, theStartAngle, theAngleLength, Parameters = ParseParameters(
theRadius, theStartAngle, theAngleLength)
+ if flagStartAngle:
+ theStartAngle = theStartAngle*math.pi/180.
+ if flagAngleLength:
+ theAngleLength = theAngleLength*math.pi/180.
anObj = self.TrsfOp.MakeProjectionOnCylinder(theObject, theRadius,
theStartAngle, theAngleLength)
RaiseIfFailed("MakeProjectionOnCylinder", self.TrsfOp)
anOper->MakeFillet1D(myShape, getRadius(), aListOfIndexes, GroupVertexes->CheckButton1->isChecked()) :
anOper->MakeFillet2D(myShape, getRadius(), aListOfIndexes);
- if (!anObj->_is_nil())
+ if (!anObj->_is_nil()) {
+ if (!IsPreview()) {
+ QStringList aParameters;
+ aParameters << GroupVertexes->SpinBox_DX->text();
+ anObj->SetParameters(aParameters.join(":").toUtf8().constData());
+ }
objects.push_back(anObj._retn());
+ }
return true;
}
(myObj, aRadius, aStartAngle, aLengthAngle);
if (!anObj->_is_nil()) {
+ if (!IsPreview()) {
+ QStringList aParameters;
+ aParameters << myRadiusSpin->text();
+ aParameters << myStartAngleSpin->text();
+ if (myUseAngleLen->isChecked())
+ aParameters << myAngleLenSpin->text();
+ anObj->SetParameters(aParameters.join(":").toUtf8().constData());
+ }
objects.push_back(anObj._retn());
}