[Ptinpoly-commits] r41 - in pkg: . src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun May 31 14:01:51 CEST 2020


Author: jmaisog
Date: 2020-05-31 14:01:50 +0200 (Sun, 31 May 2020)
New Revision: 41

Modified:
   pkg/DESCRIPTION
   pkg/src/pinpolyhedronA.cc
Log:


Modified: pkg/DESCRIPTION
===================================================================
--- pkg/DESCRIPTION	2020-05-29 00:05:07 UTC (rev 40)
+++ pkg/DESCRIPTION	2020-05-31 12:01:50 UTC (rev 41)
@@ -1,7 +1,7 @@
 Package: ptinpoly
 Title: Point-in-Polyhedron Test (2D and 3D)
-Version: 2.7
-Date: 2020-05-28
+Version: 2.8
+Date: 2020-05-31
 Author: Jose M. Maisog, Yuan Wang, George Luta, Jianfei Liu
 Maintainer: Jose M. Maisog <bravas02 at gmail.com>
 Description: Function pip3d() tests whether a point in 3D space is

Modified: pkg/src/pinpolyhedronA.cc
===================================================================
--- pkg/src/pinpolyhedronA.cc	2020-05-29 00:05:07 UTC (rev 40)
+++ pkg/src/pinpolyhedronA.cc	2020-05-31 12:01:50 UTC (rev 41)
@@ -30,8 +30,10 @@
 int (*PointInPolyhedron::trips)[3];
 int PointInPolyhedron::numtri;
 int absolute;
-//int *startaddress=(int *)1;
-int *startaddress=0;
+// JMM (5/26/2020): Switch to initializing *startaddress to 1 rather than 0.
+// Reference: email from J. Liu sent 5/30/2020 at 10:59 PM EST
+int *startaddress=(int *)1;
+//int *startaddress=0;
 extern int positionOfPointProjectToTri(double p[3],double p0[3],double p1[3],double p2[3]);
 extern double sqDistPointToTri(double p[3],double p0[3],double p1[3],double p2[3]);
 extern double sqDistPointToSeg3D(double p[3],double p0[3],double p1[3]);



More information about the Ptinpoly-commits mailing list