1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0033638: Data Exchange, Step Import - Style for tessellated object missed

TransferBRep_ShapeBinder used for tessellated face.
This commit is contained in:
ichesnok 2024-03-12 13:49:21 +00:00 committed by vglukhik
parent d5bcd33386
commit 9d93d9b9b8
2 changed files with 19 additions and 0 deletions

View File

@ -761,6 +761,8 @@ void StepToTopoDS_TranslateFace::Init(const Handle(StepVisual_TessellatedFace)&
if (theNMTool.IsActive())
theNMTool.Bind(theTF, aF);
aTP->Bind(theTF, new TransferBRep_ShapeBinder(aF));
myResult = aF;
myError = StepToTopoDS_TranslateFaceDone;
done = Standard_True;

17
tests/bugs/step/bug33638 Normal file
View File

@ -0,0 +1,17 @@
puts "===================================="
puts "0033638: Data Exchange, Step Import - Style for tessellated object missed"
puts "===================================="
puts ""
pload OCAF
ReadStep D [locate_data_file bug33638.stp]
if { [ XFindColor D 0 0 1 ] == "" } {
puts "Error: Color not found"
}
if { [ XFindColor D 1 0 0 ] == "" } {
puts "Error: Color not found"
}
Close D