Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided with OCCT 7.0. See https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form and https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019 for why this is necessary for OCCT >= 7.1
This commit is contained in:
@@ -135,7 +135,7 @@ bool FaceMakerCheese::isInside(const TopoDS_Wire& wire1, const TopoDS_Wire& wire
|
||||
TopoDS_Face face = validateFace(mkFace.Face());
|
||||
BRepAdaptor_Surface adapt(face);
|
||||
IntTools_FClass2d class2d(face, prec);
|
||||
Handle_Geom_Surface surf = new Geom_Plane(adapt.Plane());
|
||||
Handle(Geom_Surface) surf = new Geom_Plane(adapt.Plane());
|
||||
ShapeAnalysis_Surface as(surf);
|
||||
|
||||
TopExp_Explorer xp(wire2,TopAbs_VERTEX);
|
||||
@@ -257,7 +257,7 @@ void FaceMakerCheese::Build_Essence()
|
||||
{
|
||||
TopoDS_Shape faces = makeFace(this->myWires);
|
||||
ShapeExtend_Explorer xp;
|
||||
Handle_TopTools_HSequenceOfShape seq = xp.SeqFromCompound(faces, Standard_True);
|
||||
Handle(TopTools_HSequenceOfShape) seq = xp.SeqFromCompound(faces, Standard_True);
|
||||
for(int i = 0 ; i < seq->Length() ; i++){
|
||||
this->myShapesToReturn.push_back(seq->Value(i+1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user