diff Framework/Toolbox/GeometryToolbox.h @ 1013:53cc787bd7bc toa2019092301

- Added an optimized ProjectPoint2 to CoordinateSystem3D. It has *not* replaced the ProjectPoint method because more tests need to be written. - ProjectPointOntoPlane2 is a faster version of GeometryToolbox::ProjectPointOntoPlane. Same remark as above. - DicomStructureSet.cpp now uses this optimized call.
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 23 Sep 2019 15:18:33 +0200
parents b70e9be013e4
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Toolbox/GeometryToolbox.h	Fri Sep 20 13:59:36 2019 +0200
+++ b/Framework/Toolbox/GeometryToolbox.h	Mon Sep 23 15:18:33 2019 +0200
@@ -32,6 +32,16 @@
                                const Vector& planeNormal,
                                const Vector& planeOrigin);
 
+    /*
+    Alternated faster implementation (untested yet)
+    */
+    void ProjectPointOntoPlane2(double& resultX,
+                                double& resultY,
+                                double& resultZ,
+                                const Vector& point,
+                                const Vector& planeNormal,
+                                const Vector& planeOrigin);
+
     bool IsParallel(const Vector& u,
                     const Vector& v);