Refactoring: Make GeoUtils reusable

This commit is contained in:
Kim Kulling
2023-03-14 20:03:14 +01:00
parent fdcc45d010
commit 2acfc125c3
18 changed files with 96 additions and 114 deletions

View File

@@ -0,0 +1,13 @@
#include <assimp/types.h>
#include <assimp/mesh.h>
namespace Assimp {
class GeometryUtils {
public:
static ai_real heron( ai_real a, ai_real b, ai_real c );
static ai_real distance3D( const aiVector3D &vA, aiVector3D &vB );
static ai_real calculateAreaOfTriangle( const aiFace& face, aiMesh* mesh );
};
} // namespace Assimp