1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026859: Export of GDT from XCAF to STEP

Export/Import:
Add export of dimensions, geometric tolerances and datums, according to AP242.
Add missing STEP entities.
Corrections.

XCAF:
Add new attributes to Datum object: DatumTargetNumber.
Supplement enum XCAFDimTolObjects_GeomToleranceZoneModif.
Corrections.

Test cases:
gdt export A1
gdt export A2
gdt export A3
gdt export A4
gdt export A5
This commit is contained in:
ika
2015-11-10 11:58:29 +03:00
committed by bugmaster
parent 4e14c88f77
commit 6595eee796
46 changed files with 3755 additions and 136 deletions

View File

@@ -158,7 +158,7 @@ void RWStepDimTol_RWDatumReferenceElement::WriteStep (StepData_StepWriter& SW,
else if (aBaseType == 2) {
Handle(StepDimTol_HArray1OfDatumReferenceElement) anArray = (ent->Base()).CommonDatumList();
Standard_Integer i, nb = (anArray.IsNull() ? 0 : anArray->Length());
SW.OpenSub();
SW.OpenTypedSub("COMMON_DATUM_LIST");
for (i = 1; i <= nb; i++)
SW.Send (anArray->Value(i));
SW.CloseSub();
@@ -176,8 +176,10 @@ void RWStepDimTol_RWDatumReferenceElement::WriteStep (StepData_StepWriter& SW,
}
}
SW.CloseSub();
}
}
else {
SW.SendUndef();
}
}
//=======================================================================