mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:22:05 +05:00
Consider OCCT version
This commit is contained in:
parent
19f9168ebb
commit
755429e400
@ -215,7 +215,9 @@ Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape,
|
|||||||
aSSI.SetIndices(theIndices);
|
aSSI.SetIndices(theIndices);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
GEOM_Solver aSolver (GEOM_Engine::GetEngine());
|
GEOM_Solver aSolver (GEOM_Engine::GetEngine());
|
||||||
if (!aSolver.ComputeFunction(aFunction)) {
|
if (!aSolver.ComputeFunction(aFunction)) {
|
||||||
MESSAGE("GEOM_Engine::AddSubShape Error: Can't build a sub shape");
|
MESSAGE("GEOM_Engine::AddSubShape Error: Can't build a sub shape");
|
||||||
|
@ -166,7 +166,9 @@ TopoDS_Shape GEOM_Function::GetValue()
|
|||||||
if(anObject.IsNull()) return aShape;
|
if(anObject.IsNull()) return aShape;
|
||||||
if(!anObject->IsMainShape()) {
|
if(!anObject->IsMainShape()) {
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
GEOM_Solver aSolver(GEOM_Engine::GetEngine());
|
GEOM_Solver aSolver(GEOM_Engine::GetEngine());
|
||||||
if (!aSolver.ComputeFunction(this)) {
|
if (!aSolver.ComputeFunction(this)) {
|
||||||
MESSAGE("GEOM_Object::GetValue Error : Can't build a sub shape");
|
MESSAGE("GEOM_Object::GetValue Error : Can't build a sub shape");
|
||||||
|
@ -112,7 +112,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeBoxDXDYDZ (double theDX, dou
|
|||||||
|
|
||||||
//Compute the box value
|
//Compute the box value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Box driver failed");
|
SetErrorCode("Box driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -167,7 +169,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeBoxTwoPnt (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Box value
|
//Compute the Box value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Box driver failed");
|
SetErrorCode("Box driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -214,7 +218,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeCylinderRH (double theR, dou
|
|||||||
|
|
||||||
//Compute the Cylinder value
|
//Compute the Cylinder value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Cylinder driver failed");
|
SetErrorCode("Cylinder driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -273,7 +279,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeCylinderPntVecRH (Handle(GEO
|
|||||||
|
|
||||||
//Compute the Cylinder value
|
//Compute the Cylinder value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Cylinder driver failed");
|
SetErrorCode("Cylinder driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -323,7 +331,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeConeR1R2H (double theR1, dou
|
|||||||
|
|
||||||
//Compute the Cone value
|
//Compute the Cone value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Cone driver failed");
|
SetErrorCode("Cone driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -384,7 +394,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeConePntVecR1R2H (Handle(GEOM
|
|||||||
|
|
||||||
//Compute the Cone value
|
//Compute the Cone value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Cone driver failed");
|
SetErrorCode("Cone driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -430,7 +442,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeSphereR (double theR)
|
|||||||
|
|
||||||
//Compute the Sphere value
|
//Compute the Sphere value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Sphere driver failed");
|
SetErrorCode("Sphere driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -483,7 +497,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeSpherePntR (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the Sphere value
|
//Compute the Sphere value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Sphere driver failed");
|
SetErrorCode("Sphere driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -532,7 +548,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeTorusRR
|
|||||||
|
|
||||||
//Compute the Torus value
|
//Compute the Torus value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Torus driver failed");
|
SetErrorCode("Torus driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -590,7 +608,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeTorusPntVecRR
|
|||||||
|
|
||||||
//Compute the Torus value
|
//Compute the Torus value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Torus driver failed");
|
SetErrorCode("Torus driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -648,7 +668,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismVecH (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
//SetErrorCode("Prism driver failed");
|
//SetErrorCode("Prism driver failed");
|
||||||
SetErrorCode("Extrusion can not be created, check input data");
|
SetErrorCode("Extrusion can not be created, check input data");
|
||||||
@ -707,7 +729,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismTwoPnt
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
//SetErrorCode("Prism driver failed");
|
//SetErrorCode("Prism driver failed");
|
||||||
SetErrorCode("Extrusion can not be created, check input data");
|
SetErrorCode("Extrusion can not be created, check input data");
|
||||||
@ -764,7 +788,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipe (Handle(GEOM_Object) th
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Pipe driver failed");
|
SetErrorCode("Pipe driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -822,7 +848,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeRevolutionAxisAngle (Handle(
|
|||||||
|
|
||||||
//Compute the Revolution value
|
//Compute the Revolution value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Revolution driver failed");
|
SetErrorCode("Revolution driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -875,7 +903,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeSolidShell (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the Solid value
|
//Compute the Solid value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Solid driver failed");
|
SetErrorCode("Solid driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -932,7 +962,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling
|
|||||||
|
|
||||||
//Compute the Solid value
|
//Compute the Solid value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Filling driver failed");
|
SetErrorCode("Filling driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1019,7 +1051,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeThruSections(
|
|||||||
|
|
||||||
//Compute the ThruSections value
|
//Compute the ThruSections value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("ThruSections driver failed");
|
SetErrorCode("ThruSections driver failed");
|
||||||
return anObj;
|
return anObj;
|
||||||
@ -1142,7 +1176,9 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipeWithDifferentSections(
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Pipe with defferent section driver failed");
|
SetErrorCode("Pipe with defferent section driver failed");
|
||||||
return anObj;
|
return anObj;
|
||||||
|
@ -101,7 +101,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointXYZ
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Point driver failed");
|
SetErrorCode("Point driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -154,7 +156,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointWithReference
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Point driver failed");
|
SetErrorCode("Point driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -205,7 +209,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnCurve
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Point driver failed");
|
SetErrorCode("Point driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -256,7 +262,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeTangentOnCurve
|
|||||||
|
|
||||||
//Compute the vector value
|
//Compute the vector value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Vector driver failed");
|
SetErrorCode("Vector driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -305,7 +313,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeVectorDXDYDZ
|
|||||||
|
|
||||||
//Compute the Vector value
|
//Compute the Vector value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Vector driver failed");
|
SetErrorCode("Vector driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -358,7 +368,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeVectorTwoPnt
|
|||||||
|
|
||||||
//Compute the Vector value
|
//Compute the Vector value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Vector driver failed");
|
SetErrorCode("Vector driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -412,7 +424,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeLine
|
|||||||
|
|
||||||
//Compute the Line value
|
//Compute the Line value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Line driver failed");
|
SetErrorCode("Line driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -465,7 +479,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeLineTwoPnt
|
|||||||
|
|
||||||
//Compute the Line value
|
//Compute the Line value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Line driver failed");
|
SetErrorCode("Line driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -523,7 +539,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlaneThreePnt
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Plane driver failed");
|
SetErrorCode("Plane driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -578,7 +596,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlanePntVec
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Plane driver failed");
|
SetErrorCode("Plane driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -630,7 +650,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlaneFace
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Plane driver failed");
|
SetErrorCode("Plane driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -682,7 +704,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeMarker
|
|||||||
|
|
||||||
//Compute the marker value
|
//Compute the marker value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Marker driver failed");
|
SetErrorCode("Marker driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -741,7 +765,9 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeTangentPlaneOnFace(const Hand
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Plane driver failed");
|
SetErrorCode("Plane driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -162,7 +162,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a face");
|
SetErrorCode("Block driver failed to compute a face");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -218,7 +220,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad2Edges
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a face");
|
SetErrorCode("Block driver failed to compute a face");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -281,7 +285,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad4Vertices
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a face");
|
SetErrorCode("Block driver failed to compute a face");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -351,7 +357,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeHexa
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a block");
|
SetErrorCode("Block driver failed to compute a block");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -408,7 +416,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeHexa2Faces
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a block");
|
SetErrorCode("Block driver failed to compute a block");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -462,7 +472,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeBlockCompound
|
|||||||
|
|
||||||
//Compute the Blocks Compound value
|
//Compute the Blocks Compound value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to compute a blocks compound");
|
SetErrorCode("Block driver failed to compute a blocks compound");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -592,7 +604,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetEdge
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape MVE;
|
TopTools_IndexedDataMapOfShapeListOfShape MVE;
|
||||||
GEOMImpl_Block6Explorer::MapShapesAndAncestors
|
GEOMImpl_Block6Explorer::MapShapesAndAncestors
|
||||||
(aBlockOrComp, TopAbs_VERTEX, TopAbs_EDGE, MVE);
|
(aBlockOrComp, TopAbs_VERTEX, TopAbs_EDGE, MVE);
|
||||||
@ -696,7 +710,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetEdgeNearPoint
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
||||||
@ -826,7 +842,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByPoints
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape MVF;
|
TopTools_IndexedDataMapOfShapeListOfShape MVF;
|
||||||
@ -959,7 +977,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByEdges
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape MEF;
|
TopTools_IndexedDataMapOfShapeListOfShape MEF;
|
||||||
@ -1082,7 +1102,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetOppositeFace
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
GEOMImpl_Block6Explorer aBlockTool;
|
GEOMImpl_Block6Explorer aBlockTool;
|
||||||
@ -1146,7 +1168,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceNearPoint
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
||||||
@ -1336,7 +1360,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByNormale
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopoDS_Edge anEdge = TopoDS::Edge(anArg);
|
TopoDS_Edge anEdge = TopoDS::Edge(anArg);
|
||||||
@ -1450,7 +1476,9 @@ Standard_Boolean GEOMImpl_IBlocksOperations::IsCompoundOfBlocks
|
|||||||
//Check
|
//Check
|
||||||
isCompOfBlocks = Standard_True;
|
isCompOfBlocks = Standard_True;
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopTools_MapOfShape mapShape;
|
TopTools_MapOfShape mapShape;
|
||||||
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
||||||
for (; exp.More(); exp.Next()) {
|
for (; exp.More(); exp.Next()) {
|
||||||
@ -2303,7 +2331,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::RemoveExtraEdges
|
|||||||
|
|
||||||
//Compute the fixed shape
|
//Compute the fixed shape
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to remove extra edges of the given shape");
|
SetErrorCode("Block driver failed to remove extra edges of the given shape");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2353,7 +2383,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::CheckAndImprove
|
|||||||
|
|
||||||
//Compute the fixed shape
|
//Compute the fixed shape
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to improve the given blocks compound");
|
SetErrorCode("Block driver failed to improve the given blocks compound");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2403,7 +2435,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IBlocksOperations::ExplodeCompound
|
|||||||
|
|
||||||
// Explode
|
// Explode
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
||||||
for (; exp.More(); exp.Next()) {
|
for (; exp.More(); exp.Next()) {
|
||||||
if (mapShape.Add(exp.Current())) {
|
if (mapShape.Add(exp.Current())) {
|
||||||
@ -2496,7 +2530,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetBlockNearPoint
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
||||||
@ -2673,7 +2709,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetBlockByParts
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
// 1. Explode compound on solids
|
// 1. Explode compound on solids
|
||||||
TopTools_MapOfShape mapShape;
|
TopTools_MapOfShape mapShape;
|
||||||
Standard_Integer nbSolids = 0;
|
Standard_Integer nbSolids = 0;
|
||||||
@ -2790,7 +2828,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IBlocksOperations::GetBlocksByPart
|
|||||||
|
|
||||||
//Get the Blocks
|
//Get the Blocks
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
TopTools_MapOfShape mapShape;
|
TopTools_MapOfShape mapShape;
|
||||||
Standard_Integer nbSolids = 0;
|
Standard_Integer nbSolids = 0;
|
||||||
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
TopExp_Explorer exp (aBlockOrComp, TopAbs_SOLID);
|
||||||
@ -2911,7 +2951,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeMultiTransformation1D
|
|||||||
|
|
||||||
//Compute the transformation
|
//Compute the transformation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to make multi-transformation");
|
SetErrorCode("Block driver failed to make multi-transformation");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2973,7 +3015,9 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeMultiTransformation2D
|
|||||||
|
|
||||||
//Compute the transformation
|
//Compute the transformation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Block driver failed to make multi-transformation");
|
SetErrorCode("Block driver failed to make multi-transformation");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -106,7 +106,9 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeBoolean (Handle(GEOM_Object
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Boolean driver failed");
|
SetErrorCode("Boolean driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -262,7 +264,9 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition
|
|||||||
|
|
||||||
//Compute the Partition
|
//Compute the Partition
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Partition driver failed");
|
SetErrorCode("Partition driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -333,7 +337,9 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeHalfPartition
|
|||||||
|
|
||||||
//Compute the Partition value
|
//Compute the Partition value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Partition driver failed");
|
SetErrorCode("Partition driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -107,7 +107,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakePolyline (list<Handle(GEOM_O
|
|||||||
|
|
||||||
//Compute the Polyline value
|
//Compute the Polyline value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Polyline driver failed");
|
SetErrorCode("Polyline driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -172,7 +174,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCircleThreePnt (Handle(GEOM_
|
|||||||
|
|
||||||
//Compute the Circle value
|
//Compute the Circle value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Circle driver failed");
|
SetErrorCode("Circle driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -228,7 +232,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCirclePntVecR
|
|||||||
|
|
||||||
//Compute the Circle value
|
//Compute the Circle value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Circle driver failed");
|
SetErrorCode("Circle driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -286,7 +292,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeEllipse
|
|||||||
|
|
||||||
//Compute the Ellipse value
|
//Compute the Ellipse value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Ellipse driver failed");
|
SetErrorCode("Ellipse driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -344,7 +352,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeArc (Handle(GEOM_Object) the
|
|||||||
|
|
||||||
//Compute the Arc value
|
//Compute the Arc value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Arc driver failed");
|
SetErrorCode("Arc driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -402,7 +412,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSplineBezier
|
|||||||
|
|
||||||
//Compute the Spline value
|
//Compute the Spline value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Spline driver failed");
|
SetErrorCode("Spline driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -467,7 +479,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSplineInterpolation
|
|||||||
|
|
||||||
//Compute the Spline value
|
//Compute the Spline value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Spline driver failed");
|
SetErrorCode("Spline driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -529,7 +543,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSketcher
|
|||||||
|
|
||||||
//Compute the Sketcher value
|
//Compute the Sketcher value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Sketcher driver failed");
|
SetErrorCode("Sketcher driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -589,7 +605,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSketcherOnPlane
|
|||||||
|
|
||||||
//Compute the Sketcher value
|
//Compute the Sketcher value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Sketcher driver failed");
|
SetErrorCode("Sketcher driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -136,7 +136,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ShapeProcess (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Shape Healing algorithm failed");
|
SetErrorCode("Shape Healing algorithm failed");
|
||||||
@ -343,7 +345,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::SuppressFaces
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -412,7 +416,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::CloseContour
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -479,7 +485,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::RemoveIntWires
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -545,7 +553,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::FillHoles (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -611,7 +621,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::Sew (Handle(GEOM_Object) theObj
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -672,7 +684,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::DivideEdge (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -813,7 +827,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ChangeOrientation (Handle(GEOM_
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -869,7 +885,9 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ChangeOrientationCopy (Handle(G
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -99,7 +99,9 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::MakeCopy(Handle(GEOM_Object) the
|
|||||||
|
|
||||||
//Compute the Copy value
|
//Compute the Copy value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Copy driver failed");
|
SetErrorCode("Copy driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -157,7 +159,9 @@ void GEOMImpl_IInsertOperations::Export
|
|||||||
|
|
||||||
//Perform the Export
|
//Perform the Export
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Export driver failed");
|
SetErrorCode("Export driver failed");
|
||||||
return;
|
return;
|
||||||
@ -213,7 +217,9 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::Import
|
|||||||
|
|
||||||
//Perform the Import
|
//Perform the Import
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Import driver failed");
|
SetErrorCode("Import driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -107,7 +107,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletAll
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Fillet driver failed");
|
SetErrorCode("Fillet driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -166,7 +168,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletEdges
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Fillet driver failed");
|
SetErrorCode("Fillet driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -233,7 +237,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletFaces
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Fillet driver failed");
|
SetErrorCode("Fillet driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -291,7 +297,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferAll (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Chamfer driver failed");
|
SetErrorCode("Chamfer driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -346,7 +354,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdge
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Chamfer driver failed");
|
SetErrorCode("Chamfer driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -408,7 +418,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferFaces
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Chamfer driver failed");
|
SetErrorCode("Chamfer driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -470,7 +482,9 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeArchimede (Handle(GEOM_Object
|
|||||||
|
|
||||||
//Compute the Archimede value
|
//Compute the Archimede value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Archimede driver failed");
|
SetErrorCode("Archimede driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -168,7 +168,9 @@ void GEOMImpl_IMeasureOperations::GetPosition
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
|
|
||||||
gp_Ax3 anAx3 = GetPosition(aShape);
|
gp_Ax3 anAx3 = GetPosition(aShape);
|
||||||
|
|
||||||
@ -222,7 +224,9 @@ Handle(GEOM_Object) GEOMImpl_IMeasureOperations::GetCentreOfMass
|
|||||||
|
|
||||||
//Compute the CentreOfMass value
|
//Compute the CentreOfMass value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Measure driver failed to compute centre of mass");
|
SetErrorCode("Measure driver failed to compute centre of mass");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -267,7 +271,9 @@ void GEOMImpl_IMeasureOperations::GetBasicProperties (Handle(GEOM_Object) theSha
|
|||||||
//Compute the parameters
|
//Compute the parameters
|
||||||
GProp_GProps LProps, SProps;
|
GProp_GProps LProps, SProps;
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
BRepGProp::LinearProperties(aShape, LProps);
|
BRepGProp::LinearProperties(aShape, LProps);
|
||||||
theLength = LProps.Mass();
|
theLength = LProps.Mass();
|
||||||
|
|
||||||
@ -321,7 +327,9 @@ void GEOMImpl_IMeasureOperations::GetInertia
|
|||||||
GProp_GProps System;
|
GProp_GProps System;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (aShape.ShapeType() == TopAbs_VERTEX ||
|
if (aShape.ShapeType() == TopAbs_VERTEX ||
|
||||||
aShape.ShapeType() == TopAbs_EDGE ||
|
aShape.ShapeType() == TopAbs_EDGE ||
|
||||||
aShape.ShapeType() == TopAbs_WIRE) {
|
aShape.ShapeType() == TopAbs_WIRE) {
|
||||||
@ -386,7 +394,9 @@ void GEOMImpl_IMeasureOperations::GetBoundingBox
|
|||||||
Bnd_Box B;
|
Bnd_Box B;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
BRepBndLib::Add(aShape, B);
|
BRepBndLib::Add(aShape, B);
|
||||||
B.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax);
|
B.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax);
|
||||||
}
|
}
|
||||||
@ -429,7 +439,9 @@ void GEOMImpl_IMeasureOperations::GetTolerance
|
|||||||
FaceMax = EdgeMax = VertMax = -RealLast();
|
FaceMax = EdgeMax = VertMax = -RealLast();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
for (TopExp_Explorer ExF (aShape, TopAbs_FACE); ExF.More(); ExF.Next()) {
|
for (TopExp_Explorer ExF (aShape, TopAbs_FACE); ExF.More(); ExF.Next()) {
|
||||||
TopoDS_Face Face = TopoDS::Face(ExF.Current());
|
TopoDS_Face Face = TopoDS::Face(ExF.Current());
|
||||||
T = BRep_Tool::Tolerance(Face);
|
T = BRep_Tool::Tolerance(Face);
|
||||||
@ -489,7 +501,9 @@ bool GEOMImpl_IMeasureOperations::CheckShape (Handle(GEOM_Object) theShape,
|
|||||||
//Compute the parameters
|
//Compute the parameters
|
||||||
bool isValid = false;
|
bool isValid = false;
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
BRepCheck_Analyzer ana (aShape, theIsCheckGeom);
|
BRepCheck_Analyzer ana (aShape, theIsCheckGeom);
|
||||||
if (ana.IsValid()) {
|
if (ana.IsValid()) {
|
||||||
theDump.Clear();
|
theDump.Clear();
|
||||||
@ -540,7 +554,9 @@ TCollection_AsciiString GEOMImpl_IMeasureOperations::WhatIs (Handle(GEOM_Object)
|
|||||||
Astr = Astr + " Number of sub-shapes : \n";
|
Astr = Astr + " Number of sub-shapes : \n";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
int iType, nbTypes [TopAbs_SHAPE];
|
int iType, nbTypes [TopAbs_SHAPE];
|
||||||
for (iType = 0; iType < TopAbs_SHAPE; ++iType)
|
for (iType = 0; iType < TopAbs_SHAPE; ++iType)
|
||||||
nbTypes[iType] = 0;
|
nbTypes[iType] = 0;
|
||||||
@ -611,7 +627,9 @@ Standard_Real GEOMImpl_IMeasureOperations::GetMinDistance
|
|||||||
|
|
||||||
//Compute the parameters
|
//Compute the parameters
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
BRepExtrema_DistShapeShape dst (aShape1, aShape2);
|
BRepExtrema_DistShapeShape dst (aShape1, aShape2);
|
||||||
if (dst.IsDone()) {
|
if (dst.IsDone()) {
|
||||||
gp_Pnt PMin1, PMin2, P1, P2;
|
gp_Pnt PMin1, PMin2, P1, P2;
|
||||||
@ -666,7 +684,9 @@ void GEOMImpl_IMeasureOperations::PointCoordinates( Handle(GEOM_Object) theShape
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
||||||
theX = aPnt.X();
|
theX = aPnt.X();
|
||||||
theY = aPnt.Y();
|
theY = aPnt.Y();
|
||||||
|
@ -153,7 +153,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeEdge
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Vector driver failed");
|
SetErrorCode("Vector driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -218,7 +220,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeFace (Handle(GEOM_Object) th
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed to compute a face");
|
SetErrorCode("Shape driver failed to compute a face");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -280,7 +284,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeFaceWires
|
|||||||
|
|
||||||
//Compute the shape
|
//Compute the shape
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed");
|
SetErrorCode("Shape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -364,7 +370,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeSolidShell (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the Solid value
|
//Compute the Solid value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Solid driver failed");
|
SetErrorCode("Solid driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -437,7 +445,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeShape
|
|||||||
|
|
||||||
//Compute the shape
|
//Compute the shape
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed");
|
SetErrorCode("Shape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -502,7 +512,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeGlueFaces
|
|||||||
//Compute the sub-shape value
|
//Compute the sub-shape value
|
||||||
Standard_Boolean isWarning = Standard_False;
|
Standard_Boolean isWarning = Standard_False;
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed to glue faces");
|
SetErrorCode("Shape driver failed to glue faces");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -954,7 +966,9 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::ReverseShape(Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the sub-shape value
|
//Compute the sub-shape value
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed to reverse shape");
|
SetErrorCode("Shape driver failed to reverse shape");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -110,7 +110,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateTwoPoints
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -161,7 +163,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateDXDYDZ
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -215,7 +219,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateTwoPointsCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -268,7 +274,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateDXDYDZCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -321,7 +329,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateVector
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -373,7 +383,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateVectorCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -427,7 +439,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Translate1D
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -488,7 +502,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Translate2D (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Translation driver failed");
|
SetErrorCode("Translation driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -542,7 +558,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPlane
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -593,7 +611,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPlaneCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -645,7 +665,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPoint
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -696,7 +718,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPointCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -748,7 +772,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorAxis
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -799,7 +825,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorAxisCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Mirror driver failed");
|
SetErrorCode("Mirror driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -849,7 +877,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::OffsetShape
|
|||||||
|
|
||||||
//Compute the offset
|
//Compute the offset
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Offset driver failed");
|
SetErrorCode("Offset driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -901,7 +931,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::OffsetShapeCopy
|
|||||||
|
|
||||||
//Compute the offset
|
//Compute the offset
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Offset driver failed");
|
SetErrorCode("Offset driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -955,7 +987,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ScaleShape
|
|||||||
|
|
||||||
//Compute the scale
|
//Compute the scale
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Scale driver failed");
|
SetErrorCode("Scale driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1008,7 +1042,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ScaleShapeCopy
|
|||||||
|
|
||||||
//Compute the scale
|
//Compute the scale
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Scale driver failed");
|
SetErrorCode("Scale driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1063,7 +1099,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShape
|
|||||||
|
|
||||||
//Compute the Position
|
//Compute the Position
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Position driver failed");
|
SetErrorCode("Position driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1120,7 +1158,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShapeCopy
|
|||||||
|
|
||||||
//Compute the position
|
//Compute the position
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Position driver failed");
|
SetErrorCode("Position driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1174,7 +1214,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate (Handle(GEOM_Object) t
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Rotate driver failed");
|
SetErrorCode("Rotate driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1225,7 +1267,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::RotateCopy (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Rotate driver failed");
|
SetErrorCode("Rotate driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1278,7 +1322,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate1D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Rotate driver failed");
|
SetErrorCode("Rotate driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1337,7 +1383,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate2D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Rotate driver failed");
|
SetErrorCode("Rotate driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -65,7 +65,9 @@ SALOME_WNT_EXPORT
|
|||||||
BRep_Builder B;
|
BRep_Builder B;
|
||||||
B.MakeCompound( compound );
|
B.MakeCompound( compound );
|
||||||
try {
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());
|
IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());
|
||||||
|
|
||||||
if (status == IFSelect_RetDone) {
|
if (status == IFSelect_RetDone) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user