Exception in debug mode when reading NIST-PMI-STEP-example nist_stc_07_asme1_ap242-e3.stp #383
Labels
0. New
The issue was created, but not updated by maintainer. Waiting for updates labels and categories
1. Data Exchange
Import/Export or iterating of the CAD data
2. Bug
Something isn't working
Milestone
Description
When reading nist_stc_07_asme1_ap242-e3.stp in debug mode there is an exception in src/STEPCAFControl/STEPCAFControl_Reader.cxx line 3007.
This is a correct behavior, as the two passed directions are colinear. The reason are in lines 3004-6.
There one passes consecutive indices instead of values. These lines need to be replaced by
Expected Behavior
STEPCAFControl_Reader::Transfer() without problem
Actual Behavior
Step Reader: Failed to transfer nodes
gp_Dir::CrossCross() - result vector has zero norm
Sample Code or DRAW Tcl Script
Handle(TDocStd_Document) doc;
Handle(XCAFApp_Application) app = XCAFApp_Application::GetApplication();
app->NewDocument("MDTV-XCAF", doc);
STEPCAFControl_Reader reader;
reader.SetColorMode(true);
reader.SetNameMode(true);
reader.SetLayerMode(false);
const auto status = reader.ReadFile("nist_stc_07_asme1_ap242-e3.stp"); // status == IFSelect_RetDone
try
{
auto success = reader.Transfer(doc); // success != Standard_False
}
catch (const std::exception& ex)
{
std::cout << ex.what();
}
Operating System
Windows
Compiler
MSVC
Bitness
64-bit
OCCT Version
7.8
Additional Files
nist_stc_07_asme1_ap242-e3.zip
The text was updated successfully, but these errors were encountered: