diff Framework/Toolbox/CoordinateSystem3D.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 32eaf4929b08
children 19b1c8caade4 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Toolbox/CoordinateSystem3D.h	Fri Sep 20 13:59:36 2019 +0200
+++ b/Framework/Toolbox/CoordinateSystem3D.h	Mon Sep 23 15:18:33 2019 +0200
@@ -101,6 +101,13 @@
                       double& offsetY,
                       const Vector& point) const;
 
+    /*
+    Alternated faster implementation (untested yet)
+    */
+    void ProjectPoint2(double& offsetX, 
+                       double& offsetY, 
+                       const Vector& point) const;
+
     bool IntersectSegment(Vector& p,
                           const Vector& edgeFrom,
                           const Vector& edgeTo) const;