@@ -142,32 +142,6 @@ cdef class SegmentationNormal:
142
142
return min_angle, max_angle
143
143
144
144
145
- cdef class SampleConsensusModelCylinder(SegmentationNormal):
146
-
147
- cdef cpp.SampleConsensusModelCylinder_t * me
148
- # cdef cpp.ModelCoefficients *coeffs
149
- def __cinit__ (self ):
150
- self .me = new cpp.SACSegmentationNormal_t()
151
-
152
- def get_distance_to_model (self , list model_coefficients ):
153
- """ Compute all distances from the model. You must have already fit the model.
154
- :return: vector of distances
155
- """
156
-
157
- cdef vector[double ] distances
158
-
159
- self .me.getDistancesToModel(self ._coeffs, distances)
160
- # def count_within_distance(self, list model_coefficients, double threshold):
161
- # cdef cpp.ModelCoefficients coeffs
162
- # cdef vector[float] vals = model_coefficients
163
- # coeffs.values = vals
164
- # #coeffs.values.resize(len(model_coefficients))
165
- # # for i, v in enumerate(model_coefficients):
166
- # # coeffs.value[i] = v
167
- # return self.me.countWithinDistance(vals, threshold)
168
-
169
-
170
-
171
145
# Empirically determine strides, for buffer support.
172
146
# XXX Is there a more elegant way to get these?
173
147
cdef Py_ssize_t _strides[2 ]
0 commit comments