Skip to content

Commit

Permalink
Update MovingLeastSquares to pcl 1.6 API
Browse files Browse the repository at this point in the history
  • Loading branch information
julienr committed Feb 21, 2013
1 parent 8e590a1 commit e8dfcb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pcl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,14 @@ cdef class MovingLeastSquares:
"""
self.me.setPolynomialFit(fit)

def reconstruct(self):
def process(self):
"""
Apply the smoothing according to the previously set values and return
a new pointcloud
"""
pc = PointCloud()
cdef cpp.PointCloud_t *ccloud = <cpp.PointCloud_t *>pc.thisptr
self.me.reconstruct(deref(ccloud))
cdef cpp.PointNormalCloud_t *ccloud = <cpp.PointNormalCloud_t *>pc.thisptr
self.me.process(deref(ccloud))
return pc

cdef class VoxelGridFilter:
Expand Down
2 changes: 1 addition & 1 deletion pcl_defs.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cdef extern from "pcl/surface/mls.h" namespace "pcl":
void setSearchRadius (double)
void setPolynomialOrder(bool)
void setPolynomialFit(int)
void reconstruct (PointCloud[I])
void process (PointCloud[N])

ctypedef MovingLeastSquares[PointXYZ,Normal] MovingLeastSquares_t

Expand Down

0 comments on commit e8dfcb7

Please sign in to comment.