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:
parent
aba38db503
commit
fb343bc09d
@ -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
15
tests/bugs/step/bug31485
Normal 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
|
Loading…
x
Reference in New Issue
Block a user