diff --git a/GeoLib/AnalyticalGeometry.cpp b/GeoLib/AnalyticalGeometry.cpp index 3b9eeb9868b74dea05edcd3932681cd73fe0aebf..158f5e697b10d57636cb01a6685e68e0b3ebb165 100644 --- a/GeoLib/AnalyticalGeometry.cpp +++ b/GeoLib/AnalyticalGeometry.cpp @@ -330,14 +330,6 @@ double calcTriangleArea(MathLib::Point3d const& a, return 0.5 * w.getLength(); } -double calcTetrahedronVolume(const double* x1, const double* x2, const double* x3, const double* x4) -{ - const MathLib::Vector3 ab(x1, x2); - const MathLib::Vector3 ac(x1, x3); - const MathLib::Vector3 ad(x1, x4); - return std::abs(GeoLib::scalarTriple(ac, ad, ab)) / 6.0; -} - double calcTetrahedronVolume(MathLib::Point3d const& x1, MathLib::Point3d const& x2, MathLib::Point3d const& x3, diff --git a/GeoLib/AnalyticalGeometry.h b/GeoLib/AnalyticalGeometry.h index 5a35a98f098459d14dc89c18c4dc1bddcbd8a06e..8928e6cfb103ec8c6b9ee737edccc942b1906574 100644 --- a/GeoLib/AnalyticalGeometry.h +++ b/GeoLib/AnalyticalGeometry.h @@ -139,7 +139,6 @@ double calcTriangleArea(MathLib::Point3d const& a, MathLib::Point3d const& b, * Calculates the volume of a tetrahedron. * The formula is V=1/6*|a(b x c)| with a=x1->x2, b=x1->x3 and c=x1->x4. */ -double calcTetrahedronVolume(const double* x1, const double* x2, const double* x3, const double* x4); double calcTetrahedronVolume(MathLib::Point3d const& x1, MathLib::Point3d const& x2, MathLib::Point3d const& x3,