Skip to content

Commit 5384843

Browse files
committed
Revert direct removal of the two static variables, but added deprecrecation notice.
1 parent 172f52b commit 5384843

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

octree/include/pcl/octree/octree_key.h

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class OctreeKey {
138138
(!!(this->z & depthMask)));
139139
}
140140

141+
PCL_DEPRECATED(1, 18, "Use getMaxDepth() instead.")
142+
static const unsigned char maxDepth =
143+
static_cast<unsigned char>(sizeof(uindex_t) * 8);
144+
141145
static unsigned char
142146
getMaxDepth()
143147
{

sample_consensus/include/pcl/sample_consensus/sac_model.h

+4
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,10 @@ namespace pcl
567567
/** \brief A pointer to the vector of point indices to use. */
568568
IndicesPtr indices_;
569569

570+
/** The maximum number of samples to try until we get a good one */
571+
PCL_DEPRECATED(1, 18, "Use getMaxSampleSize() instead.")
572+
static const unsigned int max_sample_checks_ = 1000;
573+
570574
/** \brief The minimum and maximum radius limits for the model.
571575
* Applicable to all models that estimate a radius.
572576
*/

0 commit comments

Comments
 (0)