1
0
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:
akaftasev
2020-11-10 09:41:23 +03:00
committed by bugmaster
parent 026aec1860
commit 6e01c25ad1
5 changed files with 58 additions and 6 deletions

View File

@@ -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";