xc
Public Member Functions | List of all members
PointCloud3d Class Reference

Base class for position lists. More...

#include <PointCloud3d.h>

Inheritance diagram for PointCloud3d:
Inheritance graph
[legend]
Collaboration diagram for PointCloud3d:
Collaboration graph
[legend]

Public Member Functions

 PointCloud3d (void)
 Constructor.
 
 PointCloud3d (const std::deque< Pos3d > &)
 Constructor.
 
 PointCloud3d (const boost::python::list &)
 Constructor.
 
PrincipalAxes3D getPrincipalAxes (void) const
 Return the principal axes oriented according to the distribution of the points in space. More...
 
Hexahedron3d getOrientedBoundingBox (const Ref3d3d &) const
 Return the oriented bounding box that contains all the points in the cloud and whose edges are parallel to the given reference. More...
 
Hexahedron3d getOrientedBoundingBox (void) const
 Return the oriented bounding box that contains all the points in the cloud. More...
 
- Public Member Functions inherited from PolyPos< Pos3d >
 PolyPos (size_t n)
 
 PolyPos (size_t n, const Pos3d &p)
 
 PolyPos (const std::deque< Pos3d > &dq_pos)
 
Pos3d getFromPoint (void) const
 
Pos3d getToPoint (void) const
 
bool operator== (const PolyPos< Pos3d > &other) const
 
Pos3dAgrega (const Pos3d &p)
 
void Agrega (const PolyPos< Pos3d > &p)
 
void AgregaSiNuevo (const PolyPos< Pos3d > &p)
 
void AgregaSiNuevo (const Pos3d &)
 Appends the point to the list (if not already there).
 
void extend (InputIterator first, InputIterator last)
 Append the vertices between [first,last) to thebefore end of the list. More...
 
const_iterator find (const Pos3d &p) const
 
iterator find (const Pos3d &p)
 
bool In (const Pos3d &p) const
 Return true if the points is on en la lista.
 
void close (void)
 Close the point list (insert the first point as its last one)
 
bool isClosed (const GEOM_FT &tol=1e-6) const
 True if dist(lastPoint,firstPoint)< tol*length.
 
GEOM_FT getLength (void) const
 Return the length of the PolyPos.
 
std::vector< GEOM_FT > getLengths (void) const
 Return the lengths corresponding to each vertex.
 
boost::python::list getLengthsPy (void) const
 Return the lengths corresponding to each vertex in a Python list.
 
GEOM_FT getLengthUntilVertex (const_iterator) const
 Return the length of the PolyPos until the vertex pointed by the iterator. More...
 
const_iterator getSegmentAtLength (const GEOM_FT &s) const
 Return an iterator pointing to the vertex that is just before the point at a distance "s" measured along the polyline from its origin. More...
 
int getIndexOfSegmentAtLength (const GEOM_FT &s) const
 Return the index of the segment that lies at the point at a distance "s" measured along the polyline from its origin. More...
 
int getIndexOfSegmentAtParam (const GEOM_FT &lambda) const
 Return the index of the segment that lies at the point at a distance "lambda*L" measured along the polyline from its origin. More...
 
boost::python::list getIthCoordinates (unsigned short i) const
 Return the list of values for j-th coordinate.
 
GEOM_FT GetMax (unsigned short i) const
 Return the maximum value of j-th coordinate.
 
GEOM_FT GetMin (unsigned short i) const
 Return the minimum value of j-th coordinate.
 
PolyPos GetMayores (unsigned short int i, const GEOM_FT &d) const
 
PolyPos GetMenores (unsigned short int i, const GEOM_FT &d) const
 
Pos3d getCenterOfMass (void) const
 Return the center of mass del polígono.
 
Pos3d getWeightedCenterOfMass (const std::deque< GEOM_FT > &) const
 Return the center of mass del polígono.
 
PolyPos< Pos3dgetSwap (void) const
 Return a list with the elements in reverse order.
 
void swap (void)
 
std::deque< GEOM_FT > & GetSeparaciones (void) const
 Compute the distance from each point to the nearest one.
 
GEOM_FT GetSeparacionMedia (void) const
 Return the average distance between points.
 
iterator getNearestPoint (const Pos3d &)
 Returns the nearest point from those of the list.
 
const_iterator getNearestPoint (const Pos3d &) const
 Returns the nearest point from those of the list.
 
iterator getFarthestPoint (const Pos3d &)
 Returns the farthest point from those of the list.
 
const_iterator getFarthestPoint (const Pos3d &) const
 Returns the farthest point from those of the list.
 
virtual iterator getFarthestPointFromSegment (iterator it1, iterator it2, GEOM_FT &pMaxDist)
 
void simplify (GEOM_FT epsilon, iterator it1, iterator it2)
 Douglas Peucker algorithm implementation. More...
 
void simplify (GEOM_FT epsilon)
 Douglas Peucker algorithm implementation. More...
 
PolyPos< Pos3dgetSimplified (GEOM_FT epsilon) const
 ! More...
 
void removeRepeated (const GEOM_FT &tol=0.0)
 remove repeated vertexes. More...
 
void removeBackwardSegments (const GEOM_FT &tol)
 remove backward segments. More...
 
void Cat (const PolyPos< Pos3d > &l)
 
void Cat (inputIterator begin, inputIterator end)
 Insert the objects between [first,last).
 

Additional Inherited Members

- Public Types inherited from PolyPos< Pos3d >
typedef deque_pos::iterator iterator
 
typedef deque_pos::const_iterator const_iterator
 
typedef Pos3d ::vector vector
 
- Protected Types inherited from PolyPos< Pos3d >
typedef std::deque< Pos3ddeque_pos
 
- Protected Member Functions inherited from PolyPos< Pos3d >
void simplify_select (GEOM_FT epsilon, iterator it1, iterator it2, std::set< const_iterator > &selected)
 Douglas Peucker algorithm implementation. More...
 
void remove_selected (std::set< const_iterator > &selected)
 Removes the selected items. More...
 
void select_repeated (std::set< const_iterator > &selected, const GEOM_FT &tol=0.0)
 Select repeated vertexes. More...
 
void select_backward_segments (std::set< const_iterator > &selected, const GEOM_FT &tol)
 Select backward segments. More...
 
- Static Protected Member Functions inherited from PolyPos< Pos3d >
static GEOM_FT g (GEOM_FT v1, GEOM_FT v2)
 

Detailed Description

Base class for position lists.

Member Function Documentation

◆ getOrientedBoundingBox() [1/2]

Hexahedron3d PointCloud3d::getOrientedBoundingBox ( const Ref3d3d ref) const

Return the oriented bounding box that contains all the points in the cloud and whose edges are parallel to the given reference.

◆ getOrientedBoundingBox() [2/2]

Hexahedron3d PointCloud3d::getOrientedBoundingBox ( void  ) const

Return the oriented bounding box that contains all the points in the cloud.

◆ getPrincipalAxes()

PrincipalAxes3D PointCloud3d::getPrincipalAxes ( void  ) const

Return the principal axes oriented according to the distribution of the points in space.


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