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

0031485: Data Exchange - Export STEP in nonmanifold mode looses all faces except one

Small correction in STEPControl_ActorWrite::TransferCompound - take into account the case when a subshape has type TopAbs_FACE.
This commit is contained in:
jgv 2020-06-07 22:04:39 +03:00 committed by jfa
parent aba38db503
commit fb343bc09d
2 changed files with 18 additions and 1 deletions

View File

@ -1315,7 +1315,9 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferCompound (const Handle(T
NonManifoldGroup->Append(aSubShell);
}
}
else if (!isManifold && (aSubShape.ShapeType() == TopAbs_SHELL) ) {
else if (!isManifold &&
(aSubShape.ShapeType() == TopAbs_SHELL || aSubShape.ShapeType() == TopAbs_FACE))
{
RepItemSeq->Append(aSubShape);
NonManifoldGroup->Append(aSubShape);
}

15
tests/bugs/step/bug31485 Normal file
View File

@ -0,0 +1,15 @@
puts "====================================================================="
puts "OCC31485: Export STEP in nonmanifold mode looses all faces except one"
puts "====================================================================="
puts ""
brestore [locate_data_file bug31485.brep] a
param write.step.nonmanifold 1
testwritestep comp_nonmanifold.step a
testreadstep comp_nonmanifold.step result
checkshape result
checknbshapes result -face 3