mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Bug #297 Fix IsSubShape method in ShapeTool
Pick a part of commit for 0029599
This commit is contained in:
@@ -1043,10 +1043,13 @@ Standard_Boolean XCAFDoc_ShapeTool::IsSubShape (const TDF_Label &shapeL,
|
||||
{
|
||||
Handle(XCAFDoc_ShapeMapTool) A;
|
||||
if (!shapeL.FindAttribute(XCAFDoc_ShapeMapTool::GetID(), A))
|
||||
{
|
||||
TopoDS_Shape aShape = GetShape(shapeL);
|
||||
if (aShape.IsNull())
|
||||
return Standard_False;
|
||||
|
||||
//TopoDS_Shape S = GetShape ( shapeL );
|
||||
//return ! S.IsNull() && CheckSubShape ( S, sub );
|
||||
A = XCAFDoc_ShapeMapTool::Set(shapeL);
|
||||
A->SetShape(aShape);
|
||||
}
|
||||
|
||||
return A->IsSubShape(sub);
|
||||
}
|
||||
|
Reference in New Issue
Block a user