//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
bool FiltersPlugin_ExternalFaces::isOk(const GeomShapePtr& theShape,
const ResultPtr& theResult,
bool FiltersPlugin_ExternalFaces::isOk(const GeomShapePtr& theShape,
const ResultPtr& theResult,
ResultBodyPtr anOwner = ModelAPI_Tools::bodyOwner(theResult, true);
if (!anOwner) {
anOwner = std::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
ResultBodyPtr anOwner = ModelAPI_Tools::bodyOwner(theResult, true);
if (!anOwner) {
anOwner = std::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
TopTools_IndexedDataMapOfShapeListOfShape aMapFS;
TopExp::MapShapesAndUniqueAncestors(anOwnerShape->impl<TopoDS_Shape>(),
TopAbs_FACE, TopAbs_SOLID, aMapFS);
TopTools_IndexedDataMapOfShapeListOfShape aMapFS;
TopExp::MapShapesAndUniqueAncestors(anOwnerShape->impl<TopoDS_Shape>(),
TopAbs_FACE, TopAbs_SOLID, aMapFS);