porting to gcc 3.4.1 and OCC 5.2.3: do not use copy constructor in TCollection classes
BRepOffsetAPI_MakeFilling MF;
Standard_Integer nbEdges = 0;
- BRepTools_WireExplorer aWE (theWire);
- for (; aWE.More(); aWE.Next(), nbEdges++) {
- MF.Add(TopoDS::Edge(aWE.Current()), GeomAbs_C0);
+ BRepTools_WireExplorer* aWE = new BRepTools_WireExplorer (theWire);
+ for (; aWE->More(); aWE->Next(), nbEdges++) {
+ MF.Add(TopoDS::Edge(aWE->Current()), GeomAbs_C0);
}
MF.Build();
Standard_Real aTol = MF.G0Error();
TColgp_Array1OfPnt aPnts (1,nbEdges); // points of the given wire
- aWE = BRepTools_WireExplorer(theWire);
+ aWE = new BRepTools_WireExplorer(theWire);
Standard_Integer vi = 1;
- for (; aWE.More() && vi <= nbEdges; aWE.Next(), vi++) {
- aPnts(vi) = BRep_Tool::Pnt(TopoDS::Vertex(aWE.CurrentVertex()));
+ for (; aWE->More() && vi <= nbEdges; aWE->Next(), vi++) {
+ aPnts(vi) = BRep_Tool::Pnt(TopoDS::Vertex(aWE->CurrentVertex()));
}
// Find maximum deviation in vertices
}
// build wire in right order, corresponding to edges connexity
- BRepBuilderAPI_MakeWire MW;
+ BRepBuilderAPI_MakeWire* MW;
if (isConnected12)
- MW = BRepBuilderAPI_MakeWire(anEdge1, anEdge2, anEdge3, anEdge4);
+ MW = new BRepBuilderAPI_MakeWire(anEdge1, anEdge2, anEdge3, anEdge4);
else
- MW = BRepBuilderAPI_MakeWire(anEdge1, anEdge3, anEdge2, anEdge4);
+ MW = new BRepBuilderAPI_MakeWire(anEdge1, anEdge3, anEdge2, anEdge4);
- if (!MW.IsDone()) {
+ if (!MW->IsDone()) {
Standard_ConstructionError::Raise
("Impossible to build a connected wire from the given edges");
}
- TopoDS_Wire aWire = MW;
+ TopoDS_Wire aWire = *MW;
+ delete MW;
if (!aWire.Closed()) {
Standard_ConstructionError::Raise
("Impossible to build a closed wire from the given edges");
TopAbs_ShapeEnum styp = theShape.ShapeType();
BRepCheck_ListIteratorOfListOfStatus itl;
if (!theMap.IsBound(theShape)) {
- theMap.Bind(theShape,TopTools_ListOfShape());
+ // mpv: porting to gcc 3.4.1 and OCC 5.2.3
+ //theMap.Bind(theShape,TopTools_ListOfShape());
+ TopTools_ListOfShape empty;
+ theMap.Bind(theShape, empty);
if (!theAna.Result(theShape).IsNull()) {
itl.Initialize(theAna.Result(theShape)->Status());