CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
CXXFLAGS += $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -L$(KERNEL_ROOT_DIR)/lib/salome -L$(GUI_ROOT_DIR)/lib/salome -lDlgRef -lGEOM -lsuit -lOCCViewer -lVTKViewer -lSalomeDS
+LDFLAGS += -L$(KERNEL_ROOT_DIR)/lib/salome -L$(GUI_ROOT_DIR)/lib/salome $(CAS_LDPATH) -lDlgRef -lGEOM -lsuit -lOCCViewer -lVTKViewer -lSalomeDS -lTKPrim
@CONCLUDE@
pd << aNewObject << " = geompy.SuppressHoles(" << theObject << ", [";
// list of wire ids
- int i = theWires->Lower(), nb = theWires->Upper();
- for ( ; i <= nb; i++)
- pd << theWires->Value( i ) << (( i < nb ) ? ", " : "])");
+ if ( theWires.IsNull() )
+ pd << "])";
+ else {
+ int i = theWires->Lower(), nb = theWires->Upper();
+ for ( ; i <= nb; i++)
+ pd << theWires->Value( i ) << (( i < nb ) ? ", " : "])");
+ }
SetErrorCode(OK);
return aNewObject;
#include <BRep_Tool.hxx>
#include <BRep_Builder.hxx>
#include <BRepAlgo_FaceRestrictor.hxx>
-#include <BRepAlgo_Sewing.hxx>
+#include <BRepBuilderAPI_Sewing.hxx>
#include <BRepBuilderAPI_Copy.hxx>
#include <BRepTools_Quilt.hxx>
#include <BRepCheck.hxx>
unsigned int ind, nbshapes = aShapes->Length();
// add faces
- BRepAlgo_Sewing aSewing(Precision::Confusion()*10.0);
+ BRepBuilderAPI_Sewing aSewing(Precision::Confusion()*10.0);
for (ind = 1; ind <= nbshapes; ind++) {
Handle(GEOM_Function) aRefShape = Handle(GEOM_Function)::DownCast(aShapes->Value(ind));
TopoDS_Shape aShape_i = aRefShape->GetValue();
return myDone;
}
//sewing shape
- Handle(BRepAlgo_Sewing) aSewing = new BRepAlgo_Sewing;
+ Handle(BRepBuilderAPI_Sewing) aSewing = new BRepBuilderAPI_Sewing;
aSewing->Load(myInitShape);
aSewing->SetTolerance(myTolerance);
aSewing->SetFaceMode(myFacesMode);
//=======================================================================
Standard_Boolean ShHealOper_Sewing::getModifications(const TopoDS_Shape& theShape,
- const Handle(BRepAlgo_Sewing)& theSewing) const
+ const Handle(BRepBuilderAPI_Sewing)& theSewing) const
{
if((Standard_Integer)theShape.ShapeType() > (Standard_Integer)myHistoryLevel)
return Standard_False;
#include <ShHealOper_Tool.hxx>
#include <TopoDS_Shape.hxx>
#include <TopAbs_ShapeEnum.hxx>
-#include <BRepAlgo_Sewing.hxx>
+#include <BRepBuilderAPI_Sewing.hxx>
#include <TopoDS_Compound.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_SequenceOfShape.hxx>
Standard_Boolean getShells(const TopoDS_Shape& theSewShape) const;
Standard_Boolean getWires(const TopoDS_Shape& theSewShape) const;
Standard_Boolean getModifications(const TopoDS_Shape& theShape,
- const Handle(BRepAlgo_Sewing)& theSewing) const;
+ const Handle(BRepBuilderAPI_Sewing)& theSewing) const;
Standard_Boolean isSewed(const TopoDS_Shape& theShape) const;