]> OCCT Git - occt.git/commit
Data Exchange, STP Import - Fixing missing GDT values (#617)
authorDmitrii Kulikov <164657232+AtheneNoctuaPt@users.noreply.github.com>
Tue, 15 Jul 2025 10:09:36 +0000 (11:09 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 10:09:36 +0000 (11:09 +0100)
commit413c08272bdb29a98472f3bc0950b0ddde237c9b
tree9bb91e265a5d2e5d4c972a0a1f215e3644643445
parent2e2dc8d3e5b12f3b822c257a40bf68c5789b4895
Data Exchange, STP Import - Fixing missing GDT values (#617)

- Changes type declarations from specific measure types to `Handle(Standard_Transient)` for broader compatibility
- Adds runtime type checking and conversion logic to extract measure values from both supported types
- Includes comprehensive unit tests to validate the new functionality
103 files changed:
src/DataExchange/TKDESTEP/GTests/FILES.cmake
src/DataExchange/TKDESTEP/GTests/StepTransientReplacements_Test.cxx [new file with mode: 0644]
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndAreaUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndLengthUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndMassUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndPlaneAngleUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndRatioUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndSolidAngleUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndTimeUnit.cxx
src/DataExchange/TKDESTEP/RWStepBasic/RWStepBasic_RWConversionBasedUnitAndVolumeUnit.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWAngularityTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWCircularRunoutTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWCoaxialityTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWConcentricityTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWCylindricityTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWFlatnessTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthDatRef.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndGeoTolWthMod.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthMaxTol.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeoTolAndGeoTolWthMod.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricToleranceWithDatumReference.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricToleranceWithDefinedAreaUnit.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricToleranceWithDefinedUnit.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricToleranceWithMaximumTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWGeometricToleranceWithModifiers.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWLineProfileTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWModifiedGeometricTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWParallelismTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWPerpendicularityTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWPositionTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWRoundnessTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWStraightnessTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWSurfaceProfileTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWSymmetryTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWTotalRunoutTolerance.cxx
src/DataExchange/TKDESTEP/RWStepDimTol/RWStepDimTol_RWUnequallyDisposedGeometricTolerance.cxx
src/DataExchange/TKDESTEP/RWStepRepr/RWStepRepr_RWMakeFromUsageOption.cxx
src/DataExchange/TKDESTEP/RWStepRepr/RWStepRepr_RWParallelOffset.cxx
src/DataExchange/TKDESTEP/RWStepRepr/RWStepRepr_RWQuantifiedAssemblyComponentUsage.cxx
src/DataExchange/TKDESTEP/RWStepShape/RWStepShape_RWMeasureQualification.cxx
src/DataExchange/TKDESTEP/RWStepShape/RWStepShape_RWToleranceValue.cxx
src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx
src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_UnitContext.cxx
src/DataExchange/TKDESTEP/STEPControl/STEPControl_Reader.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndLengthUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndMassUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndPlaneAngleUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndRatioUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndSolidAngleUnit.hxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.cxx
src/DataExchange/TKDESTEP/StepBasic/StepBasic_ConversionBasedUnitAndTimeUnit.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRef.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMaxTol.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMaxTol.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeoTolAndGeoTolWthMod.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricTolerance.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricTolerance.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDatumReference.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDatumReference.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDefinedAreaUnit.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDefinedAreaUnit.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDefinedUnit.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithDefinedUnit.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithMaximumTolerance.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithMaximumTolerance.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithModifiers.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_GeometricToleranceWithModifiers.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_ModifiedGeometricTolerance.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_ModifiedGeometricTolerance.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_UnequallyDisposedGeometricTolerance.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_UnequallyDisposedGeometricTolerance.hxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_MakeFromUsageOption.cxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_MakeFromUsageOption.hxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_ParallelOffset.cxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_ParallelOffset.hxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_QuantifiedAssemblyComponentUsage.cxx
src/DataExchange/TKDESTEP/StepRepr/StepRepr_QuantifiedAssemblyComponentUsage.hxx
src/DataExchange/TKDESTEP/StepShape/StepShape_MeasureQualification.cxx
src/DataExchange/TKDESTEP/StepShape/StepShape_MeasureQualification.hxx
src/DataExchange/TKDESTEP/StepToGeom/StepToGeom.cxx
tests/bugs/step/bug_gh384 [new file with mode: 0644]