mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 01:40:34 +05:00
Remove obsolete OCC_VERSION_LARGE defines.
This commit is contained in:
parent
7961b83044
commit
05e07e916e
@ -1151,9 +1151,7 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
|
|||||||
Handle(GEOM_Object) Te3;
|
Handle(GEOM_Object) Te3;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
Handle(GEOM_Object) Vector_Z = myBasicOperations->MakeVectorDXDYDZ(0, 0, 1);
|
Handle(GEOM_Object) Vector_Z = myBasicOperations->MakeVectorDXDYDZ(0, 0, 1);
|
||||||
Vector_Z->GetLastFunction()->SetDescription("");
|
Vector_Z->GetLastFunction()->SetDescription("");
|
||||||
|
|
||||||
@ -1991,9 +1989,7 @@ Handle(TColStd_HSequenceOfTransient)
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2155,9 +2151,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeWithPosition
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2319,9 +2313,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeChamfer
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2405,9 +2397,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeChamfer
|
|||||||
// Add thickness reduction elements
|
// Add thickness reduction elements
|
||||||
// at the three extremities: Left, Right and Incident
|
// at the three extremities: Left, Right and Incident
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (isTRL || isTRR || isTRI) {
|
if (isTRL || isTRR || isTRI) {
|
||||||
TopoDS_Shape aResShape =
|
TopoDS_Shape aResShape =
|
||||||
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
||||||
@ -2558,9 +2548,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeChamferWithPosition
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2642,9 +2630,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeChamferWithPosition
|
|||||||
// Add thickness reduction elements
|
// Add thickness reduction elements
|
||||||
// at the three extremities: Left, Right and Incident
|
// at the three extremities: Left, Right and Incident
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (isTRL || isTRR || isTRI) {
|
if (isTRL || isTRR || isTRI) {
|
||||||
TopoDS_Shape aResShape =
|
TopoDS_Shape aResShape =
|
||||||
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
||||||
@ -2787,9 +2773,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFillet
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2887,9 +2871,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFillet
|
|||||||
// Add thickness reduction elements
|
// Add thickness reduction elements
|
||||||
// at the three extremities: Left, Right and Incident
|
// at the three extremities: Left, Right and Incident
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (isTRL || isTRR || isTRI) {
|
if (isTRL || isTRR || isTRI) {
|
||||||
TopoDS_Shape aResShape =
|
TopoDS_Shape aResShape =
|
||||||
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
||||||
@ -3037,9 +3019,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFilletWithPosition
|
|||||||
|
|
||||||
//Compute the resulting value
|
//Compute the resulting value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("TShape driver failed");
|
SetErrorCode("TShape driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -3136,9 +3116,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFilletWithPosition
|
|||||||
// Add thickness reduction elements
|
// Add thickness reduction elements
|
||||||
// at the three extremities: Left, Right and Incident
|
// at the three extremities: Left, Right and Incident
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (isTRL || isTRR || isTRI) {
|
if (isTRL || isTRR || isTRI) {
|
||||||
TopoDS_Shape aResShape =
|
TopoDS_Shape aResShape =
|
||||||
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
MakePipeTShapeThicknessReduction(aShape->GetValue(), theR1, theW1, theL1, theR2, theW2, theL2,
|
||||||
|
@ -44,11 +44,7 @@
|
|||||||
#include <ShapeFix_Wire.hxx>
|
#include <ShapeFix_Wire.hxx>
|
||||||
#include <ShapeFix_Edge.hxx>
|
#include <ShapeFix_Edge.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <IntPatch_ImpImpIntersection.hxx>
|
#include <IntPatch_ImpImpIntersection.hxx>
|
||||||
#else
|
|
||||||
#include <IntPatch_TheIIIntOfIntersection.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
#include <BRep_Builder.hxx>
|
#include <BRep_Builder.hxx>
|
||||||
@ -703,15 +699,10 @@ Standard_Boolean BlockFix_UnionFaces::IsSameDomain(const TopoDS_Face& aFace,
|
|||||||
Handle(BRepTopAdaptor_TopolTool) aTT2 = new BRepTopAdaptor_TopolTool();
|
Handle(BRepTopAdaptor_TopolTool) aTT2 = new BRepTopAdaptor_TopolTool();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
IntPatch_ImpImpIntersection anIIInt (aGA1, aTT1, aGA2, aTT2, aPrec, aPrec);
|
IntPatch_ImpImpIntersection anIIInt (aGA1, aTT1, aGA2, aTT2, aPrec, aPrec);
|
||||||
#else
|
|
||||||
IntPatch_TheIIIntOfIntersection anIIInt (aGA1, aTT1, aGA2, aTT2, aPrec, aPrec);
|
|
||||||
#endif
|
|
||||||
if (!anIIInt.IsDone() || anIIInt.IsEmpty())
|
if (!anIIInt.IsDone() || anIIInt.IsEmpty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -370,11 +370,7 @@ void EntityGUI::DisplaySimulationShape( const TopoDS_Shape& S1, const TopoDS_Sha
|
|||||||
mySimulationShape1->UnsetColor();
|
mySimulationShape1->UnsetColor();
|
||||||
}
|
}
|
||||||
if ( !S2.IsNull() ) {
|
if ( !S2.IsNull() ) {
|
||||||
#if OCC_VERSION_LARGE <= 0x06060000
|
|
||||||
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
|
|
||||||
#else
|
|
||||||
ic->Erase( mySimulationShape2, Standard_True );
|
ic->Erase( mySimulationShape2, Standard_True );
|
||||||
#endif
|
|
||||||
ic->ClearPrs( mySimulationShape2 );
|
ic->ClearPrs( mySimulationShape2 );
|
||||||
|
|
||||||
mySimulationShape2 = new AIS_Shape( TopoDS_Shape() );
|
mySimulationShape2 = new AIS_Shape( TopoDS_Shape() );
|
||||||
@ -418,13 +414,8 @@ void EntityGUI::EraseSimulationShape()
|
|||||||
if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
|
if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
|
||||||
OCCViewer_Viewer* v3d = ( (OCCViewer_ViewManager*)( vw->getViewManager() ) )->getOCCViewer();
|
OCCViewer_Viewer* v3d = ( (OCCViewer_ViewManager*)( vw->getViewManager() ) )->getOCCViewer();
|
||||||
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
|
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
|
||||||
#if OCC_VERSION_LARGE <= 0x06060000
|
|
||||||
ic->Erase( mySimulationShape1, Standard_True, Standard_False );
|
|
||||||
ic->Erase( mySimulationShape2, Standard_True, Standard_False );
|
|
||||||
#else
|
|
||||||
ic->Erase( mySimulationShape1, Standard_True );
|
ic->Erase( mySimulationShape1, Standard_True );
|
||||||
ic->Erase( mySimulationShape2, Standard_True );
|
ic->Erase( mySimulationShape2, Standard_True );
|
||||||
#endif
|
|
||||||
ic->ClearPrs( mySimulationShape1 );
|
ic->ClearPrs( mySimulationShape1 );
|
||||||
ic->ClearPrs( mySimulationShape2 );
|
ic->ClearPrs( mySimulationShape2 );
|
||||||
ic->UpdateCurrentViewer();
|
ic->UpdateCurrentViewer();
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
#include <gce_MakePln.hxx>
|
#include <gce_MakePln.hxx>
|
||||||
#include <Prs3d_LineAspect.hxx>
|
#include <Prs3d_LineAspect.hxx>
|
||||||
#include <Prs3d_DimensionAspect.hxx>
|
#include <Prs3d_DimensionAspect.hxx>
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
#include <Prs3d_TextAspect.hxx>
|
#include <Prs3d_TextAspect.hxx>
|
||||||
#include <Prs3d_Presentation.hxx>
|
#include <Prs3d_Presentation.hxx>
|
||||||
#include <Prs3d_Text.hxx>
|
#include <Prs3d_Text.hxx>
|
||||||
@ -75,7 +74,6 @@
|
|||||||
#include <Graphic3d_HorizontalTextAlignment.hxx>
|
#include <Graphic3d_HorizontalTextAlignment.hxx>
|
||||||
#include <Graphic3d_AspectText3d.hxx>
|
#include <Graphic3d_AspectText3d.hxx>
|
||||||
#include <Font_FontAspect.hxx>
|
#include <Font_FontAspect.hxx>
|
||||||
#endif // OCC_VERSION_LARGE > 0x06050300
|
|
||||||
|
|
||||||
// This include must be *AFTER* SOCC_ViewModel.h because
|
// This include must be *AFTER* SOCC_ViewModel.h because
|
||||||
// of the constant ROTATE which is a #define in
|
// of the constant ROTATE which is a #define in
|
||||||
@ -103,7 +101,6 @@ private:
|
|||||||
bool& myLock;
|
bool& myLock;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
DEFINE_STANDARD_HANDLE(AIS_Text, AIS_InteractiveObject)
|
DEFINE_STANDARD_HANDLE(AIS_Text, AIS_InteractiveObject)
|
||||||
|
|
||||||
class AIS_Text:public AIS_InteractiveObject
|
class AIS_Text:public AIS_InteractiveObject
|
||||||
@ -197,7 +194,6 @@ void AIS_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentation
|
|||||||
asp->Aspect()->SetTextFontAspect(aFontAspect);
|
asp->Aspect()->SetTextFontAspect(aFontAspect);
|
||||||
Prs3d_Text::Draw(aPresentation, asp, aText, aPosition);
|
Prs3d_Text::Draw(aPresentation, asp, aText, aPosition);
|
||||||
};
|
};
|
||||||
#endif // OCC_VERSION_LARGE > 0x06050300
|
|
||||||
|
|
||||||
bool isSame (double d1, double d2)
|
bool isSame (double d1, double d2)
|
||||||
{
|
{
|
||||||
@ -330,9 +326,7 @@ void EntityGUI_3DSketcherDlg::Init()
|
|||||||
SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
|
SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
|
||||||
myAnglePrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
myAnglePrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
||||||
myLengthPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
myLengthPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
myTextPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
myTextPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
|
||||||
#endif // OCC_VERSION_LARGE > 0x06050300
|
|
||||||
|
|
||||||
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
||||||
|
|
||||||
@ -1626,7 +1620,6 @@ void EntityGUI_3DSketcherDlg::displayText ( std::string theText,
|
|||||||
gp_Pnt P,
|
gp_Pnt P,
|
||||||
bool store )
|
bool store )
|
||||||
{
|
{
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
|
SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
|
||||||
|
|
||||||
Handle(AIS_Text) anIO = new AIS_Text(TCollection_ExtendedString(theText.c_str()), P);
|
Handle(AIS_Text) anIO = new AIS_Text(TCollection_ExtendedString(theText.c_str()), P);
|
||||||
@ -1653,7 +1646,7 @@ void EntityGUI_3DSketcherDlg::displayText ( std::string theText,
|
|||||||
GEOMBase_Helper::displayPreview(aSPrs, true, true);
|
GEOMBase_Helper::displayPreview(aSPrs, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // OCC_VERSION_LARGE > 0x06050300
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================
|
//================================================================
|
||||||
|
@ -103,10 +103,8 @@ Standard_EXPORT Handle_Standard_Transient& ChangeFind(const TCollection_AsciiS
|
|||||||
return ChangeFind(K);
|
return ChangeFind(K);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
Standard_EXPORT Standard_Address Find1 (const TCollection_AsciiString& K) const;
|
||||||
Standard_EXPORT Standard_Address Find1 (const TCollection_AsciiString& K) const;
|
Standard_EXPORT Standard_Address ChangeFind1 (const TCollection_AsciiString& K);
|
||||||
Standard_EXPORT Standard_Address ChangeFind1 (const TCollection_AsciiString& K);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods PRIVATE
|
// Methods PRIVATE
|
||||||
|
@ -408,9 +408,7 @@ Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) th
|
|||||||
aSSI.SetIndices(theIndices);
|
aSSI.SetIndices(theIndices);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -860,11 +858,7 @@ Handle(TColStd_HSequenceOfAsciiString) GEOM_Engine::GetAllDumpNames() const
|
|||||||
#define TEXTURE_LABEL_DATA 5
|
#define TEXTURE_LABEL_DATA 5
|
||||||
|
|
||||||
int GEOM_Engine::addTexture(int theDocID, int theWidth, int theHeight,
|
int GEOM_Engine::addTexture(int theDocID, int theWidth, int theHeight,
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
const Handle(TColStd_HArray1OfByte)& theTexture,
|
const Handle(TColStd_HArray1OfByte)& theTexture,
|
||||||
#else
|
|
||||||
const Handle(TDataStd_HArray1OfByte)& theTexture,
|
|
||||||
#endif
|
|
||||||
const TCollection_AsciiString& theFileName)
|
const TCollection_AsciiString& theFileName)
|
||||||
{
|
{
|
||||||
Handle(TDocStd_Document) aDoc = GetDocument(theDocID);
|
Handle(TDocStd_Document) aDoc = GetDocument(theDocID);
|
||||||
@ -909,19 +903,11 @@ int GEOM_Engine::addTexture(int theDocID, int theWidth, int theHeight,
|
|||||||
return aTextureID;
|
return aTextureID;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) GEOM_Engine::getTexture(int theDocID, int theTextureID,
|
Handle(TColStd_HArray1OfByte) GEOM_Engine::getTexture(int theDocID, int theTextureID,
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) GEOM_Engine::getTexture(int theDocID, int theTextureID,
|
|
||||||
#endif
|
|
||||||
int& theWidth, int& theHeight,
|
int& theWidth, int& theHeight,
|
||||||
TCollection_AsciiString& theFileName)
|
TCollection_AsciiString& theFileName)
|
||||||
{
|
{
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) anArray;
|
Handle(TColStd_HArray1OfByte) anArray;
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) anArray;
|
|
||||||
#endif
|
|
||||||
theWidth = theHeight = 0;
|
theWidth = theHeight = 0;
|
||||||
|
|
||||||
Handle(TDocStd_Document) aDoc = GetDocument(theDocID);
|
Handle(TDocStd_Document) aDoc = GetDocument(theDocID);
|
||||||
@ -1661,11 +1647,7 @@ void AddObjectColors (int theDocID,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
static TCollection_AsciiString pack_data (const Handle(TColStd_HArray1OfByte)& aData)
|
static TCollection_AsciiString pack_data (const Handle(TColStd_HArray1OfByte)& aData)
|
||||||
#else
|
|
||||||
static TCollection_AsciiString pack_data (const Handle(TDataStd_HArray1OfByte)& aData)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
TCollection_AsciiString stream;
|
TCollection_AsciiString stream;
|
||||||
if (!aData.IsNull()) {
|
if (!aData.IsNull()) {
|
||||||
@ -1693,11 +1675,7 @@ void AddTextures (int theDocID, TCollection_AsciiString& theScript)
|
|||||||
if (*it <= 0) continue;
|
if (*it <= 0) continue;
|
||||||
Standard_Integer aWidth, aHeight;
|
Standard_Integer aWidth, aHeight;
|
||||||
TCollection_AsciiString aFileName;
|
TCollection_AsciiString aFileName;
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture =
|
Handle(TColStd_HArray1OfByte) aTexture =
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) aTexture =
|
|
||||||
#endif
|
|
||||||
engine->getTexture(theDocID, *it, aWidth, aHeight, aFileName);
|
engine->getTexture(theDocID, *it, aWidth, aHeight, aFileName);
|
||||||
if (aWidth > 0 && aHeight > 0 && !aTexture.IsNull() && aTexture->Length() > 0 ) {
|
if (aWidth > 0 && aHeight > 0 && !aTexture.IsNull() && aTexture->Length() > 0 ) {
|
||||||
TCollection_AsciiString aCommand = "\n\t";
|
TCollection_AsciiString aCommand = "\n\t";
|
||||||
|
@ -29,11 +29,7 @@
|
|||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
#include <Basics_OCCTVersion.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_DataMapOfIntegerTransient.hxx>
|
#include <TColStd_DataMapOfIntegerTransient.hxx>
|
||||||
#else
|
|
||||||
#include <Interface_DataMapOfIntegerTransient.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
|
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
|
||||||
#include <TDocStd_Document.hxx>
|
#include <TDocStd_Document.hxx>
|
||||||
@ -59,11 +55,7 @@ struct TObjectData
|
|||||||
bool _unpublished;
|
bool _unpublished;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
class Handle_TColStd_HArray1OfByte;
|
class Handle_TColStd_HArray1OfByte;
|
||||||
#else
|
|
||||||
class Handle_TDataStd_HArray1OfByte;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct TVariable{
|
struct TVariable{
|
||||||
TCollection_AsciiString myVariable;
|
TCollection_AsciiString myVariable;
|
||||||
|
@ -227,9 +227,7 @@ TopoDS_Shape GEOM_Function::GetValue()
|
|||||||
|
|
||||||
if (!isResult) {
|
if (!isResult) {
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
|
@ -28,9 +28,7 @@
|
|||||||
|
|
||||||
#include <Basics_OCCTVersion.hxx>
|
#include <Basics_OCCTVersion.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
#include <Precision.hxx>
|
#include <Precision.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
|
|
||||||
@ -393,11 +391,7 @@ void GEOMAlgo_FinderShapeOn::MakeArgument1()
|
|||||||
//
|
//
|
||||||
// Argument 1
|
// Argument 1
|
||||||
if (!myIsAnalytic) {
|
if (!myIsAnalytic) {
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
aMF.Init(mySurface, Standard_True, Precision::Confusion());
|
aMF.Init(mySurface, Standard_True, Precision::Confusion());
|
||||||
#else
|
|
||||||
aMF.Init(mySurface, Standard_True);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
aFErr=aMF.Error();
|
aFErr=aMF.Error();
|
||||||
if (aFErr!=BRepLib_FaceDone) {
|
if (aFErr!=BRepLib_FaceDone) {
|
||||||
|
@ -186,11 +186,7 @@ void GEOMAlgo_WireSolid::BuildResult()
|
|||||||
}
|
}
|
||||||
else if (aNbPB==1) {
|
else if (aNbPB==1) {
|
||||||
const Handle(BOPDS_PaveBlock)& aPB=aLPB.First();
|
const Handle(BOPDS_PaveBlock)& aPB=aLPB.First();
|
||||||
#if OCC_VERSION_LARGE > 0x06060000 // Porting to OCCT higher 6.6.0 version
|
|
||||||
if (pDS->IsCommonBlock(aPB)) {
|
if (pDS->IsCommonBlock(aPB)) {
|
||||||
#else
|
|
||||||
if (aPB->IsCommonBlock()) {
|
|
||||||
#endif
|
|
||||||
aState=TopAbs_ON;
|
aState=TopAbs_ON;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -303,9 +303,6 @@ Handle(GEOM_AISShape) GEOMBase::ConvertIORinGEOMAISShape(const QString& IOR, boo
|
|||||||
|
|
||||||
AIS_ListOfInteractive displayed;
|
AIS_ListOfInteractive displayed;
|
||||||
ic->DisplayedObjects( displayed );
|
ic->DisplayedObjects( displayed );
|
||||||
#if OCC_VERSION_LARGE <= 0x06060000
|
|
||||||
ic->ObjectsInCollector( displayed );
|
|
||||||
#endif
|
|
||||||
AIS_ListIteratorOfListOfInteractive it( displayed );
|
AIS_ListIteratorOfListOfInteractive it( displayed );
|
||||||
while ( it.More() && shape.IsNull() ) {
|
while ( it.More() && shape.IsNull() ) {
|
||||||
if ( it.Value()->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) ) {
|
if ( it.Value()->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) ) {
|
||||||
|
@ -122,11 +122,7 @@
|
|||||||
|
|
||||||
#include <GEOMImpl_Types.hxx>
|
#include <GEOMImpl_Types.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#else
|
|
||||||
#include <Graphic3d_HArray1OfBytes.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If the next macro is defined, autocolor feature works for all sub-shapes;
|
// If the next macro is defined, autocolor feature works for all sub-shapes;
|
||||||
// if it is undefined, autocolor feature works for groups only
|
// if it is undefined, autocolor feature works for groups only
|
||||||
@ -138,7 +134,6 @@
|
|||||||
// Hard-coded value of shape deflection coefficient for VTK viewer
|
// Hard-coded value of shape deflection coefficient for VTK viewer
|
||||||
const double VTK_MIN_DEFLECTION = 0.001;
|
const double VTK_MIN_DEFLECTION = 0.001;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06070000
|
|
||||||
// Pixmap caching support
|
// Pixmap caching support
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@ -298,7 +293,6 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
//================================================================
|
//================================================================
|
||||||
// Function : getActiveStudy
|
// Function : getActiveStudy
|
||||||
@ -525,7 +519,6 @@ GEOM_Displayer::GEOM_Displayer( SalomeApp_Study* st )
|
|||||||
myToActivate = true;
|
myToActivate = true;
|
||||||
// This parameter is used for activisation/deactivisation of objects to be displayed
|
// This parameter is used for activisation/deactivisation of objects to be displayed
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // Functionnality available only in OCCT 6.5.2
|
|
||||||
// Activate parallel vizualisation only for testing purpose
|
// Activate parallel vizualisation only for testing purpose
|
||||||
// and if the corresponding env variable is set to 1
|
// and if the corresponding env variable is set to 1
|
||||||
char* parallel_visu = getenv("PARALLEL_VISU");
|
char* parallel_visu = getenv("PARALLEL_VISU");
|
||||||
@ -534,7 +527,6 @@ GEOM_Displayer::GEOM_Displayer( SalomeApp_Study* st )
|
|||||||
MESSAGE("Parallel visualisation on");
|
MESSAGE("Parallel visualisation on");
|
||||||
BRepMesh_IncrementalMesh::SetParallelDefault(Standard_True);
|
BRepMesh_IncrementalMesh::SetParallelDefault(Standard_True);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
myViewFrame = 0;
|
myViewFrame = 0;
|
||||||
|
|
||||||
@ -920,7 +912,6 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
aImagePath = propMap.value( GEOM::propertyName( GEOM::Texture ) ).toString();
|
aImagePath = propMap.value( GEOM::propertyName( GEOM::Texture ) ).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06070000
|
|
||||||
Handle(Image_PixMap) aPixmap;
|
Handle(Image_PixMap) aPixmap;
|
||||||
if ( !aImagePath.isEmpty() )
|
if ( !aImagePath.isEmpty() )
|
||||||
aPixmap = cacheTextureFor( aImagePath, AISShape );
|
aPixmap = cacheTextureFor( aImagePath, AISShape );
|
||||||
@ -936,13 +927,6 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
else {
|
else {
|
||||||
AISShape->SetTextureMapOff();
|
AISShape->SetTextureMapOff();
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
if ( !aImagePath.isEmpty() ) {
|
|
||||||
AISShape->SetTextureFileName( TCollection_AsciiString( aImagePath.toUtf8().constData() ) );
|
|
||||||
AISShape->SetTextureMapOn();
|
|
||||||
AISShape->DisableTextureModulate();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// set line width
|
// set line width
|
||||||
AISShape->SetWidth( HasWidth() ?
|
AISShape->SetWidth( HasWidth() ?
|
||||||
@ -975,14 +959,9 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
// custom marker string contains "IdOfTexture"
|
// custom marker string contains "IdOfTexture"
|
||||||
int textureId = aList[0].toInt();
|
int textureId = aList[0].toInt();
|
||||||
Standard_Integer aWidth, aHeight;
|
Standard_Integer aWidth, aHeight;
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture =
|
Handle(TColStd_HArray1OfByte) aTexture =
|
||||||
#else
|
|
||||||
Handle(Graphic3d_HArray1OfBytes) aTexture =
|
|
||||||
#endif
|
|
||||||
GeometryGUI::getTexture( study, textureId, aWidth, aHeight );
|
GeometryGUI::getTexture( study, textureId, aWidth, aHeight );
|
||||||
if ( !aTexture.IsNull() ) {
|
if ( !aTexture.IsNull() ) {
|
||||||
#if OCC_VERSION_LARGE > 0x06060000 // Porting to OCCT higher 6.6.0 version
|
|
||||||
Handle(Prs3d_PointAspect) aTextureAspect =
|
Handle(Prs3d_PointAspect) aTextureAspect =
|
||||||
new Prs3d_PointAspect( HasColor() ?
|
new Prs3d_PointAspect( HasColor() ?
|
||||||
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
||||||
@ -991,18 +970,6 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
||||||
aWidth, aHeight,
|
aWidth, aHeight,
|
||||||
aTexture );
|
aTexture );
|
||||||
#else
|
|
||||||
int TextureId = 0;
|
|
||||||
Handle(Prs3d_PointAspect) aTextureAspect =
|
|
||||||
new Prs3d_PointAspect( HasColor() ?
|
|
||||||
// predefined color, manually set to displayer via GEOM_Displayer::SetColor() function
|
|
||||||
(Quantity_NameOfColor)GetColor() :
|
|
||||||
// color from properties
|
|
||||||
SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::PointColor ) ).value<QColor>() ),
|
|
||||||
++TextureId,
|
|
||||||
aWidth, aHeight,
|
|
||||||
aTexture );
|
|
||||||
#endif
|
|
||||||
AISShape->Attributes()->SetPointAspect( aTextureAspect );
|
AISShape->Attributes()->SetPointAspect( aTextureAspect );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2006,13 +1973,11 @@ void GEOM_Displayer::AfterDisplay( SALOME_View* v, const SALOME_OCCPrs* p )
|
|||||||
UpdateColorScale(false,false);
|
UpdateColorScale(false,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06070000
|
|
||||||
void GEOM_Displayer::BeforeErase( SALOME_View* v, const SALOME_OCCPrs* p )
|
void GEOM_Displayer::BeforeErase( SALOME_View* v, const SALOME_OCCPrs* p )
|
||||||
{
|
{
|
||||||
LightApp_Displayer::BeforeErase( v, p );
|
LightApp_Displayer::BeforeErase( v, p );
|
||||||
releaseTextures( p );
|
releaseTextures( p );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void GEOM_Displayer::AfterErase( SALOME_View* v, const SALOME_OCCPrs* p )
|
void GEOM_Displayer::AfterErase( SALOME_View* v, const SALOME_OCCPrs* p )
|
||||||
{
|
{
|
||||||
|
@ -175,9 +175,7 @@ public:
|
|||||||
virtual void Update( SALOME_VTKPrs* );
|
virtual void Update( SALOME_VTKPrs* );
|
||||||
virtual void BeforeDisplay( SALOME_View*, const SALOME_OCCPrs* );
|
virtual void BeforeDisplay( SALOME_View*, const SALOME_OCCPrs* );
|
||||||
virtual void AfterDisplay ( SALOME_View*, const SALOME_OCCPrs* );
|
virtual void AfterDisplay ( SALOME_View*, const SALOME_OCCPrs* );
|
||||||
#if OCC_VERSION_LARGE > 0x06070000
|
|
||||||
virtual void BeforeErase ( SALOME_View*, const SALOME_OCCPrs* );
|
virtual void BeforeErase ( SALOME_View*, const SALOME_OCCPrs* );
|
||||||
#endif
|
|
||||||
virtual void AfterErase ( SALOME_View*, const SALOME_OCCPrs* );
|
virtual void AfterErase ( SALOME_View*, const SALOME_OCCPrs* );
|
||||||
|
|
||||||
/* This methos is used for activisation/deactivisation of objects to be displayed*/
|
/* This methos is used for activisation/deactivisation of objects to be displayed*/
|
||||||
|
@ -108,11 +108,7 @@
|
|||||||
#include <OSD_SharedLibrary.hxx>
|
#include <OSD_SharedLibrary.hxx>
|
||||||
#include <NCollection_DataMap.hxx>
|
#include <NCollection_DataMap.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#else
|
|
||||||
#include <Graphic3d_HArray1OfBytes.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <utilities.h>
|
#include <utilities.h>
|
||||||
|
|
||||||
@ -1156,9 +1152,7 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
createMenu( GEOMOp::OpRevolution, genId, -1 );
|
createMenu( GEOMOp::OpRevolution, genId, -1 );
|
||||||
createMenu( GEOMOp::OpFilling, genId, -1 );
|
createMenu( GEOMOp::OpFilling, genId, -1 );
|
||||||
createMenu( GEOMOp::OpPipe, genId, -1 );
|
createMenu( GEOMOp::OpPipe, genId, -1 );
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
createMenu( GEOMOp::OpPipePath, genId, -1 );
|
createMenu( GEOMOp::OpPipePath, genId, -1 );
|
||||||
#endif
|
|
||||||
|
|
||||||
//int advId = createMenu( tr( "MEN_ADVANCED" ), newEntId, -1 );
|
//int advId = createMenu( tr( "MEN_ADVANCED" ), newEntId, -1 );
|
||||||
//createMenu( GEOMOp::OpSmoothingSurface, advId, -1 );
|
//createMenu( GEOMOp::OpSmoothingSurface, advId, -1 );
|
||||||
@ -1383,9 +1377,7 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
createTool( GEOMOp::OpRevolution, genTbId );
|
createTool( GEOMOp::OpRevolution, genTbId );
|
||||||
createTool( GEOMOp::OpFilling, genTbId );
|
createTool( GEOMOp::OpFilling, genTbId );
|
||||||
createTool( GEOMOp::OpPipe, genTbId );
|
createTool( GEOMOp::OpPipe, genTbId );
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
createTool( GEOMOp::OpPipePath, genTbId );
|
createTool( GEOMOp::OpPipePath, genTbId );
|
||||||
#endif
|
|
||||||
|
|
||||||
int transTbId = createTool( tr( "TOOL_TRANSFORMATION" ) );
|
int transTbId = createTool( tr( "TOOL_TRANSFORMATION" ) );
|
||||||
createTool( GEOMOp::OpTranslate, transTbId );
|
createTool( GEOMOp::OpTranslate, transTbId );
|
||||||
@ -1493,7 +1485,6 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
mgr->setRule( action( GEOMOp::OpGroupEdit ), QString("client='ObjectBrowser' and type='Group' and selcount=1 and isOCC=true"), QtxPopupMgr::VisibleRule );
|
mgr->setRule( action( GEOMOp::OpGroupEdit ), QString("client='ObjectBrowser' and type='Group' and selcount=1 and isOCC=true"), QtxPopupMgr::VisibleRule );
|
||||||
mgr->insert( separator(), -1, -1 ); // -----------
|
mgr->insert( separator(), -1, -1 ); // -----------
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050200
|
|
||||||
//QString bringRule = clientOCCorOB + " and ($component={'GEOM'}) and (selcount>0) and isOCC=true and topLevel=false";
|
//QString bringRule = clientOCCorOB + " and ($component={'GEOM'}) and (selcount>0) and isOCC=true and topLevel=false";
|
||||||
QString bringRule = clientOCCorOB + " and ($component={'GEOM'}) and isFolder=false and (selcount>0) and isOCC=true";
|
QString bringRule = clientOCCorOB + " and ($component={'GEOM'}) and isFolder=false and (selcount>0) and isOCC=true";
|
||||||
mgr->insert( action(GEOMOp::OpBringToFront ), -1, -1 ); // bring to front
|
mgr->insert( action(GEOMOp::OpBringToFront ), -1, -1 ); // bring to front
|
||||||
@ -1501,7 +1492,6 @@ void GeometryGUI::initialize( CAM_Application* app )
|
|||||||
mgr->setRule(action(GEOMOp::OpBringToFront), "topLevel=true", QtxPopupMgr::ToggleRule );
|
mgr->setRule(action(GEOMOp::OpBringToFront), "topLevel=true", QtxPopupMgr::ToggleRule );
|
||||||
mgr->insert( action(GEOMOp::OpClsBringToFront ), -1, -1 ); // clear bring to front
|
mgr->insert( action(GEOMOp::OpClsBringToFront ), -1, -1 ); // clear bring to front
|
||||||
mgr->setRule( action(GEOMOp::OpClsBringToFront ), clientOCC + " and autoBringToFront = false", QtxPopupMgr::VisibleRule );
|
mgr->setRule( action(GEOMOp::OpClsBringToFront ), clientOCC + " and autoBringToFront = false", QtxPopupMgr::VisibleRule );
|
||||||
#endif
|
|
||||||
mgr->insert( separator(), -1, -1 ); // -----------
|
mgr->insert( separator(), -1, -1 ); // -----------
|
||||||
dispmodeId = mgr->insert( tr( "MEN_DISPLAY_MODE" ), -1, -1 ); // display mode menu
|
dispmodeId = mgr->insert( tr( "MEN_DISPLAY_MODE" ), -1, -1 ); // display mode menu
|
||||||
mgr->insert( action( GEOMOp::OpWireframe ), dispmodeId, -1 ); // wireframe
|
mgr->insert( action( GEOMOp::OpWireframe ), dispmodeId, -1 ); // wireframe
|
||||||
@ -2179,20 +2169,12 @@ QString GeometryGUI::engineIOR() const
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) GeometryGUI::getTexture
|
Handle(TColStd_HArray1OfByte) GeometryGUI::getTexture
|
||||||
#else
|
|
||||||
Handle(Graphic3d_HArray1OfBytes) GeometryGUI::getTexture
|
|
||||||
#endif
|
|
||||||
(SalomeApp_Study* theStudy, int theId, int& theWidth, int& theHeight)
|
(SalomeApp_Study* theStudy, int theId, int& theWidth, int& theHeight)
|
||||||
{
|
{
|
||||||
theWidth = theHeight = 0;
|
theWidth = theHeight = 0;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture;
|
Handle(TColStd_HArray1OfByte) aTexture;
|
||||||
#else
|
|
||||||
Handle(Graphic3d_HArray1OfBytes) aTexture;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (theStudy) {
|
if (theStudy) {
|
||||||
TextureMap aTextureMap = myTextureMap[ theStudy->studyDS()->StudyId() ];
|
TextureMap aTextureMap = myTextureMap[ theStudy->studyDS()->StudyId() ];
|
||||||
@ -2206,11 +2188,7 @@ Handle(Graphic3d_HArray1OfBytes) GeometryGUI::getTexture
|
|||||||
theWidth = aWidth;
|
theWidth = aWidth;
|
||||||
theHeight = aHeight;
|
theHeight = aHeight;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
aTexture = new TColStd_HArray1OfByte (1, aStream->length());
|
aTexture = new TColStd_HArray1OfByte (1, aStream->length());
|
||||||
#else
|
|
||||||
aTexture = new Graphic3d_HArray1OfBytes (1, aStream->length());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (int i = 0; i < aStream->length(); i++)
|
for (int i = 0; i < aStream->length(); i++)
|
||||||
aTexture->SetValue( i+1, (Standard_Byte)aStream[i] );
|
aTexture->SetValue( i+1, (Standard_Byte)aStream[i] );
|
||||||
|
@ -47,11 +47,7 @@
|
|||||||
// OCCT Includes
|
// OCCT Includes
|
||||||
#include <gp_Ax3.hxx>
|
#include <gp_Ax3.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#else
|
|
||||||
#include <Graphic3d_HArray1OfBytes.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// IDL headers
|
// IDL headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
@ -88,11 +84,7 @@ public:
|
|||||||
virtual void initialize( CAM_Application* );
|
virtual void initialize( CAM_Application* );
|
||||||
virtual QString engineIOR() const;
|
virtual QString engineIOR() const;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
static Handle(TColStd_HArray1OfByte) getTexture (SalomeApp_Study*, int, int&, int&);
|
static Handle(TColStd_HArray1OfByte) getTexture (SalomeApp_Study*, int, int&, int&);
|
||||||
#else
|
|
||||||
static Handle(Graphic3d_HArray1OfBytes) getTexture (SalomeApp_Study*, int, int&, int&);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static bool InitGeomGen();
|
static bool InitGeomGen();
|
||||||
|
|
||||||
@ -208,11 +200,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
typedef QMap<long, Handle(TColStd_HArray1OfByte)> TextureMap;
|
typedef QMap<long, Handle(TColStd_HArray1OfByte)> TextureMap;
|
||||||
#else
|
|
||||||
typedef QMap<long, Handle(Graphic3d_HArray1OfBytes)> TextureMap;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef QMap<long, TextureMap> StudyTextureMap;
|
typedef QMap<long, TextureMap> StudyTextureMap;
|
||||||
typedef QMap<QString, GEOMGUI*> GUIMap;
|
typedef QMap<QString, GEOMGUI*> GUIMap;
|
||||||
|
@ -130,11 +130,7 @@ Standard_Integer GEOMImpl_ArchimedeDriver::Execute(TFunction_Logbook& log) const
|
|||||||
|
|
||||||
Standard_Real u1,u2,v1,v2;
|
Standard_Real u1,u2,v1,v2;
|
||||||
SurfaceTrimmee->Bounds(u1,u2,v1,v2);
|
SurfaceTrimmee->Bounds(u1,u2,v1,v2);
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
TopoDS_Face tirant = BRepBuilderAPI_MakeFace(SurfaceTrimmee, u1, u2, v1, v2, Precision::Confusion());
|
TopoDS_Face tirant = BRepBuilderAPI_MakeFace(SurfaceTrimmee, u1, u2, v1, v2, Precision::Confusion());
|
||||||
#else
|
|
||||||
TopoDS_Face tirant = BRepBuilderAPI_MakeFace(SurfaceTrimmee, u1, u2, v1, v2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (tirant.IsNull()) {
|
if (tirant.IsNull()) {
|
||||||
StdFail_NotDone::Raise("Failed to build secant face");
|
StdFail_NotDone::Raise("Failed to build secant face");
|
||||||
|
@ -1365,7 +1365,6 @@ TCollection_AsciiString GEOMImpl_Block6Explorer::MakeAnyFace (const TopoDS_Wire&
|
|||||||
// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN
|
// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN
|
||||||
// the following block, when enabled, leads to extra vertices generation by partition algorithm
|
// the following block, when enabled, leads to extra vertices generation by partition algorithm
|
||||||
// in some cases, for example when fillet is made on a PipeTShape
|
// in some cases, for example when fillet is made on a PipeTShape
|
||||||
//#if OCC_VERSION_LARGE > 0x06050200
|
|
||||||
#if 0
|
#if 0
|
||||||
// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END
|
// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END
|
||||||
BRep_Builder BB;
|
BRep_Builder BB;
|
||||||
|
@ -219,11 +219,7 @@ Standard_Integer GEOMImpl_FillingDriver::Execute(TFunction_Logbook& log) const
|
|||||||
App.SurfUMults(), App.SurfVMults(), App.UDegree(), App.VDegree());
|
App.SurfUMults(), App.SurfVMults(), App.UDegree(), App.VDegree());
|
||||||
|
|
||||||
if (GBS.IsNull()) return 0;
|
if (GBS.IsNull()) return 0;
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
aShape = BRepBuilderAPI_MakeFace(GBS, Precision::Confusion());
|
aShape = BRepBuilderAPI_MakeFace(GBS, Precision::Confusion());
|
||||||
#else
|
|
||||||
aShape = BRepBuilderAPI_MakeFace(GBS);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// implemented by skl 20.03.2008 for bug 16568
|
// implemented by skl 20.03.2008 for bug 16568
|
||||||
@ -287,11 +283,7 @@ Standard_Integer GEOMImpl_FillingDriver::Execute(TFunction_Logbook& log) const
|
|||||||
}
|
}
|
||||||
GeomAPI_PointsToBSplineSurface PTB (Points, mindeg, maxdeg, GeomAbs_C2, tol3d);
|
GeomAPI_PointsToBSplineSurface PTB (Points, mindeg, maxdeg, GeomAbs_C2, tol3d);
|
||||||
Handle(Geom_BSplineSurface) BS = PTB.Surface();
|
Handle(Geom_BSplineSurface) BS = PTB.Surface();
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
BRepBuilderAPI_MakeFace BB (BS, Precision::Confusion());
|
BRepBuilderAPI_MakeFace BB (BS, Precision::Confusion());
|
||||||
#else
|
|
||||||
BRepBuilderAPI_MakeFace BB (BS);
|
|
||||||
#endif
|
|
||||||
TopoDS_Face NewF = BB.Face();
|
TopoDS_Face NewF = BB.Face();
|
||||||
Handle(ShapeFix_Face) sff = new ShapeFix_Face (NewF);
|
Handle(ShapeFix_Face) sff = new ShapeFix_Face (NewF);
|
||||||
sff->Perform();
|
sff->Perform();
|
||||||
|
@ -436,12 +436,10 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueWithWarnings (const TopoDS_Shape& theShape
|
|||||||
aGA.Detect();
|
aGA.Detect();
|
||||||
|
|
||||||
//modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
|
//modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
|
||||||
#if OCC_VERSION_LARGE > 0x06050200
|
|
||||||
Standard_Integer iWrnDetect = aGA.WarningStatus();
|
Standard_Integer iWrnDetect = aGA.WarningStatus();
|
||||||
if (iWrnDetect == 2) {
|
if (iWrnDetect == 2) {
|
||||||
Standard_Failure::Raise("GLUE_ERROR_STICKED_SHAPES");
|
Standard_Failure::Raise("GLUE_ERROR_STICKED_SHAPES");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
//modified by NIZNHY-PKV Tue Mar 13 14:07:14 2012t
|
//modified by NIZNHY-PKV Tue Mar 13 14:07:14 2012t
|
||||||
|
|
||||||
Standard_Integer iErr = aGA.ErrorStatus();
|
Standard_Integer iErr = aGA.ErrorStatus();
|
||||||
@ -596,7 +594,6 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueByList (const TopoDS_Shape& theShape,
|
|||||||
aGA.Detect();
|
aGA.Detect();
|
||||||
|
|
||||||
//modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
|
//modified by NIZNHY-PKV Tue Mar 13 14:07:12 2012f
|
||||||
#if OCC_VERSION_LARGE > 0x06050200
|
|
||||||
Standard_Integer iWrnDetect = aGA.WarningStatus();
|
Standard_Integer iWrnDetect = aGA.WarningStatus();
|
||||||
if (iWrnDetect == 2) {
|
if (iWrnDetect == 2) {
|
||||||
/*
|
/*
|
||||||
@ -622,7 +619,6 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueByList (const TopoDS_Shape& theShape,
|
|||||||
*/
|
*/
|
||||||
Standard_Failure::Raise("GLUE_ERROR_STICKED_SHAPES");
|
Standard_Failure::Raise("GLUE_ERROR_STICKED_SHAPES");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
//modified by NIZNHY-PKV Tue Mar 13 14:07:14 2012t
|
//modified by NIZNHY-PKV Tue Mar 13 14:07:14 2012t
|
||||||
|
|
||||||
Standard_Integer iErr = aGA.ErrorStatus();
|
Standard_Integer iErr = aGA.ErrorStatus();
|
||||||
|
@ -128,9 +128,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeBoxDXDYDZ (double theDX, dou
|
|||||||
|
|
||||||
//Compute the box value
|
//Compute the box value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -185,9 +183,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeBoxTwoPnt (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Box value
|
//Compute the Box value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -236,9 +232,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFaceHW (double theH, double
|
|||||||
|
|
||||||
//Compute the Face
|
//Compute the Face
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Face driver failed");
|
SetErrorCode("Face driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -293,9 +287,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFaceObjHW (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Face
|
//Compute the Face
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Face driver failed");
|
SetErrorCode("Face driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -351,9 +343,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeDiskPntVecR
|
|||||||
|
|
||||||
//Compute the Disk value
|
//Compute the Disk value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Disk driver failed");
|
SetErrorCode("Disk driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -411,9 +401,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeDiskThreePnt (Handle(GEOM_Ob
|
|||||||
|
|
||||||
//Compute the Disk value
|
//Compute the Disk value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Disk driver failed");
|
SetErrorCode("Disk driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -461,9 +449,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeDiskR (double theR, int theO
|
|||||||
|
|
||||||
//Compute the Disk
|
//Compute the Disk
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Disk driver failed");
|
SetErrorCode("Disk driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -509,9 +495,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeCylinderRH (double theR, dou
|
|||||||
|
|
||||||
//Compute the Cylinder value
|
//Compute the Cylinder value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -570,9 +554,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeCylinderPntVecRH (Handle(GEO
|
|||||||
|
|
||||||
//Compute the Cylinder value
|
//Compute the Cylinder value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -622,9 +604,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeConeR1R2H (double theR1, dou
|
|||||||
|
|
||||||
//Compute the Cone value
|
//Compute the Cone value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -685,9 +665,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeConePntVecR1R2H (Handle(GEOM
|
|||||||
|
|
||||||
//Compute the Cone value
|
//Compute the Cone value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -733,9 +711,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeSphereR (double theR)
|
|||||||
|
|
||||||
//Compute the Sphere value
|
//Compute the Sphere value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -788,9 +764,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeSpherePntR (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the Sphere value
|
//Compute the Sphere value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -839,9 +813,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeTorusRR
|
|||||||
|
|
||||||
//Compute the Torus value
|
//Compute the Torus value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -899,9 +871,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeTorusPntVecRR
|
|||||||
|
|
||||||
//Compute the Torus value
|
//Compute the Torus value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -960,9 +930,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismVecH (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -1024,9 +992,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismVecH2Ways (Handle(GEOM_
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -1087,9 +1053,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismTwoPnt
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -1152,9 +1116,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismTwoPnt2Ways
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -1213,9 +1175,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismDXDYDZ
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Extrusion can not be created, check input data");
|
SetErrorCode("Extrusion can not be created, check input data");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1276,9 +1236,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePrismDXDYDZ2Ways
|
|||||||
|
|
||||||
//Compute the Prism value
|
//Compute the Prism value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Extrusion can not be created, check input data");
|
SetErrorCode("Extrusion can not be created, check input data");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1350,9 +1308,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeDraftPrism
|
|||||||
|
|
||||||
//Compute the Draft Prism Feature value
|
//Compute the Draft Prism Feature value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Extrusion can not be created, check input data");
|
SetErrorCode("Extrusion can not be created, check input data");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1415,9 +1371,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipe (Handle(GEOM_Object) th
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1475,9 +1429,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeRevolutionAxisAngle (Handle(
|
|||||||
|
|
||||||
//Compute the Revolution value
|
//Compute the Revolution value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1533,9 +1485,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeRevolutionAxisAngle2Ways
|
|||||||
|
|
||||||
//Compute the Revolution value
|
//Compute the Revolution value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1596,9 +1546,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling
|
|||||||
|
|
||||||
//Compute the Solid value
|
//Compute the Solid value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1695,9 +1643,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeThruSections(
|
|||||||
|
|
||||||
//Compute the ThruSections value
|
//Compute the ThruSections value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1819,9 +1765,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipeWithDifferentSections(
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1978,9 +1922,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipeWithShellSections(
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Pipe with shell sections driver failed");
|
SetErrorCode("Pipe with shell sections driver failed");
|
||||||
return anObj;
|
return anObj;
|
||||||
@ -2125,9 +2067,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipeShellsWithoutPath(
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Pipe with shell sections without path driver failed");
|
SetErrorCode("Pipe with shell sections without path driver failed");
|
||||||
return anObj;
|
return anObj;
|
||||||
@ -2218,9 +2158,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakePipeBiNormalAlongVector (Han
|
|||||||
|
|
||||||
//Compute the Pipe value
|
//Compute the Pipe value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2279,9 +2217,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeThickening(Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the offset
|
//Compute the offset
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2348,9 +2284,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::RestorePath (Handle(GEOM_Object)
|
|||||||
|
|
||||||
// Compute the Path value
|
// Compute the Path value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("PipePath driver failed");
|
SetErrorCode("PipePath driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2440,9 +2374,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::RestorePath
|
|||||||
|
|
||||||
// Compute the Path value
|
// Compute the Path value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("PipePath driver failed");
|
SetErrorCode("PipePath driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -106,9 +106,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointXYZ
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -161,9 +159,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointWithReference
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -264,9 +260,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::makePointOnGeom
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -422,9 +416,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnLinesIntersection
|
|||||||
|
|
||||||
//Compute the point value
|
//Compute the point value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -475,9 +467,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeTangentOnCurve
|
|||||||
|
|
||||||
//Compute the vector value
|
//Compute the vector value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -526,9 +516,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeVectorDXDYDZ
|
|||||||
|
|
||||||
//Compute the Vector value
|
//Compute the Vector value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -581,9 +569,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeVectorTwoPnt
|
|||||||
|
|
||||||
//Compute the Vector value
|
//Compute the Vector value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -637,9 +623,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeLine
|
|||||||
|
|
||||||
//Compute the Line value
|
//Compute the Line value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -692,9 +676,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeLineTwoPnt
|
|||||||
|
|
||||||
//Compute the Line value
|
//Compute the Line value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -747,9 +729,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeLineTwoFaces
|
|||||||
|
|
||||||
//Compute the Line value
|
//Compute the Line value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -806,9 +786,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlaneThreePnt
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -863,9 +841,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlanePntVec
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -917,9 +893,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlaneFace
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -974,9 +948,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlane2Vec
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1028,9 +1000,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePlaneLCS
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1082,9 +1052,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeMarker
|
|||||||
|
|
||||||
//Compute the marker value
|
//Compute the marker value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1136,9 +1104,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeMarkerFromShape
|
|||||||
|
|
||||||
//Compute the marker value
|
//Compute the marker value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1193,9 +1159,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeMarkerPntTwoVec
|
|||||||
|
|
||||||
//Compute the marker value
|
//Compute the marker value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1252,9 +1216,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakeTangentPlaneOnFace(const Hand
|
|||||||
|
|
||||||
//Compute the Plane value
|
//Compute the Plane value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -168,9 +168,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -226,9 +224,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad2Edges
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -291,9 +287,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeQuad4Vertices
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -363,9 +357,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeHexa
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -422,9 +414,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeHexa2Faces
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -478,9 +468,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeBlockCompound
|
|||||||
|
|
||||||
//Compute the Blocks Compound value
|
//Compute the Blocks Compound value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -683,9 +671,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetEdge
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -789,9 +775,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetEdgeNearPoint
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
||||||
TopoDS_Shape aShape = GEOMUtils::GetEdgeNearPoint(aBlockOrComp, aVert);
|
TopoDS_Shape aShape = GEOMUtils::GetEdgeNearPoint(aBlockOrComp, aVert);
|
||||||
|
|
||||||
@ -864,9 +848,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByPoints
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape MVF;
|
TopTools_IndexedDataMapOfShapeListOfShape MVF;
|
||||||
@ -999,9 +981,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByEdges
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape MEF;
|
TopTools_IndexedDataMapOfShapeListOfShape MEF;
|
||||||
@ -1124,9 +1104,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetOppositeFace
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
|
|
||||||
GEOMImpl_Block6Explorer aBlockTool;
|
GEOMImpl_Block6Explorer aBlockTool;
|
||||||
@ -1190,9 +1168,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceNearPoint
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -1382,9 +1358,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetFaceByNormale
|
|||||||
|
|
||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -1524,9 +1498,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetShapesNearPoint
|
|||||||
|
|
||||||
// Compute the result
|
// Compute the result
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
TopoDS_Vertex aVert = TopoDS::Vertex(anArg);
|
||||||
|
|
||||||
TopTools_MapOfShape mapShape;
|
TopTools_MapOfShape mapShape;
|
||||||
@ -1629,9 +1601,7 @@ Standard_Boolean GEOMImpl_IBlocksOperations::IsCompoundOfBlocks
|
|||||||
//Check
|
//Check
|
||||||
isCompOfBlocks = Standard_True;
|
isCompOfBlocks = Standard_True;
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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()) {
|
||||||
@ -2628,9 +2598,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::RemoveExtraEdges
|
|||||||
|
|
||||||
//Compute the fixed shape
|
//Compute the fixed shape
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2681,9 +2649,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::UnionFaces
|
|||||||
|
|
||||||
//Compute the fixed shape
|
//Compute the fixed shape
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2737,9 +2703,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::CheckAndImprove
|
|||||||
|
|
||||||
//Compute the fixed shape
|
//Compute the fixed shape
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2789,9 +2753,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IBlocksOperations::ExplodeCompound
|
|||||||
|
|
||||||
// Explode
|
// Explode
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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())) {
|
||||||
@ -2884,9 +2846,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetBlockNearPoint
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -3063,9 +3023,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetBlockByParts
|
|||||||
|
|
||||||
//Compute the Block value
|
//Compute the Block value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -3182,9 +3140,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IBlocksOperations::GetBlocksByPart
|
|||||||
|
|
||||||
//Get the Blocks
|
//Get the Blocks
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -3305,9 +3261,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeMultiTransformation1D
|
|||||||
|
|
||||||
//Compute the transformation
|
//Compute the transformation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -3369,9 +3323,7 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::MakeMultiTransformation2D
|
|||||||
|
|
||||||
//Compute the transformation
|
//Compute the transformation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -114,9 +114,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeBoolean
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -189,9 +187,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeFuse
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -254,9 +250,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeFuseList
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -316,9 +310,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeCommonList
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -389,9 +381,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeCutList
|
|||||||
|
|
||||||
//Compute the Boolean value
|
//Compute the Boolean value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -516,9 +506,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition
|
|||||||
|
|
||||||
//Compute the Partition
|
//Compute the Partition
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -599,9 +587,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeHalfPartition
|
|||||||
|
|
||||||
//Compute the Partition value
|
//Compute the Partition value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -235,9 +235,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCircleThreePnt (Handle(GEOM_
|
|||||||
|
|
||||||
//Compute the Circle value
|
//Compute the Circle value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -295,9 +293,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCircleCenter2Pnt (Handle(GEO
|
|||||||
|
|
||||||
//Compute the Circle value
|
//Compute the Circle value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -360,9 +356,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCirclePntVecR
|
|||||||
|
|
||||||
//Compute the Circle value
|
//Compute the Circle value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -435,9 +429,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeEllipse
|
|||||||
|
|
||||||
//Compute the Ellipse value
|
//Compute the Ellipse value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -502,9 +494,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeArc (Handle(GEOM_Object) the
|
|||||||
|
|
||||||
//Compute the Arc value
|
//Compute the Arc value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -563,12 +553,10 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeArcCenter (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Arc value
|
//Compute the Arc value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Standard_Failure) {
|
catch (Standard_Failure) {
|
||||||
@ -622,9 +610,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeArcOfEllipse (Handle(GEOM_Ob
|
|||||||
|
|
||||||
//Compute the Arc value
|
//Compute the Arc value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -686,9 +672,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakePolyline (std::list<Handle(G
|
|||||||
|
|
||||||
//Compute the Polyline value
|
//Compute the Polyline value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -757,9 +741,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSplineBezier
|
|||||||
|
|
||||||
//Compute the Spline value
|
//Compute the Spline value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -829,9 +811,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSplineInterpolation
|
|||||||
|
|
||||||
//Compute the Spline value
|
//Compute the Spline value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -908,9 +888,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSplineInterpolWithTangents
|
|||||||
|
|
||||||
//Compute the Spline value
|
//Compute the Spline value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1159,9 +1137,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric
|
|||||||
|
|
||||||
//Compute the Curve value
|
//Compute the Curve value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Curve driver failed !!!");
|
SetErrorCode("Curve driver failed !!!");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1228,9 +1204,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSketcher (const char* theCom
|
|||||||
|
|
||||||
//Compute the Sketcher value
|
//Compute the Sketcher value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1292,9 +1266,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeSketcherOnPlane
|
|||||||
|
|
||||||
//Compute the Sketcher value
|
//Compute the Sketcher value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1343,9 +1315,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::Make3DSketcherCommand (const cha
|
|||||||
|
|
||||||
//Compute the 3D Sketcher value
|
//Compute the 3D Sketcher value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("3D Sketcher driver failed");
|
SetErrorCode("3D Sketcher driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1403,9 +1373,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::Make3DSketcher (std::list<double
|
|||||||
|
|
||||||
//Compute the Sketcher value
|
//Compute the Sketcher value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("3D Sketcher driver failed");
|
SetErrorCode("3D Sketcher driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1478,9 +1446,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeIsoline
|
|||||||
|
|
||||||
//Compute the isoline curve
|
//Compute the isoline curve
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -141,9 +141,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ShapeProcess (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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");
|
||||||
@ -350,9 +348,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::SuppressFaces
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -420,9 +416,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::CloseContour
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -489,9 +483,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::RemoveIntWires
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -557,9 +549,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::FillHoles (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -628,9 +618,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::Sew (Handle(GEOM_Object) theObj
|
|||||||
|
|
||||||
//Compute the result
|
//Compute the result
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -690,9 +678,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::RemoveInternalFaces (Handle(GEO
|
|||||||
|
|
||||||
//Compute the result
|
//Compute the result
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction))
|
if (!GetSolver()->ComputeFunction(aFunction))
|
||||||
{
|
{
|
||||||
SetErrorCode("Healing driver failed");
|
SetErrorCode("Healing driver failed");
|
||||||
@ -751,9 +737,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::DivideEdge (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -817,9 +801,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::FuseCollinearEdgesWithinWire
|
|||||||
|
|
||||||
// Compute the new wire
|
// Compute the new wire
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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,12 +851,8 @@ bool GEOMImpl_IHealingOperations::GetFreeBoundary (Handle(GEOM_Object) theObject
|
|||||||
|
|
||||||
// get free boundary shapes
|
// get free boundary shapes
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06030008
|
|
||||||
ShapeAnalysis_FreeBounds anAnalizer(aShape, Standard_False,
|
ShapeAnalysis_FreeBounds anAnalizer(aShape, Standard_False,
|
||||||
Standard_True, Standard_True);
|
Standard_True, Standard_True);
|
||||||
#else
|
|
||||||
ShapeAnalysis_FreeBounds anAnalizer(aShape);
|
|
||||||
#endif
|
|
||||||
TopoDS_Compound aClosed = anAnalizer.GetClosedWires();
|
TopoDS_Compound aClosed = anAnalizer.GetClosedWires();
|
||||||
TopoDS_Compound anOpen = anAnalizer.GetOpenWires();
|
TopoDS_Compound anOpen = anAnalizer.GetOpenWires();
|
||||||
|
|
||||||
@ -985,9 +963,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ChangeOrientation (Handle(GEOM_
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1054,9 +1030,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::ChangeOrientationCopy (Handle(G
|
|||||||
|
|
||||||
// Compute the result
|
// Compute the result
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1113,9 +1087,7 @@ Handle(GEOM_Object) GEOMImpl_IHealingOperations::LimitTolerance (Handle(GEOM_Obj
|
|||||||
|
|
||||||
// Compute
|
// Compute
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -79,12 +79,8 @@
|
|||||||
#include <BRepTools.hxx>
|
#include <BRepTools.hxx>
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#include <TColStd_HArray1OfReal.hxx>
|
#include <TColStd_HArray1OfReal.hxx>
|
||||||
#else
|
|
||||||
#include <TDataStd_HArray1OfByte.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
|
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
|
||||||
@ -154,9 +150,7 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::MakeCopy (Handle(GEOM_Object) th
|
|||||||
|
|
||||||
//Compute the Copy value
|
//Compute the Copy value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -217,9 +211,7 @@ void GEOMImpl_IInsertOperations::Export
|
|||||||
|
|
||||||
//Perform the Export
|
//Perform the Export
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Not enough space on disk, or you haven't permissions to write this directory");
|
SetErrorCode("Not enough space on disk, or you haven't permissions to write this directory");
|
||||||
return;
|
return;
|
||||||
@ -280,9 +272,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IInsertOperations::Import
|
|||||||
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
|
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -659,11 +649,7 @@ int GEOMImpl_IInsertOperations::LoadTexture(const TCollection_AsciiString& theTe
|
|||||||
|
|
||||||
if (theTextureFile.IsEmpty()) return 0;
|
if (theTextureFile.IsEmpty()) return 0;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture;
|
Handle(TColStd_HArray1OfByte) aTexture;
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) aTexture;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FILE* fp = fopen(theTextureFile.ToCString(), "r");
|
FILE* fp = fopen(theTextureFile.ToCString(), "r");
|
||||||
if (!fp) return 0;
|
if (!fp) return 0;
|
||||||
@ -705,11 +691,7 @@ int GEOMImpl_IInsertOperations::LoadTexture(const TCollection_AsciiString& theTe
|
|||||||
if (bytedata.empty() || bytedata.size() != lines.size()*lenbytes)
|
if (bytedata.empty() || bytedata.size() != lines.size()*lenbytes)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
aTexture = new TColStd_HArray1OfByte (1, lines.size()*lenbytes);
|
aTexture = new TColStd_HArray1OfByte (1, lines.size()*lenbytes);
|
||||||
#else
|
|
||||||
aTexture = new TDataStd_HArray1OfByte (1, lines.size()*lenbytes);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::list<unsigned char>::iterator bdit;
|
std::list<unsigned char>::iterator bdit;
|
||||||
int i;
|
int i;
|
||||||
@ -722,11 +704,7 @@ int GEOMImpl_IInsertOperations::LoadTexture(const TCollection_AsciiString& theTe
|
|||||||
}
|
}
|
||||||
|
|
||||||
int GEOMImpl_IInsertOperations::AddTexture(int theWidth, int theHeight,
|
int GEOMImpl_IInsertOperations::AddTexture(int theWidth, int theHeight,
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
const Handle(TColStd_HArray1OfByte)& theTexture)
|
const Handle(TColStd_HArray1OfByte)& theTexture)
|
||||||
#else
|
|
||||||
const Handle(TDataStd_HArray1OfByte)& theTexture)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
SetErrorCode(KO);
|
SetErrorCode(KO);
|
||||||
int aTextureId = GetEngine()->addTexture(GetDocID(), theWidth, theHeight, theTexture);
|
int aTextureId = GetEngine()->addTexture(GetDocID(), theWidth, theHeight, theTexture);
|
||||||
@ -734,20 +712,12 @@ int GEOMImpl_IInsertOperations::AddTexture(int theWidth, int theHeight,
|
|||||||
return aTextureId;
|
return aTextureId;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) GEOMImpl_IInsertOperations::GetTexture(int theTextureId,
|
Handle(TColStd_HArray1OfByte) GEOMImpl_IInsertOperations::GetTexture(int theTextureId,
|
||||||
#else
|
int& theWidth, int& theHeight)
|
||||||
Handle(TDataStd_HArray1OfByte) GEOMImpl_IInsertOperations::GetTexture(int theTextureId,
|
|
||||||
#endif
|
|
||||||
int& theWidth, int& theHeight)
|
|
||||||
{
|
{
|
||||||
SetErrorCode(KO);
|
SetErrorCode(KO);
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture;
|
Handle(TColStd_HArray1OfByte) aTexture;
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) aTexture;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
theWidth = theHeight = 0;
|
theWidth = theHeight = 0;
|
||||||
TCollection_AsciiString aFileName;
|
TCollection_AsciiString aFileName;
|
||||||
|
@ -45,11 +45,7 @@ class GEOMImpl_IShapesOperations;
|
|||||||
class GEOMImpl_IGroupOperations;
|
class GEOMImpl_IGroupOperations;
|
||||||
class GEOMImpl_IFieldOperations;
|
class GEOMImpl_IFieldOperations;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
class Handle_TColStd_HArray1OfByte;
|
class Handle_TColStd_HArray1OfByte;
|
||||||
#else
|
|
||||||
class Handle_TDataStd_HArray1OfByte;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace XAO {
|
namespace XAO {
|
||||||
class Geometry;
|
class Geometry;
|
||||||
@ -95,18 +91,10 @@ class GEOMImpl_IInsertOperations : public GEOM_IOperations {
|
|||||||
Standard_EXPORT int LoadTexture(const TCollection_AsciiString& theTextureFile);
|
Standard_EXPORT int LoadTexture(const TCollection_AsciiString& theTextureFile);
|
||||||
|
|
||||||
Standard_EXPORT int AddTexture(int theWidth, int theHeight,
|
Standard_EXPORT int AddTexture(int theWidth, int theHeight,
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
const Handle(TColStd_HArray1OfByte)& theTexture);
|
const Handle(TColStd_HArray1OfByte)& theTexture);
|
||||||
#else
|
|
||||||
const Handle(TDataStd_HArray1OfByte)& theTexture);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Standard_EXPORT Handle(TColStd_HArray1OfByte) GetTexture(int theTextureId,
|
Standard_EXPORT Handle(TColStd_HArray1OfByte) GetTexture(int theTextureId,
|
||||||
#else
|
int& theWidth, int& theHeight);
|
||||||
Standard_EXPORT Handle(TDataStd_HArray1OfByte) GetTexture(int theTextureId,
|
|
||||||
#endif
|
|
||||||
int& theWidth, int& theHeight);
|
|
||||||
|
|
||||||
Standard_EXPORT std::list<int> GetAllTextures();
|
Standard_EXPORT std::list<int> GetAllTextures();
|
||||||
|
|
||||||
|
@ -116,9 +116,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletAll
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -177,9 +175,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletEdges
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -247,9 +243,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletEdgesR1R2
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -317,9 +311,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletFaces
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -387,9 +379,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFilletFacesR1R2
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -456,9 +446,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFillet2D
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("2D Fillet driver failed");
|
SetErrorCode("2D Fillet driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -527,9 +515,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeFillet1D
|
|||||||
|
|
||||||
//Compute the Fillet value
|
//Compute the Fillet value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("1D Fillet driver failed");
|
SetErrorCode("1D Fillet driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -588,9 +574,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferAll (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -645,9 +629,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdge
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -703,9 +685,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdgeAD
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -766,9 +746,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferFaces
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -837,9 +815,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferFacesAD
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -909,9 +885,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdges
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -981,9 +955,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdgesAD
|
|||||||
|
|
||||||
//Compute the Chamfer value
|
//Compute the Chamfer value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1045,9 +1017,7 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeArchimede (Handle(GEOM_Object
|
|||||||
|
|
||||||
//Compute the Archimede value
|
//Compute the Archimede value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
|
@ -742,9 +742,7 @@ void GEOMImpl_IMeasureOperations::GetPosition
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
|
|
||||||
gp_Ax3 anAx3 = GEOMUtils::GetPosition(aShape);
|
gp_Ax3 anAx3 = GEOMUtils::GetPosition(aShape);
|
||||||
|
|
||||||
@ -798,9 +796,7 @@ Handle(GEOM_Object) GEOMImpl_IMeasureOperations::GetCentreOfMass
|
|||||||
|
|
||||||
//Compute the CentreOfMass value
|
//Compute the CentreOfMass value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -852,9 +848,7 @@ Handle(GEOM_Object) GEOMImpl_IMeasureOperations::GetVertexByIndex
|
|||||||
|
|
||||||
//Compute
|
//Compute
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Vertex by index driver failed.");
|
SetErrorCode("Vertex by index driver failed.");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -911,9 +905,7 @@ Handle(GEOM_Object) GEOMImpl_IMeasureOperations::GetNormal
|
|||||||
|
|
||||||
//Compute the Normale value
|
//Compute the Normale value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Measure driver failed to compute normake of face");
|
SetErrorCode("Measure driver failed to compute normake of face");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -963,9 +955,7 @@ 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_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
BRepGProp::LinearProperties(aShape, LProps);
|
BRepGProp::LinearProperties(aShape, LProps);
|
||||||
theLength = LProps.Mass();
|
theLength = LProps.Mass();
|
||||||
|
|
||||||
@ -1019,9 +1009,7 @@ void GEOMImpl_IMeasureOperations::GetInertia
|
|||||||
GProp_GProps System;
|
GProp_GProps System;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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) {
|
||||||
@ -1087,9 +1075,7 @@ void GEOMImpl_IMeasureOperations::GetBoundingBox
|
|||||||
Bnd_Box B;
|
Bnd_Box B;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
BRepBuilderAPI_Copy aCopyTool (aShape);
|
BRepBuilderAPI_Copy aCopyTool (aShape);
|
||||||
if (!aCopyTool.IsDone()) {
|
if (!aCopyTool.IsDone()) {
|
||||||
SetErrorCode("GetBoundingBox Error: Bad shape detected");
|
SetErrorCode("GetBoundingBox Error: Bad shape detected");
|
||||||
@ -1155,9 +1141,7 @@ Handle(GEOM_Object) GEOMImpl_IMeasureOperations::GetBoundingBox
|
|||||||
|
|
||||||
//Compute the BoundingBox value
|
//Compute the BoundingBox value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Measure driver failed to compute a bounding box");
|
SetErrorCode("Measure driver failed to compute a bounding box");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1214,9 +1198,7 @@ void GEOMImpl_IMeasureOperations::GetTolerance
|
|||||||
FaceMax = EdgeMax = VertMax = -RealLast();
|
FaceMax = EdgeMax = VertMax = -RealLast();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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);
|
||||||
@ -1277,9 +1259,7 @@ 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_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
BRepCheck_Analyzer ana (aShape, theIsCheckGeom);
|
BRepCheck_Analyzer ana (aShape, theIsCheckGeom);
|
||||||
if (ana.IsValid()) {
|
if (ana.IsValid()) {
|
||||||
isValid = true;
|
isValid = true;
|
||||||
@ -1673,9 +1653,7 @@ 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_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1868,9 +1846,7 @@ GEOMImpl_IMeasureOperations::GetMinDistance (Handle(GEOM_Object) theShape1,
|
|||||||
|
|
||||||
//Compute the parameters
|
//Compute the parameters
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
|
|
||||||
gp_Pnt aPnt1, aPnt2;
|
gp_Pnt aPnt1, aPnt2;
|
||||||
|
|
||||||
@ -1920,9 +1896,7 @@ Standard_Integer GEOMImpl_IMeasureOperations::ClosestPoints (Handle(GEOM_Object)
|
|||||||
|
|
||||||
// Compute the extremities
|
// Compute the extremities
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
|
|
||||||
// skl 30.06.2008
|
// skl 30.06.2008
|
||||||
// additional workaround for bugs 19899, 19908 and 19910 from Mantis
|
// additional workaround for bugs 19899, 19908 and 19910 from Mantis
|
||||||
@ -1996,9 +1970,7 @@ void GEOMImpl_IMeasureOperations::PointCoordinates (Handle(GEOM_Object) theShape
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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();
|
||||||
@ -2048,9 +2020,7 @@ Standard_Real GEOMImpl_IMeasureOperations::GetAngle (Handle(GEOM_Object) theLine
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Edge E1 = TopoDS::Edge(aLine1);
|
TopoDS_Edge E1 = TopoDS::Edge(aLine1);
|
||||||
TopoDS_Edge E2 = TopoDS::Edge(aLine2);
|
TopoDS_Edge E2 = TopoDS::Edge(aLine2);
|
||||||
|
|
||||||
@ -2126,9 +2096,7 @@ Standard_Real GEOMImpl_IMeasureOperations::GetAngleBtwVectors (Handle(GEOM_Objec
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Edge aE1 = TopoDS::Edge(aVec1);
|
TopoDS_Edge aE1 = TopoDS::Edge(aVec1);
|
||||||
TopoDS_Edge aE2 = TopoDS::Edge(aVec2);
|
TopoDS_Edge aE2 = TopoDS::Edge(aVec2);
|
||||||
|
|
||||||
@ -2188,9 +2156,7 @@ Standard_Real GEOMImpl_IMeasureOperations::CurveCurvatureByParam
|
|||||||
|
|
||||||
//Compute curvature
|
//Compute curvature
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
GeomLProp_CLProps Prop = GeomLProp_CLProps
|
GeomLProp_CLProps Prop = GeomLProp_CLProps
|
||||||
(aCurve, aP, 2, Precision::Confusion());
|
(aCurve, aP, 2, Precision::Confusion());
|
||||||
aRes = fabs(Prop.Curvature());
|
aRes = fabs(Prop.Curvature());
|
||||||
@ -2242,9 +2208,7 @@ Standard_Real GEOMImpl_IMeasureOperations::CurveCurvatureByPoint
|
|||||||
|
|
||||||
//Compute curvature
|
//Compute curvature
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
GeomAPI_ProjectPointOnCurve PPCurve(aPoint, aCurve, aFP, aLP);
|
GeomAPI_ProjectPointOnCurve PPCurve(aPoint, aCurve, aFP, aLP);
|
||||||
if(PPCurve.NbPoints()>0) {
|
if(PPCurve.NbPoints()>0) {
|
||||||
GeomLProp_CLProps Prop = GeomLProp_CLProps
|
GeomLProp_CLProps Prop = GeomLProp_CLProps
|
||||||
@ -2285,9 +2249,7 @@ Standard_Real GEOMImpl_IMeasureOperations::getSurfaceCurvatures
|
|||||||
if (aSurf.IsNull()) return aRes;
|
if (aSurf.IsNull()) return aRes;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
GeomLProp_SLProps Prop = GeomLProp_SLProps
|
GeomLProp_SLProps Prop = GeomLProp_SLProps
|
||||||
(aSurf, theUParam, theVParam, 2, Precision::Confusion());
|
(aSurf, theUParam, theVParam, 2, Precision::Confusion());
|
||||||
if(Prop.IsCurvatureDefined()) {
|
if(Prop.IsCurvatureDefined()) {
|
||||||
|
@ -197,9 +197,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeEdge
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -258,9 +256,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeEdgeOnCurveByLength
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -316,9 +312,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeEdgeWire
|
|||||||
|
|
||||||
//Compute the Edge value
|
//Compute the Edge value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -392,9 +386,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeWire
|
|||||||
|
|
||||||
//Compute the shape
|
//Compute the shape
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -459,9 +451,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeFace (Handle(GEOM_Object) th
|
|||||||
//Compute the Face value
|
//Compute the Face value
|
||||||
Standard_Boolean isWarning = Standard_False;
|
Standard_Boolean isWarning = Standard_False;
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -530,9 +520,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeFaceWires
|
|||||||
//Compute the shape
|
//Compute the shape
|
||||||
Standard_Boolean isWarning = Standard_False;
|
Standard_Boolean isWarning = Standard_False;
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -643,9 +631,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeShape
|
|||||||
|
|
||||||
//Compute the shape
|
//Compute the shape
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -712,9 +698,7 @@ 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_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -869,9 +853,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeGlueFacesByList
|
|||||||
//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_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -944,9 +926,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeGlueEdges
|
|||||||
//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_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed to glue edges");
|
SetErrorCode("Shape driver failed to glue edges");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1107,9 +1087,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeGlueEdgesByList
|
|||||||
//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_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Shape driver failed to glue edges");
|
SetErrorCode("Shape driver failed to glue edges");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1787,9 +1765,7 @@ Standard_Integer GEOMImpl_IShapesOperations::NumberOfSubShapes
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1859,9 +1835,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::ReverseShape(Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the sub-shape value
|
//Compute the sub-shape value
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2670,9 +2644,7 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
// Compute tolerance
|
// Compute tolerance
|
||||||
Standard_Real T, VertMax = -RealLast();
|
Standard_Real T, VertMax = -RealLast();
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
for (TopExp_Explorer ExV (theShape, TopAbs_VERTEX); ExV.More(); ExV.Next()) {
|
for (TopExp_Explorer ExV (theShape, TopAbs_VERTEX); ExV.More(); ExV.Next()) {
|
||||||
TopoDS_Vertex Vertex = TopoDS::Vertex(ExV.Current());
|
TopoDS_Vertex Vertex = TopoDS::Vertex(ExV.Current());
|
||||||
T = BRep_Tool::Tolerance(Vertex);
|
T = BRep_Tool::Tolerance(Vertex);
|
||||||
|
@ -129,9 +129,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateTwoPoints
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -182,9 +180,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateDXDYDZ
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -238,9 +234,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateTwoPointsCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -293,9 +287,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateDXDYDZCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -348,9 +340,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateVector
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -401,9 +391,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateVectorCopy
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -462,9 +450,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TranslateVectorDistance
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -525,9 +511,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Translate1D
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -590,9 +574,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Translate2D (Handle(GEOM_Obje
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -788,9 +770,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPlane
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -841,9 +821,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPlaneCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -895,9 +873,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPoint
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -948,9 +924,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorPointCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1002,9 +976,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorAxis
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1055,9 +1027,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::MirrorAxisCopy
|
|||||||
|
|
||||||
//Compute the mirror
|
//Compute the mirror
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1107,9 +1077,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::OffsetShape
|
|||||||
|
|
||||||
//Compute the offset
|
//Compute the offset
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1161,9 +1129,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::OffsetShapeCopy
|
|||||||
|
|
||||||
//Compute the offset
|
//Compute the offset
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1215,9 +1181,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ProjectShapeCopy
|
|||||||
|
|
||||||
//Compute the Projection
|
//Compute the Projection
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Projection driver failed");
|
SetErrorCode("Projection driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1281,9 +1245,7 @@ Standard_Real GEOMImpl_ITransformOperations::ProjectPointOnWire
|
|||||||
|
|
||||||
//Compute the Projection
|
//Compute the Projection
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Projection driver failed");
|
SetErrorCode("Projection driver failed");
|
||||||
return aResult;
|
return aResult;
|
||||||
@ -1345,9 +1307,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ScaleShape
|
|||||||
|
|
||||||
//Compute the scale
|
//Compute the scale
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1406,9 +1366,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ScaleShapeCopy
|
|||||||
|
|
||||||
//Compute the scale
|
//Compute the scale
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1477,9 +1435,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::ScaleShapeAlongAxes (Handle(G
|
|||||||
|
|
||||||
//Compute the scale
|
//Compute the scale
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1542,9 +1498,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShape
|
|||||||
|
|
||||||
//Compute the Position
|
//Compute the Position
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1601,9 +1555,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShapeCopy
|
|||||||
|
|
||||||
//Compute the position
|
//Compute the position
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1663,9 +1615,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionAlongPath
|
|||||||
|
|
||||||
//Compute the position
|
//Compute the position
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1726,9 +1676,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate (Handle(GEOM_Object) t
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1781,9 +1729,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::RotateCopy (Handle(GEOM_Objec
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1837,9 +1783,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate1D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1898,9 +1842,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate1D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -1962,9 +1904,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate2D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2028,9 +1968,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::Rotate2D (Handle(GEOM_Object)
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2091,9 +2029,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::RotateThreePoints (Handle(GEO
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2148,9 +2084,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::RotateThreePointsCopy (Handle
|
|||||||
|
|
||||||
//Compute the translation
|
//Compute the translation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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;
|
||||||
@ -2294,9 +2228,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::TransformLikeOtherCopy
|
|||||||
|
|
||||||
// Compute the transformation
|
// Compute the transformation
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
if (!GetSolver()->ComputeFunction(aFunction)) {
|
if (!GetSolver()->ComputeFunction(aFunction)) {
|
||||||
SetErrorCode("Driver failed");
|
SetErrorCode("Driver failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -50,9 +50,7 @@
|
|||||||
#include <BRepOffsetAPI_MakePipe.hxx>
|
#include <BRepOffsetAPI_MakePipe.hxx>
|
||||||
#include <BRepOffsetAPI_MakePipeShell.hxx>
|
#include <BRepOffsetAPI_MakePipeShell.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
#include <BRepOffsetAPI_MiddlePath.hxx>
|
#include <BRepOffsetAPI_MiddlePath.hxx>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <TopAbs.hxx>
|
#include <TopAbs.hxx>
|
||||||
#include <TopExp.hxx>
|
#include <TopExp.hxx>
|
||||||
@ -145,15 +143,11 @@ Standard_Integer GEOMImpl_PipePathDriver::Execute (TFunction_Logbook& log) const
|
|||||||
if (aShape.IsNull() || aBase1.IsNull() || aBase2.IsNull())
|
if (aShape.IsNull() || aBase1.IsNull() || aBase2.IsNull())
|
||||||
Standard_NullObject::Raise("RestorePath aborted : null argument");
|
Standard_NullObject::Raise("RestorePath aborted : null argument");
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
BRepOffsetAPI_MiddlePath aMPB (aShape, aBase1, aBase2);
|
BRepOffsetAPI_MiddlePath aMPB (aShape, aBase1, aBase2);
|
||||||
aMPB.Build();
|
aMPB.Build();
|
||||||
if (aMPB.IsDone()) {
|
if (aMPB.IsDone()) {
|
||||||
aRes = aMPB.Shape();
|
aRes = aMPB.Shape();
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
Standard_NullObject::Raise("RestorePath is not implemented in used OCCT version");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else if (aType == PIPE_PATH_TWO_SEQS) {
|
else if (aType == PIPE_PATH_TWO_SEQS) {
|
||||||
GEOMImpl_IPipePath aPI (aFunction);
|
GEOMImpl_IPipePath aPI (aFunction);
|
||||||
@ -181,15 +175,11 @@ Standard_Integer GEOMImpl_PipePathDriver::Execute (TFunction_Logbook& log) const
|
|||||||
if (aShape.IsNull() || aBase1.IsNull() || aBase2.IsNull())
|
if (aShape.IsNull() || aBase1.IsNull() || aBase2.IsNull())
|
||||||
Standard_NullObject::Raise("RestorePath aborted : null argument");
|
Standard_NullObject::Raise("RestorePath aborted : null argument");
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06050300
|
|
||||||
BRepOffsetAPI_MiddlePath aMPB (aShape, aBase1, aBase2);
|
BRepOffsetAPI_MiddlePath aMPB (aShape, aBase1, aBase2);
|
||||||
aMPB.Build();
|
aMPB.Build();
|
||||||
if (aMPB.IsDone()) {
|
if (aMPB.IsDone()) {
|
||||||
aRes = aMPB.Shape();
|
aRes = aMPB.Shape();
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
Standard_NullObject::Raise("RestorePath is not implemented in used OCCT version");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
}
|
}
|
||||||
|
@ -127,12 +127,8 @@ Standard_Integer GEOMImpl_PlaneDriver::Execute(TFunction_Logbook& log) const
|
|||||||
if (gp_Vec(aP1, aP2).IsParallel(gp_Vec(aP1, aP3), Precision::Angular()))
|
if (gp_Vec(aP1, aP2).IsParallel(gp_Vec(aP1, aP3), Precision::Angular()))
|
||||||
Standard_ConstructionError::Raise("Plane creation aborted: points lay on one line");
|
Standard_ConstructionError::Raise("Plane creation aborted: points lay on one line");
|
||||||
GC_MakePlane aMakePlane (aP1, aP2, aP3);
|
GC_MakePlane aMakePlane (aP1, aP2, aP3);
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
aShape = BRepBuilderAPI_MakeFace(aMakePlane, -aSize, +aSize, -aSize, +aSize,
|
aShape = BRepBuilderAPI_MakeFace(aMakePlane, -aSize, +aSize, -aSize, +aSize,
|
||||||
Precision::Confusion()).Shape();
|
Precision::Confusion()).Shape();
|
||||||
#else
|
|
||||||
aShape = BRepBuilderAPI_MakeFace(aMakePlane, -aSize, +aSize, -aSize, +aSize).Shape();
|
|
||||||
#endif
|
|
||||||
} else if (aType == PLANE_FACE) {
|
} else if (aType == PLANE_FACE) {
|
||||||
Handle(GEOM_Function) aRef = aPI.GetFace();
|
Handle(GEOM_Function) aRef = aPI.GetFace();
|
||||||
TopoDS_Shape aRefShape = aRef->GetValue();
|
TopoDS_Shape aRefShape = aRef->GetValue();
|
||||||
|
@ -95,12 +95,7 @@
|
|||||||
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
#include <AIS_ListIteratorOfListOfInteractive.hxx>
|
||||||
#include <AIS_ListOfInteractive.hxx>
|
#include <AIS_ListOfInteractive.hxx>
|
||||||
|
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#else
|
|
||||||
#include <Graphic3d_HArray1OfBytes.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// QT Includes
|
// QT Includes
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
@ -340,11 +340,7 @@ void GEOMToolsGUI_MarkerDlg::addTexture( int id, bool select ) const
|
|||||||
if ( id > 0 && myCustomTypeCombo->index( id ) == -1 ) {
|
if ( id > 0 && myCustomTypeCombo->index( id ) == -1 ) {
|
||||||
int tWidth, tHeight;
|
int tWidth, tHeight;
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) texture = GeometryGUI::getTexture(getStudy(), id, tWidth, tHeight);
|
Handle(TColStd_HArray1OfByte) texture = GeometryGUI::getTexture(getStudy(), id, tWidth, tHeight);
|
||||||
#else
|
|
||||||
Handle(Graphic3d_HArray1OfBytes) texture = GeometryGUI::getTexture(getStudy(), id, tWidth, tHeight);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( !texture.IsNull() && texture->Length() == tWidth*tHeight/8 ) {
|
if ( !texture.IsNull() && texture->Length() == tWidth*tHeight/8 ) {
|
||||||
QImage image( tWidth, tHeight, QImage::Format_Mono );
|
QImage image( tWidth, tHeight, QImage::Format_Mono );
|
||||||
|
@ -39,11 +39,7 @@
|
|||||||
|
|
||||||
#include <TColStd_HSequenceOfAsciiString.hxx>
|
#include <TColStd_HSequenceOfAsciiString.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
#else
|
|
||||||
#include <TDataStd_HArray1OfByte.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
@ -306,18 +302,10 @@ CORBA::Long GEOM_IInsertOperations_i::AddTexture(CORBA::Long theWidth, CORBA::Lo
|
|||||||
{
|
{
|
||||||
GetOperations()->SetNotDone();
|
GetOperations()->SetNotDone();
|
||||||
|
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTexture;
|
Handle(TColStd_HArray1OfByte) aTexture;
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) aTexture;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( theTexture.length() > 0 ) {
|
if ( theTexture.length() > 0 ) {
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
aTexture = new TColStd_HArray1OfByte (1, theTexture.length());
|
aTexture = new TColStd_HArray1OfByte (1, theTexture.length());
|
||||||
#else
|
|
||||||
aTexture = new TDataStd_HArray1OfByte (1, theTexture.length());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for ( int i = 0; i < theTexture.length(); i++ )
|
for ( int i = 0; i < theTexture.length(); i++ )
|
||||||
aTexture->SetValue( i+1, (Standard_Byte)theTexture[i] );
|
aTexture->SetValue( i+1, (Standard_Byte)theTexture[i] );
|
||||||
@ -335,11 +323,7 @@ SALOMEDS::TMPFile* GEOM_IInsertOperations_i::GetTexture(CORBA::Long theID,
|
|||||||
CORBA::Long& theHeight)
|
CORBA::Long& theHeight)
|
||||||
{
|
{
|
||||||
int aWidth, aHeight;
|
int aWidth, aHeight;
|
||||||
#if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
|
|
||||||
Handle(TColStd_HArray1OfByte) aTextureImpl =
|
Handle(TColStd_HArray1OfByte) aTextureImpl =
|
||||||
#else
|
|
||||||
Handle(TDataStd_HArray1OfByte) aTextureImpl =
|
|
||||||
#endif
|
|
||||||
GetOperations()->GetTexture(theID, aWidth, aHeight);
|
GetOperations()->GetTexture(theID, aWidth, aHeight);
|
||||||
theWidth = aWidth;
|
theWidth = aWidth;
|
||||||
theHeight = aHeight;
|
theHeight = aHeight;
|
||||||
|
@ -313,9 +313,7 @@ SALOME_Prs* MeasureGUI_AngleDlg::buildPrs()
|
|||||||
|
|
||||||
if (anAngle > Precision::Angular()) {
|
if (anAngle > Precision::Angular()) {
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
#endif
|
|
||||||
TopoDS_Shape S1, S2;
|
TopoDS_Shape S1, S2;
|
||||||
if (GEOMBase::GetShape(myObj , S1, TopAbs_EDGE) &&
|
if (GEOMBase::GetShape(myObj , S1, TopAbs_EDGE) &&
|
||||||
GEOMBase::GetShape(myObj2, S2, TopAbs_EDGE)) {
|
GEOMBase::GetShape(myObj2, S2, TopAbs_EDGE)) {
|
||||||
|
@ -360,9 +360,7 @@ extern "C"
|
|||||||
Interface_Static::SetIVal("read.step.nonmanifold", 1);
|
Interface_Static::SetIVal("read.step.nonmanifold", 1);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#if OCC_VERSION_LARGE > 0x06010000
|
|
||||||
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) {
|
||||||
TColStd_SequenceOfAsciiString anUnitLengthNames;
|
TColStd_SequenceOfAsciiString anUnitLengthNames;
|
||||||
|
@ -336,11 +336,7 @@ Standard_Boolean ShHealOper_FillHoles::addFace(const Handle(Geom_Surface)& theSu
|
|||||||
const Handle(TColStd_HArray1OfInteger)& theOrders,
|
const Handle(TColStd_HArray1OfInteger)& theOrders,
|
||||||
const Handle(TColStd_HArray1OfInteger)& theSenses)
|
const Handle(TColStd_HArray1OfInteger)& theSenses)
|
||||||
{
|
{
|
||||||
#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version
|
|
||||||
BRepBuilderAPI_MakeFace aMakeFace (theSurf, Precision::Confusion());
|
BRepBuilderAPI_MakeFace aMakeFace (theSurf, Precision::Confusion());
|
||||||
#else
|
|
||||||
BRepBuilderAPI_MakeFace aMakeFace (theSurf);
|
|
||||||
#endif
|
|
||||||
TopoDS_Face aFace = aMakeFace.Face();
|
TopoDS_Face aFace = aMakeFace.Face();
|
||||||
aFace.EmptyCopy();
|
aFace.EmptyCopy();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user