mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029827: Modeling Data - TopoDS_Shape::Nullify() does not reset location
TopoDS_Shape::Nullify() nullify not only myTShape but myLocation and myOrient. Nullified shapes are equal and same now. Added test.
This commit is contained in:
@@ -1327,11 +1327,6 @@ static Standard_Integer compareshapes(Draw_Interpretor& di,
|
||||
// get shapes
|
||||
TopoDS_Shape aS1 = DBRep::Get(a[1]);
|
||||
TopoDS_Shape aS2 = DBRep::Get(a[2]);
|
||||
// check shapes
|
||||
if (aS1.IsNull() || aS2.IsNull()) {
|
||||
di << "null shapes\n";
|
||||
return 0;
|
||||
}
|
||||
// compare shapes
|
||||
if (aS1.IsSame(aS2)) {
|
||||
di << "same shapes\n";
|
||||
|
Reference in New Issue
Block a user