removed references to OCC<7
This commit is contained in:
@@ -51,9 +51,7 @@ short Section::mustExecute() const
|
||||
BRepAlgoAPI_BooleanOperation* Section::makeOperation(const TopoDS_Shape& base, const TopoDS_Shape& tool) const
|
||||
{
|
||||
// Let's call algorithm computing a section operation:
|
||||
#if OCC_VERSION_HEX < 0x060900
|
||||
return new BRepAlgoAPI_Section(base, tool);
|
||||
#else
|
||||
|
||||
bool approx = Approximation.getValue();
|
||||
std::unique_ptr<BRepAlgoAPI_Section> mkSection(new BRepAlgoAPI_Section());
|
||||
mkSection->Init1(base);
|
||||
@@ -63,5 +61,4 @@ BRepAlgoAPI_BooleanOperation* Section::makeOperation(const TopoDS_Shape& base, c
|
||||
if (!mkSection->IsDone())
|
||||
throw Base::RuntimeError("Section failed");
|
||||
return mkSection.release();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user