LLNL / Tribol

Modular interface physics library featuring state-of-the-art contact physics methods.
MIT License
25 stars 2 forks source link

Fix Variable Size Arrays in GeomUtilities.cpp #35

Open srwopschall opened 1 year ago

srwopschall commented 1 year ago

We have a lot of routines that have to size arrays based on variable number of overlapping polygon vertices. Some compilers will not like this.

This operation can be done in place using something like this: https://github.com/LLNL/axom/blob/c35431a1ee71a7c46fe54805e8aa5278120d613e/src/axom/primal/geometry/BezierCurve.hpp#L296-L301