1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0022731: Error on attempt to write in IGES 5.3 the attached brep model

This commit is contained in:
GKA
2012-01-27 14:48:21 +00:00
committed by bugmaster
parent 86eff19ec7
commit 572db63c30
2 changed files with 16 additions and 4 deletions

View File

@@ -161,6 +161,8 @@ void BRepToIGESBRep_Entity::TransferVertexList()
{
Standard_Integer nbvertices = myVertices.Extent();
if(!nbvertices)
return;
Handle(TColgp_HArray1OfXYZ) vertices= new TColgp_HArray1OfXYZ(1,nbvertices);
Standard_Real Unit = GetUnit();
Standard_Real X,Y,Z;
@@ -222,6 +224,8 @@ void BRepToIGESBRep_Entity::TransferEdgeList()
Handle(IGESSolid_VertexList) myendlist;
Standard_Integer nbedges = myEdges.Extent();
if(!nbedges)
return;
Handle(IGESData_HArray1OfIGESEntity) Curves=
new IGESData_HArray1OfIGESEntity(1,nbedges);
Handle(IGESSolid_HArray1OfVertexList) startVertexList =
@@ -349,6 +353,8 @@ Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferShape
// error message
}
}
if(res.IsNull())
return res;
TransferVertexList();
TransferEdgeList();
@@ -785,7 +791,7 @@ Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferCompSolid (const Topo
if (nbsolids == 1) {
myent = ISolid;
}
else {
else if(nbsolids > 1 ){
Handle(IGESBasic_Group) IGroup = new IGESBasic_Group;
IGroup->Init(Tab);
myent = IGroup;
@@ -880,11 +886,11 @@ Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferCompound (const TopoD
Tab->SetValue(itab,item);
}
}
if (nbshapes == 1) {
res = IShape;
}
else {
else if(nbshapes > 1) {
Handle(IGESBasic_Group) IGroup = new IGESBasic_Group;
IGroup->Init(Tab);
res = IGroup;