View Issue Details

IDProjectCategoryView StatusLast Update
0033874CommunityOCCT:Data Exchangepublic2025-02-19 19:11
ReporterThomas.Dunker_157106 Assigned Todpasukhi  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2017 
Product Version7.8.0 
Summary0033874: exception in debug mode when reading NIST-STEP-example nist_stc_07_asme1_ap242-e3.stp
DescriptionWhen reading nist_stc_07_asme1_ap242-e3.stp there is an exception in src/STEPCAFControl/STEPCAFControl_Reader.cxx line 3007.

                gp_Ax2 anA(aPnt, aDir, aDirR);

This is a correct behavior, as the two passed directions are colinear. The reason are in lines 3004-6.

                aDir.SetCoord(aDirArr->Lower(), aDirArr->Lower() + 1, aDirArr->Lower() + 2);
                aDirR.SetCoord(aDirRArr->Lower(), aDirRArr->Lower() + 1, aDirRArr->Lower() + 2);
                aPnt.SetCoord(aLocArr->Lower(), aLocArr->Lower() + 1, aLocArr->Lower() + 2);

There one passes consecutive indices instead of values. These lines need to be replaced by

                aDir.SetCoord(aDirArr->Value(aDirArr->Lower()),
                              aDirArr->Value(aDirArr->Lower() + 1),
                              aDirArr->Value(aDirArr->Lower() + 2));
                aDirR.SetCoord(aDirRArr->Value(aDirRArr->Lower()),
                               aDirRArr->Value(aDirRArr->Lower() + 1),
                               aDirRArr->Value(aDirRArr->Lower() + 2));
                aPnt.SetCoord(aLocArr->Value(aLocArr->Lower()),
                              aLocArr->Value(aLocArr->Lower() + 1),
                              aLocArr->Value(aLocArr->Lower() + 2));

Steps To Reproduceread and transform nist_stc_07_asme1_ap242-e3.stp
TagsNo tags attached.
Test case number

Activities

dpasukhi

2025-02-19 19:11

administrator   ~0116969

Dear @Thomas.Dunker_157106
Could you please share the files. Or is it a latest NITS files?

Issue History

Date Modified Username Field Change
2025-02-19 18:58 Thomas.Dunker_157106 New Issue
2025-02-19 18:58 Thomas.Dunker_157106 Assigned To => ika
2025-02-19 19:11 dpasukhi Assigned To ika => dpasukhi
2025-02-19 19:11 dpasukhi Note Added: 0116969