mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
After adding edges in Ng_STL_InitSTLGeometry, set readedges size to 0.
The global variable readedges that the API uses doesn't clear itself after the Ng_STL_Geometry * has been initialized. It would cause problems for people who wish to initialize another Ng_STL_Geometry if they used Ng_STL_AddEdge in before their previous initialization.
This commit is contained in:
parent
e400c10f07
commit
4778057ae0
@ -632,6 +632,7 @@ namespace nglib
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
geo->AddEdges(readedges);
|
geo->AddEdges(readedges);
|
||||||
|
readedges.SetSize(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;
|
if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user