当前位置: 首页>>代码示例>>C++>>正文


C++ AlignedPointTVector::clear方法代码示例

本文整理汇总了C++中AlignedPointTVector::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ AlignedPointTVector::clear方法的具体用法?C++ AlignedPointTVector::clear怎么用?C++ AlignedPointTVector::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AlignedPointTVector的用法示例。


在下文中一共展示了AlignedPointTVector::clear方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: lock

 template<typename ContainerT, typename PointT> void
 OutofcoreOctreeBase<ContainerT, PointT>::queryBBIncludes_subsample (const Eigen::Vector3d& min, const Eigen::Vector3d& max, const size_t query_depth, const double percent, AlignedPointTVector& dst) const
 {
   boost::shared_lock < boost::shared_mutex > lock (read_write_mutex_);
   dst.clear ();
   root_->queryBBIncludes_subsample (min, max, query_depth, percent, dst);
 }
开发者ID:khooweiqian,项目名称:kfls2,代码行数:7,代码来源:octree_base.hpp

示例2: getOccupiedVoxelCentersRecursive

template<typename PointT, typename LeafT, typename BranchT, typename OctreeT> int
pcl::octree::OctreePointCloud<PointT, LeafT, BranchT, OctreeT>::getOccupiedVoxelCenters (
    AlignedPointTVector &voxelCenterList_arg) const
{
  OctreeKey key;
  key.x = key.y = key.z = 0;

  voxelCenterList_arg.clear ();

  return getOccupiedVoxelCentersRecursive (this->rootNode_, key, voxelCenterList_arg);

}
开发者ID:khooweiqian,项目名称:kfls2,代码行数:12,代码来源:octree_pointcloud.hpp

示例3: getIntersectedVoxelCentersRecursive

    int
    pcl::octree::OctreePointCloudSearch<PointT, LeafT, OctreeT>::getIntersectedVoxelCenters (
        Eigen::Vector3f origin, Eigen::Vector3f direction, AlignedPointTVector &voxelCenterList) const
    {
      OctreeKey key;
      key.x = key.y = key.z = 0;

      voxelCenterList.clear ();

      // Voxel childIdx remapping
      unsigned char a = 0;

      double minX, minY, minZ, maxX, maxY, maxZ;

      initIntersectedVoxel (origin, direction, minX, minY, minZ, maxX, maxY, maxZ, a);

      if (max (max (minX, minY), minZ) < min (min (maxX, maxY), maxZ))
        return getIntersectedVoxelCentersRecursive (minX, minY, minZ, maxX, maxY, maxZ, a, this->rootNode_, key,
                                                    voxelCenterList);

      return (0);
    }
开发者ID:nttputus,项目名称:PCL,代码行数:22,代码来源:octree_search.hpp

示例4: getIntersectedVoxelCentersRecursive

template<typename PointT, typename LeafContainerT, typename BranchContainerT> int
pcl::octree::OctreePointCloudSearch<PointT, LeafContainerT, BranchContainerT>::getIntersectedVoxelCenters (
    Eigen::Vector3f origin, Eigen::Vector3f direction, AlignedPointTVector &voxel_center_list,
    int max_voxel_count) const
{
  OctreeKey key;
  key.x = key.y = key.z = 0;

  voxel_center_list.clear ();

  // Voxel child_idx remapping
  unsigned char a = 0;

  double min_x, min_y, min_z, max_x, max_y, max_z;

  initIntersectedVoxel (origin, direction, min_x, min_y, min_z, max_x, max_y, max_z, a);

  if (std::max (std::max (min_x, min_y), min_z) < std::min (std::min (max_x, max_y), max_z))
    return getIntersectedVoxelCentersRecursive (min_x, min_y, min_z, max_x, max_y, max_z, a, this->root_node_, key,
                                                voxel_center_list, max_voxel_count);

  return (0);
}
开发者ID:2php,项目名称:pcl,代码行数:23,代码来源:octree_search.hpp


注:本文中的AlignedPointTVector::clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。