Parasol Planning Library (PPL)
Data Structures | Static Public Attributes
MeanCurvatureSkeleton3D Class Reference

3D Mean Curvature Skeleton implementation from CGAL More...

#include <MeanCurvatureSkeleton3D.h>

Collaboration diagram for MeanCurvatureSkeleton3D:
Collaboration graph
[legend]

Data Structures

struct  Parameters
 

Public Types

Local types

{ Note: Please do not change the kernel to exact computation that will hamper the computation of mean curvature skeleton internal functions

typedef CGAL::Simple_cartesian< double > CGALKernel
 
typedef CGALKernel::Point_3 Point3
 
typedef CGAL::Surface_mesh< Point3SurfaceMesh
 
typedef CGAL::Polyhedron_3< CGALKernel, CGAL::Polyhedron_items_with_id_3 > Polyhedron
 
typedef CGAL::Mean_curvature_flow_skeletonization< SurfaceMeshSkeletonization
 
typedef Skeletonization::Skeleton MCSkeleton
 
typedef MCSkeleton::vertex_descriptor MCVD
 
typedef MCSkeleton::edge_descriptor MCED
 
typedef Skeletonization::Meso_skeleton MESO
 
typedef vector< Point3d > WitnessType
 
typedef PropertyMap< vector< WitnessType >, WitnessTypeAnnotationType
 

Public Member Functions

IO functions
void Write (string _filename)
 
void Read (string _filename)
 
Modifiers
template<typename PolyhedronType >
void AddPolyhedron (PolyhedronType &_poly, double _refine=1.32)
 Add an input polyhedron in the input mesh. More...
 
void BuildSkeleton (bool _curve=true)
 Construct the mean curvature skeleton. More...
 
void BuildSkeleton (const WorkspaceDecomposition *_decomposition, bool _curve=true)
 Construct the mean curvature skeleton from a decomposition. More...
 
Accessors
pair< WorkspaceSkeleton, AnnotationTypeGetSkeleton ()
 
pair< WorkspaceSkeleton, AnnotationTypeGetMesoSkeleton ()
 
void SetParameters (Parameters &_p)
 

Static Public Attributes

static Parameters m_defaultParams
 Parameters. More...
 

Construction

 MeanCurvatureSkeleton3D ()
 
void SetEnvironment (const Environment *_env)
 
template<typename PolyhedronType >
 MeanCurvatureSkeleton3D (PolyhedronType &_poly, bool _d=false)
 
 ~MeanCurvatureSkeleton3D ()
 
static void SetDefaultParameters (XMLNode &_node)
 

Detailed Description

3D Mean Curvature Skeleton implementation from CGAL

Member Typedef Documentation

◆ AnnotationType

◆ CGALKernel

typedef CGAL::Simple_cartesian<double> MeanCurvatureSkeleton3D::CGALKernel

◆ MCED

typedef MCSkeleton::edge_descriptor MeanCurvatureSkeleton3D::MCED

◆ MCSkeleton

typedef Skeletonization::Skeleton MeanCurvatureSkeleton3D::MCSkeleton

◆ MCVD

typedef MCSkeleton::vertex_descriptor MeanCurvatureSkeleton3D::MCVD

◆ MESO

typedef Skeletonization::Meso_skeleton MeanCurvatureSkeleton3D::MESO

◆ Point3

typedef CGALKernel::Point_3 MeanCurvatureSkeleton3D::Point3

◆ Polyhedron

typedef CGAL::Polyhedron_3<CGALKernel, CGAL::Polyhedron_items_with_id_3> MeanCurvatureSkeleton3D::Polyhedron

◆ Skeletonization

typedef CGAL::Mean_curvature_flow_skeletonization<SurfaceMesh> MeanCurvatureSkeleton3D::Skeletonization

◆ SurfaceMesh

typedef CGAL::Surface_mesh<Point3> MeanCurvatureSkeleton3D::SurfaceMesh

◆ WitnessType

typedef vector<Point3d> MeanCurvatureSkeleton3D::WitnessType

Constructor & Destructor Documentation

◆ MeanCurvatureSkeleton3D() [1/2]

MeanCurvatureSkeleton3D::MeanCurvatureSkeleton3D ( )

◆ MeanCurvatureSkeleton3D() [2/2]

template<typename PolyhedronType >
MeanCurvatureSkeleton3D::MeanCurvatureSkeleton3D ( PolyhedronType &  _poly,
bool  _d = false 
)
inline

Initialize the input mesh from the input exact polyhedron

Parameters
_polyThe polyhedron to use.
_dSet to debug mode or not.

◆ ~MeanCurvatureSkeleton3D()

MeanCurvatureSkeleton3D::~MeanCurvatureSkeleton3D ( )

Member Function Documentation

◆ AddPolyhedron()

template<typename PolyhedronType >
void MeanCurvatureSkeleton3D::AddPolyhedron ( PolyhedronType &  _poly,
double  _refine = 1.32 
)

Add an input polyhedron in the input mesh.

◆ BuildSkeleton() [1/2]

void MeanCurvatureSkeleton3D::BuildSkeleton ( bool  _curve = true)

Construct the mean curvature skeleton.

◆ BuildSkeleton() [2/2]

void MeanCurvatureSkeleton3D::BuildSkeleton ( const WorkspaceDecomposition _decomposition,
bool  _curve = true 
)

Construct the mean curvature skeleton from a decomposition.

◆ GetMesoSkeleton()

pair< WorkspaceSkeleton, MeanCurvatureSkeleton3D::AnnotationType > MeanCurvatureSkeleton3D::GetMesoSkeleton ( )

Get the workspace skeleton from the meso skeleton with surface mesh points as annotations of the skeleton

◆ GetSkeleton()

pair< WorkspaceSkeleton, MeanCurvatureSkeleton3D::AnnotationType > MeanCurvatureSkeleton3D::GetSkeleton ( )

Get the workspace skeleton from the curved skeleton with surface mesh points as annotations of the skeleton

◆ Read()

void MeanCurvatureSkeleton3D::Read ( string  _filename)

Read MeanCurvatureSkeleton3D from a file

Parameters
_filenameThe filename to read from.

◆ SetDefaultParameters()

void MeanCurvatureSkeleton3D::SetDefaultParameters ( XMLNode _node)
static

Construct a Mean Curvature Skeleton from an XML node.

Parameters
_nodeThe XML node to parse.

◆ SetEnvironment()

void MeanCurvatureSkeleton3D::SetEnvironment ( const Environment _env)

Initializes the input mesh as the obstacle space of a given environment

Parameters
_envThe environment to use.

◆ SetParameters()

void MeanCurvatureSkeleton3D::SetParameters ( Parameters _p)
inline

Set the parameters to use to build and access the skeleton

Parameters
_pThe parameters to use.

◆ Write()

void MeanCurvatureSkeleton3D::Write ( string  _filename)

Write MeanCurvatureSkeleton3D to a file

Parameters
_filenameThe filename to write to.

Field Documentation

◆ m_defaultParams

MeanCurvatureSkeleton3D::Parameters MeanCurvatureSkeleton3D::m_defaultParams
static

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