Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from kuchi/cone-fix
Browse files Browse the repository at this point in the history
Add missing set_min_max_opening_angle function to SegmentationNormal
  • Loading branch information
nzjrs committed Sep 24, 2015
2 parents abab8e4 + 651a1e0 commit a03b8d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pcl/_pcl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ cdef class SegmentationNormal:
self.me.setEpsAngle (ea)
def set_axis(self, double ax, double ay, double az):
mpcl_sacnormal_set_axis(deref(self.me),ax,ay,az)
def set_min_max_opening_angle(self, double min_angle, double max_angle):
""" Set the minimum and maximum cone opening angles in radians for a cone model.
"""
self.me.setMinMaxOpeningAngle(min_angle, max_angle)
def get_min_max_opening_angle(self):
min_angle = 0.0
max_angle = 0.0
self.me.getMinMaxOpeningAngle(min_angle, max_angle)
return min_angle, max_angle


# Empirically determine strides, for buffer support.
Expand Down
3 changes: 3 additions & 0 deletions pcl/pcl_defs.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ cdef extern from "pcl/segmentation/sac_segmentation.h" namespace "pcl":
void setInputNormals (shared_ptr[PointCloud[N]])
void setEpsAngle (double ea)
void segment (PointIndices, ModelCoefficients)
void setMinMaxOpeningAngle(double, double)
void getMinMaxOpeningAngle(double, double)


cdef cppclass SACSegmentation[T]:
void setOptimizeCoefficients (bool)
Expand Down

0 comments on commit a03b8d8

Please sign in to comment.