Merge branch 'master' into V7_5_BR

This commit is contained in:
vsr 2014-11-12 20:14:33 +03:00
commit cab230161f
2 changed files with 17 additions and 5 deletions

View File

@ -119,7 +119,7 @@ Standard_Integer GEOMImpl_CylinderDriver::Execute(TFunction_Logbook& log) const
BRepPrimAPI_MakeCylinder MC (anAxes, aCI.GetR(), Abs(aCI.GetH())); BRepPrimAPI_MakeCylinder MC (anAxes, aCI.GetR(), Abs(aCI.GetH()));
MC.Build(); MC.Build();
if (!MC.IsDone()) { if (!MC.IsDone()) {
StdFail_NotDone::Raise("Cylinder can't be computed from the given parameters"); StdFail_NotDone::Raise("Cylinder can't be computed from the given parameters");
} }
aShape = MC.Shape(); aShape = MC.Shape();
break; break;
@ -130,7 +130,7 @@ Standard_Integer GEOMImpl_CylinderDriver::Execute(TFunction_Logbook& log) const
BRepPrimAPI_MakeCylinder MC (anAxes, aCI.GetR(), Abs(aCI.GetH()), aCI.GetA()); BRepPrimAPI_MakeCylinder MC (anAxes, aCI.GetR(), Abs(aCI.GetH()), aCI.GetA());
MC.Build(); MC.Build();
if (!MC.IsDone()) { if (!MC.IsDone()) {
StdFail_NotDone::Raise("Cylinder can't be computed from the given parameters. Failure."); StdFail_NotDone::Raise("Cylinder can't be computed from the given parameters. Failure.");
} }
aShape = MC.Shape(); aShape = MC.Shape();
break; break;
@ -169,12 +169,24 @@ GetCreationInformation(std::string& theOperationName,
AddParam( theParams, "Radius", aCI.GetR() ); AddParam( theParams, "Radius", aCI.GetR() );
AddParam( theParams, "Height", aCI.GetH() ); AddParam( theParams, "Height", aCI.GetH() );
break; break;
case CONE_PNT_VEC_R1_R2_H: case CYLINDER_R_H_A:
AddParam( theParams, "Radius", aCI.GetR() );
AddParam( theParams, "Height", aCI.GetH() );
AddParam( theParams, "Angle", aCI.GetA() );
break;
case CYLINDER_PNT_VEC_R_H:
AddParam( theParams, "Base Point", aCI.GetPoint() ); AddParam( theParams, "Base Point", aCI.GetPoint() );
AddParam( theParams, "Vector", aCI.GetVector() ); AddParam( theParams, "Vector", aCI.GetVector() );
AddParam( theParams, "Radius", aCI.GetR() ); AddParam( theParams, "Radius", aCI.GetR() );
AddParam( theParams, "Height", aCI.GetH() ); AddParam( theParams, "Height", aCI.GetH() );
break; break;
case CYLINDER_PNT_VEC_R_H_A:
AddParam( theParams, "Base Point", aCI.GetPoint() );
AddParam( theParams, "Vector", aCI.GetVector() );
AddParam( theParams, "Radius", aCI.GetR() );
AddParam( theParams, "Height", aCI.GetH() );
AddParam( theParams, "Angle", aCI.GetA() );
break;
default: default:
return false; return false;
} }

View File

@ -3022,7 +3022,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
@ManageTransactions("PrimOp") @ManageTransactions("PrimOp")
def MakeCylinderA(self, thePnt, theAxis, theR, theH, theA, theName=None): def MakeCylinderA(self, thePnt, theAxis, theR, theH, theA, theName=None):
""" """
Create a a portion of cylinder with given base point, axis, radius, height and angle. Create a portion of cylinder with given base point, axis, radius, height and angle.
Parameters: Parameters:
thePnt Central point of cylinder base. thePnt Central point of cylinder base.