0027808: Some geometric_tolerances are not imported.
authorika <ika@opencascade.com>
Tue, 13 Sep 2016 07:47:23 +0000 (10:47 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Sep 2016 09:22:16 +0000 (12:22 +0300)
Process datum_feature entity during collecting shape_aspects of GDT.
Update test cases.

15 files changed:
src/STEPCAFControl/STEPCAFControl_Reader.cxx
tests/gdt/export/A6
tests/gdt/export/A7
tests/gdt/export/A8
tests/gdt/export/B1
tests/gdt/export/B2
tests/gdt/export/B4
tests/gdt/export/B5
tests/gdt/presentation/A5
tests/gdt/presentation/A6
tests/gdt/presentation/A7
tests/gdt/presentation/A9
tests/gdt/presentation/B1
tests/gdt/presentation/B3
tests/gdt/presentation/B4

index b5f30d9..ab04efc 100644 (file)
@@ -2604,6 +2604,10 @@ static void collectShapeAspect(const Handle(StepRepr_ShapeAspect)& theSA,
     if (!aSADR.IsNull())
       collectShapeAspect(aSADR->RelatedShapeAspect(), theWS, theSAs);
   }
+  else if (theSA->IsKind(STANDARD_TYPE(StepDimTol_DatumFeature))) {
+    theSAs.Append(theSA);
+    return;
+  }
   else {
     // Find all children Shape_Aspect
     Standard_Boolean isSimple = Standard_True;
@@ -2950,7 +2954,8 @@ static TDF_Label createGDTObjectInXCAF(const Handle(Standard_Transient)& theEnt,
       }
     }
   }
-  if(aSeqRI1.IsEmpty()) return aGDTL;
+  if(aSeqRI1.IsEmpty()) 
+    return aGDTL;
 
   TDF_LabelSequence aShLS1, aShLS2;
 
index 33d7a00..b10be35 100644 (file)
@@ -2,14 +2,15 @@
 set filename bug27645_nist_ftc_06_asme1_cr3000_rd.prt.stp
 puts "TODO CR26859 ALL:Error : 3 differences with reference data found :"
 puts "TODO CR26859 ALL:Error on writing file"
