![]() |
Parasol Planning Library (PPL)
|
3D Mean Curvature Skeleton implementation from CGAL More...
#include <MeanCurvatureSkeleton3D.h>
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< Point3 > | SurfaceMesh |
typedef CGAL::Polyhedron_3< CGALKernel, CGAL::Polyhedron_items_with_id_3 > | Polyhedron |
typedef CGAL::Mean_curvature_flow_skeletonization< SurfaceMesh > | Skeletonization |
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 >, WitnessType > | AnnotationType |
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, AnnotationType > | GetSkeleton () |
pair< WorkspaceSkeleton, AnnotationType > | GetMesoSkeleton () |
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) |
3D Mean Curvature Skeleton implementation from CGAL
typedef PropertyMap<vector<WitnessType>, WitnessType> MeanCurvatureSkeleton3D::AnnotationType |
typedef CGAL::Simple_cartesian<double> MeanCurvatureSkeleton3D::CGALKernel |
typedef MCSkeleton::edge_descriptor MeanCurvatureSkeleton3D::MCED |
typedef Skeletonization::Skeleton MeanCurvatureSkeleton3D::MCSkeleton |
typedef MCSkeleton::vertex_descriptor MeanCurvatureSkeleton3D::MCVD |
typedef Skeletonization::Meso_skeleton MeanCurvatureSkeleton3D::MESO |
typedef CGALKernel::Point_3 MeanCurvatureSkeleton3D::Point3 |
typedef CGAL::Polyhedron_3<CGALKernel, CGAL::Polyhedron_items_with_id_3> MeanCurvatureSkeleton3D::Polyhedron |
typedef CGAL::Mean_curvature_flow_skeletonization<SurfaceMesh> MeanCurvatureSkeleton3D::Skeletonization |
typedef CGAL::Surface_mesh<Point3> MeanCurvatureSkeleton3D::SurfaceMesh |
typedef vector<Point3d> MeanCurvatureSkeleton3D::WitnessType |
MeanCurvatureSkeleton3D::MeanCurvatureSkeleton3D | ( | ) |
|
inline |
Initialize the input mesh from the input exact polyhedron
_poly | The polyhedron to use. |
_d | Set to debug mode or not. |
MeanCurvatureSkeleton3D::~MeanCurvatureSkeleton3D | ( | ) |
void MeanCurvatureSkeleton3D::AddPolyhedron | ( | PolyhedronType & | _poly, |
double | _refine = 1.32 |
||
) |
Add an input polyhedron in the input mesh.
void MeanCurvatureSkeleton3D::BuildSkeleton | ( | bool | _curve = true | ) |
Construct the mean curvature skeleton.
void MeanCurvatureSkeleton3D::BuildSkeleton | ( | const WorkspaceDecomposition * | _decomposition, |
bool | _curve = true |
||
) |
Construct the mean curvature skeleton from a decomposition.
pair< WorkspaceSkeleton, MeanCurvatureSkeleton3D::AnnotationType > MeanCurvatureSkeleton3D::GetMesoSkeleton | ( | ) |
Get the workspace skeleton from the meso skeleton with surface mesh points as annotations of the skeleton
pair< WorkspaceSkeleton, MeanCurvatureSkeleton3D::AnnotationType > MeanCurvatureSkeleton3D::GetSkeleton | ( | ) |
Get the workspace skeleton from the curved skeleton with surface mesh points as annotations of the skeleton
void MeanCurvatureSkeleton3D::Read | ( | string | _filename | ) |
Read MeanCurvatureSkeleton3D from a file
_filename | The filename to read from. |
|
static |
Construct a Mean Curvature Skeleton from an XML node.
_node | The XML node to parse. |
void MeanCurvatureSkeleton3D::SetEnvironment | ( | const Environment * | _env | ) |
Initializes the input mesh as the obstacle space of a given environment
_env | The environment to use. |
|
inline |
Set the parameters to use to build and access the skeleton
_p | The parameters to use. |
void MeanCurvatureSkeleton3D::Write | ( | string | _filename | ) |
Write MeanCurvatureSkeleton3D to a file
_filename | The filename to write to. |
|
static |