gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.7k stars 383 forks source link

Deduplicate triangle-triangle intersection code #86

Open Garrett-R opened 5 years ago

Garrett-R commented 5 years ago

I noticed there were 2 functions with nearly identical code. Two small differences:

1) the static version was slightly more performant having more ref usages, avoiding making copies. I took this one 1) the non-static one had a side-effect of setting the Type which I've maintained.

This is a pure refactor, API and functionality should be the same.

Garrett-R commented 5 years ago

I also added my project to the "Projects using g3Sharp" list, but let me know if you want me to drop that commit.