+
 set ref_data {
 
- NbOfDimensions          : 20
-  NbOfDimensionalSize    : 18
+ NbOfDimensions          : 21
+  NbOfDimensionalSize    : 19
   NbOfDimensionalLocation: 2
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 22
+ NbOfTolerances          : 27
   NbOfGTWithModifiers    : 4
   NbOfGTWithMaxTolerance : 0
   NbOfGTWithDatums       : 3
index 51a3580..348ed7a 100644 (file)
@@ -1,19 +1,20 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_06_asme1_ct5240_rd.stp
+set filename bug27808_nist_ftc_06_asme1_ct5240_rd.stp
 puts "TODO CR26859 ALL:Error : 3 differences with reference data found :"
 puts "TODO CR26859 ALL:Error on writing file"
+
 set ref_data {
 
  NbOfDimensions          : 22
-  NbOfDimensionalSize    : 14
-  NbOfDimensionalLocation: 8
+  NbOfDimensionalSize    : 12
+  NbOfDimensionalLocation: 10
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 21
+ NbOfTolerances          : 27
   NbOfGTWithModifiers    : 4
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 20
+  NbOfGTWithDatums       : 23
  NbOfDatumFeature        : 6
- NbOfAttachedDatum       : 46
+ NbOfAttachedDatum       : 54
  NbOfDatumTarget         : 0
 }
index 4e9be97..2c216cb 100644 (file)
@@ -2,6 +2,7 @@
 set filename bug27645_nist_ftc_06_asme1_ct5240_rd-1.stp
 puts "TODO CR26859 ALL:Error : 3 differences with reference data found :"
 puts "TODO CR26859 ALL:Error on writing file"
+
 set ref_data {
 
  NbOfDimensions          : 22
@@ -9,11 +10,11 @@ set ref_data {
   NbOfDimensionalLocation: 8
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 21
+ NbOfTolerances          : 27
   NbOfGTWithModifiers    : 4
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 20
+  NbOfGTWithDatums       : 23
  NbOfDatumFeature        : 6
- NbOfAttachedDatum       : 46
+ NbOfAttachedDatum       : 54
  NbOfDatumTarget         : 0
 }
index 4b92217..1b05cc4 100644 (file)
@@ -1,5 +1,5 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_08_asme1_ct5240_rc.stp
+set filename bug27808_nist_ftc_08_asme1_ct5240_rc.stp
 
 set ref_data {
 
@@ -8,11 +8,11 @@ set ref_data {
   NbOfDimensionalLocation: 1
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 29
-  NbOfGTWithModifiers    : 22
+ NbOfTolerances          : 33
+  NbOfGTWithModifiers    : 23
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 28
+  NbOfGTWithDatums       : 30
  NbOfDatumFeature        : 10
- NbOfAttachedDatum       : 71
+ NbOfAttachedDatum       : 75
  NbOfDatumTarget         : 0
 }
index 85c54f0..98bc13d 100644 (file)
@@ -8,11 +8,11 @@ set ref_data {
   NbOfDimensionalLocation: 1
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 29
-  NbOfGTWithModifiers    : 22
+ NbOfTolerances          : 33
+  NbOfGTWithModifiers    : 23
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 28
+  NbOfGTWithDatums       : 30
  NbOfDatumFeature        : 10
- NbOfAttachedDatum       : 71
+ NbOfAttachedDatum       : 75
  NbOfDatumTarget         : 0
 }
index 65994b3..4c12b90 100644 (file)
@@ -1,18 +1,20 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_09_asme1_ct5240_rd.stp
+set filename bug27808_nist_ftc_09_asme1_ct5240_rd.stp
+puts "TODO CR26859 ALL:Error : 2 differences with reference data found :"
+puts "TODO CR26859 ALL:Error on writing file"
 
 set ref_data {
 
- NbOfDimensions          : 22
-  NbOfDimensionalSize    : 15
+ NbOfDimensions          : 23
+  NbOfDimensionalSize    : 16
   NbOfDimensionalLocation: 7
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 28
+ NbOfTolerances          : 31
   NbOfGTWithModifiers    : 8
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 28
+  NbOfGTWithDatums       : 30
  NbOfDatumFeature        : 6
- NbOfAttachedDatum       : 69
+ NbOfAttachedDatum       : 73
  NbOfDatumTarget         : 0
 }
index 0dd94c9..7150ee9 100644 (file)
@@ -3,16 +3,16 @@ set filename bug27645_nist_ftc_09_asme1_ct5240_rd-1.stp
 
 set ref_data {
 
- NbOfDimensions          : 22
-  NbOfDimensionalSize    : 15
+ NbOfDimensions          : 23
+  NbOfDimensionalSize    : 16
   NbOfDimensionalLocation: 7
   NbOfAngular            : 0
   NbOfWithPath           : 0
- NbOfTolerances          : 28
+ NbOfTolerances          : 31
   NbOfGTWithModifiers    : 8
   NbOfGTWithMaxTolerance : 0
-  NbOfGTWithDatums       : 28
+  NbOfGTWithDatums       : 30
  NbOfDatumFeature        : 6
- NbOfAttachedDatum       : 69
+ NbOfAttachedDatum       : 73
  NbOfDatumTarget         : 0
 }
index 8665be4..6d9fb01 100644 (file)
@@ -4,7 +4,7 @@ puts "TODO CR27235 ALL:Error : 4 differences with reference data found :"
 puts "TODO CR27235 ALL:Error on writing file"
 
 set ref_data {
-Centre of mass: 571.08730967855467 2205.0751810551806 -1537.7275040606771
-Mass: 535373.51735687314
+Centre of mass: 362.61474383020976 2196.4222207238172 -2017.5878044804083
+Mass: 639159.86516525224
 
 }
index 7b96aaa..3bc1bb3 100644 (file)
@@ -1,10 +1,10 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_06_asme1_ct5240_rd.stp
+set filename bug27808_nist_ftc_06_asme1_ct5240_rd.stp
 puts "TODO CR27235 ALL:Error : 4 differences with reference data found :"
 puts "TODO CR27235 ALL:Error on writing file"
 
 set ref_data {
-Centre of mass: 1.2441670631221204 66.716892937106863 -65.116654400171385
-Mass: 21888.331129713944
+Centre of mass: 4.9764239505863603 64.18438466729144 -67.058903377273126
+Mass: 24387.315415267363
 
 }
index cc25eb3..71823c7 100644 (file)
@@ -4,7 +4,7 @@ puts "TODO CR27235 ALL:Error : 4 differences with reference data found :"
 puts "TODO CR27235 ALL:Error on writing file"
 
 set ref_data {
-Centre of mass: 31.601843403303537 1694.6090806025425 -1653.9630217643687
-Mass: 555963.61069472972
+Centre of mass: 126.40116834489778 1630.2833705491985 -1703.2961457827012
+Mass: 619437.81154779939
 
 }
index 91b1a96..85142b5 100644 (file)
@@ -1,8 +1,8 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_08_asme1_ct5240_rc.stp
+set filename bug27808_nist_ftc_08_asme1_ct5240_rc.stp
 
 set ref_data {
-Centre of mass: 45.768141003733746 46.547197794287811 34.003050733925484
-Mass: 21424.556049917097
+Centre of mass: 44.537314289484314 44.054934745863214 33.295311157211145
+Mass: 22754.349304272349
 
 }
index 124e796..365af2e 100644 (file)
@@ -2,7 +2,7 @@
 set filename bug27645_nist_ftc_08_asme1_ct5240_rc-1.stp
 
 set ref_data {
-Centre of mass: 1162.5107814948756 1182.2988239749477 863.67748864175542
-Mass: 544183.72366787971
+Centre of mass: 1131.248437223685 1118.9954844429806 845.70091310388898
+Mass: 577960.40529879264
 
 }
index 9c8a7a4..2ecabee 100644 (file)
@@ -1,8 +1,10 @@
 # !!!! This file is generated automatically, do not edit manually! See end script
-set filename bug27645_nist_ftc_09_asme1_ct5240_rd.stp
+set filename bug27808_nist_ftc_09_asme1_ct5240_rd.stp
+puts "TODO CR27235 ALL:Error : 4 differences with reference data found :"
+puts "TODO CR27235 ALL:Error on writing file"
 
 set ref_data {
-Centre of mass: -21.689685614183912 7.533923731961659 -1.9615575977866939
-Mass: 22433.616210032662
+Centre of mass: -20.281360550123736 7.5575111121398644 -1.4132597243023584
+Mass: 23871.875331976771
 
 }
index eaca02f..04d68b7 100644 (file)
@@ -2,7 +2,7 @@
 set filename bug27645_nist_ftc_09_asme1_ct5240_rd-1.stp
 
 set ref_data {
-Centre of mass: -550.91801460026238 191.36166279182876 -49.823562983782956
-Mass: 569813.85173483356
+Centre of mass: -515.14631491538069 191.96077215596614 -35.896739001613369
+Mass: 606345.50780760846
 
 }