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:
nikhilsrajan 2019-10-23 14:52:43 +05:30 committed by GitHub
parent e400c10f07
commit 4778057ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -632,6 +632,7 @@ namespace nglib
}
*/
geo->AddEdges(readedges);
readedges.SetSize(0);
}
if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;