Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions
pcl::gpu::MarchingCubes Class Reference

MarchingCubes implements MarchingCubes functionality for TSDF volume on GPU. More...

#include </__w/1/s/gpu/kinfu/include/pcl/gpu/kinfu/marching_cubes.h>

Public Types

enum  { POINTS_PER_TRIANGLE = 3, DEFAULT_TRIANGLES_BUFFER_SIZE = 2 * 1000 * 1000 * POINTS_PER_TRIANGLE }
 Default size for triangles buffer. More...
 
typedef pcl::PointXYZ PointType
 Point type. More...
 
typedef boost::shared_ptr< MarchingCubesPtr
 Smart pointer. More...
 

Public Member Functions

 MarchingCubes ()
 Default constructor. More...
 
 ~MarchingCubes ()
 Destructor. More...
 
DeviceArray< PointTyperun (const TsdfVolume &tsdf, DeviceArray< PointType > &triangles_buffer)
 Runs marching cubes triangulation. More...
 

Detailed Description

MarchingCubes implements MarchingCubes functionality for TSDF volume on GPU.

Author
Anatoly Baskeheev, Itseez Ltd, (mynam.nosp@m.e.my.nosp@m.surna.nosp@m.me@m.nosp@m.ycomp.nosp@m.any..nosp@m.com)

Definition at line 53 of file marching_cubes.h.

Member Typedef Documentation

Point type.

Definition at line 65 of file marching_cubes.h.

typedef boost::shared_ptr<MarchingCubes> pcl::gpu::MarchingCubes::Ptr

Smart pointer.

Definition at line 68 of file marching_cubes.h.

Member Enumeration Documentation

anonymous enum

Default size for triangles buffer.

Enumerator
POINTS_PER_TRIANGLE 
DEFAULT_TRIANGLES_BUFFER_SIZE 

Definition at line 58 of file marching_cubes.h.

Constructor & Destructor Documentation

pcl::gpu::MarchingCubes::MarchingCubes ( )

Default constructor.

pcl::gpu::MarchingCubes::~MarchingCubes ( )

Destructor.

Member Function Documentation

DeviceArray<PointType> pcl::gpu::MarchingCubes::run ( const TsdfVolume tsdf,
DeviceArray< PointType > &  triangles_buffer 
)

Runs marching cubes triangulation.

Parameters
[in]tsdf
[in]triangles_bufferBuffer for triangles. Its size determines max extracted triangles. If empty, it will be allocated with default size to be used.
Returns
Array with triangles. Each 3 consequent points belong to a single triangle. The returned array points to 'triangles_buffer' data.

The documentation for this class was generated from the following file: