From d482ca4be072158d12fdb94915301fff44ded3a3 Mon Sep 17 00:00:00 2001 From: Alex Scott Date: Mon, 25 Feb 2019 10:26:03 +0000 Subject: [PATCH 1/2] add setviewpoint wrapper. --- pcl/pxi/Features/NormalEstimation.pxi | 3 +++ pcl/pxi/Features/NormalEstimation_172.pxi | 3 +++ pcl/pxi/Features/NormalEstimation_180.pxi | 3 +++ 3 files changed, 9 insertions(+) diff --git a/pcl/pxi/Features/NormalEstimation.pxi b/pcl/pxi/Features/NormalEstimation.pxi index 76a17234d..cdc84f508 100644 --- a/pcl/pxi/Features/NormalEstimation.pxi +++ b/pcl/pxi/Features/NormalEstimation.pxi @@ -29,6 +29,9 @@ cdef class NormalEstimation: def set_KSearch (self, int param): self.me.setKSearch (param) + def set_ViewPoint(self, float vpx, float vpy, float vpz): + self.me.setViewPoint(vpx, vpy, vpx) + def compute(self): normal = PointCloud_Normal() sp_assign(normal.thisptr_shared, new cpp.PointCloud[cpp.Normal]()) diff --git a/pcl/pxi/Features/NormalEstimation_172.pxi b/pcl/pxi/Features/NormalEstimation_172.pxi index e76decb8c..04d4c0ff8 100644 --- a/pcl/pxi/Features/NormalEstimation_172.pxi +++ b/pcl/pxi/Features/NormalEstimation_172.pxi @@ -29,6 +29,9 @@ cdef class NormalEstimation: def set_KSearch (self, int param): self.me.setKSearch (param) + def set_ViewPoint(self, float vpx, float vpy, float vpz): + self.me.setViewPoint(vpx, vpy, vpx) + def compute(self): normal = PointCloud_Normal() sp_assign(normal.thisptr_shared, new cpp.PointCloud[cpp.Normal]()) diff --git a/pcl/pxi/Features/NormalEstimation_180.pxi b/pcl/pxi/Features/NormalEstimation_180.pxi index 67256d9df..655ca643e 100644 --- a/pcl/pxi/Features/NormalEstimation_180.pxi +++ b/pcl/pxi/Features/NormalEstimation_180.pxi @@ -29,6 +29,9 @@ cdef class NormalEstimation: def set_KSearch (self, int param): self.me.setKSearch (param) + def set_ViewPoint(self, float vpx, float vpy, float vpz): + self.me.setViewPoint(vpx, vpy, vpx) + def compute(self): normals = PointCloud_Normal() sp_assign(normals.thisptr_shared, new cpp.PointCloud[cpp.Normal]()) From 3e84d198e200f64f0e22aa7ffc939ecff6410dba Mon Sep 17 00:00:00 2001 From: Alex Scott Date: Tue, 26 Feb 2019 09:37:41 +0000 Subject: [PATCH 2/2] Fix vpz typo --- pcl/pxi/Features/NormalEstimation.pxi | 2 +- pcl/pxi/Features/NormalEstimation_172.pxi | 2 +- pcl/pxi/Features/NormalEstimation_180.pxi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcl/pxi/Features/NormalEstimation.pxi b/pcl/pxi/Features/NormalEstimation.pxi index cdc84f508..a386373cd 100644 --- a/pcl/pxi/Features/NormalEstimation.pxi +++ b/pcl/pxi/Features/NormalEstimation.pxi @@ -30,7 +30,7 @@ cdef class NormalEstimation: self.me.setKSearch (param) def set_ViewPoint(self, float vpx, float vpy, float vpz): - self.me.setViewPoint(vpx, vpy, vpx) + self.me.setViewPoint(vpx, vpy, vpz) def compute(self): normal = PointCloud_Normal() diff --git a/pcl/pxi/Features/NormalEstimation_172.pxi b/pcl/pxi/Features/NormalEstimation_172.pxi index 04d4c0ff8..c8db7b846 100644 --- a/pcl/pxi/Features/NormalEstimation_172.pxi +++ b/pcl/pxi/Features/NormalEstimation_172.pxi @@ -30,7 +30,7 @@ cdef class NormalEstimation: self.me.setKSearch (param) def set_ViewPoint(self, float vpx, float vpy, float vpz): - self.me.setViewPoint(vpx, vpy, vpx) + self.me.setViewPoint(vpx, vpy, vpz) def compute(self): normal = PointCloud_Normal() diff --git a/pcl/pxi/Features/NormalEstimation_180.pxi b/pcl/pxi/Features/NormalEstimation_180.pxi index 655ca643e..f81498e8a 100644 --- a/pcl/pxi/Features/NormalEstimation_180.pxi +++ b/pcl/pxi/Features/NormalEstimation_180.pxi @@ -30,7 +30,7 @@ cdef class NormalEstimation: self.me.setKSearch (param) def set_ViewPoint(self, float vpx, float vpy, float vpz): - self.me.setViewPoint(vpx, vpy, vpx) + self.me.setViewPoint(vpx, vpy, vpz) def compute(self): normals = PointCloud_Normal()