mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0028842: Attribute TNaming_NamedShape is not restored from .sgd document
This commit is contained in:
parent
a2a6c87265
commit
68223adbc7
@ -644,6 +644,7 @@ Handle(TopoDS_TShape) ShapePersistent_BRep::pTVertex::createTShape() const
|
||||
aTVertex->Tolerance (myTolerance);
|
||||
aTVertex->Pnt (myPnt);
|
||||
|
||||
if (myPoints)
|
||||
myPoints->Import (aTVertex->ChangePoints());
|
||||
|
||||
return aTVertex;
|
||||
@ -662,6 +663,7 @@ Handle(TopoDS_TShape) ShapePersistent_BRep::pTEdge::createTShape() const
|
||||
aTEdge->SameRange ((myFlags & RangeMask) != 0);
|
||||
aTEdge->Degenerated ((myFlags & DegeneratedMask) != 0);
|
||||
|
||||
if (myCurves)
|
||||
myCurves->Import (aTEdge->ChangeCurves());
|
||||
|
||||
return aTEdge;
|
||||
|
12
tests/xml/data/ocaf/D7
Normal file
12
tests/xml/data/ocaf/D7
Normal file
@ -0,0 +1,12 @@
|
||||
#Test of bug 28842 (failure on open a standard OCAF document on Fedora).
|
||||
|
||||
Open [locate_data_file save_V7_8_0_GEOM_MDTV-Standard.sgd] D
|
||||
|
||||
# Check a shape.
|
||||
set res [CheckLabel D 0:1:20:1:1:2]
|
||||
set index [lsearch ${res} TNaming_NamedShape]
|
||||
if { ${index} == -1} {
|
||||
puts "Error: reading of the document failed."
|
||||
} else {
|
||||
puts "OK"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user