26 #include "../pos_vec/Pos3d.h" 27 #include "../lists/PolyPos.h" 29 #include "Segment3d.h" 43 explicit Polyline3d(
const boost::python::list &);
46 virtual GeomObj *getCopy(
void)
const 52 inline size_t getNumVertices(
void)
const 53 {
return GeomObj::list_Pos3d::size(); }
54 size_t getNumSegments(
void)
const;
65 virtual bool In(
const Pos3d &p,
const double &tol= 0.0)
const;
69 virtual GEOM_FT
Ix(
void)
const;
70 virtual GEOM_FT
Iy(
void)
const;
71 virtual GEOM_FT
Iz(
void)
const;
84 boost::python::list
DividePy(
int num_partes)
const;
86 boost::python::list
DividePy(
const boost::python::list &)
const;
94 virtual GEOM_FT
GetMax(
unsigned short int i)
const;
95 virtual GEOM_FT
GetMin(
unsigned short int i)
const;
110 std::deque<Polyline3d>
clip(
const HalfSpace3d &,
const GEOM_FT &tol= 0.0)
const;
111 boost::python::list clipPy(
const HalfSpace3d &,
const GEOM_FT &tol= 0.0)
const;
116 boost::python::list
split(
const Pos3d &)
const;
117 Pos3d getCenterOfMass(
void)
const 122 boost::python::dict
getPyDict(
void)
const;
123 void setPyDict(
const boost::python::dict &);
125 void Print(std::ostream &stream)
const;
Polyline3d getRightChunk(const Pos3d &, const GEOM_FT &tol) const
Return the polyline chunk that goes the nearest vertex to to p to its end.
Definition: Polyline3d.cc:952
virtual GEOM_FT dist2(const Pos3d &p) const
Return the squared distance to the polyline.
Definition: Polyline3d.cc:184
Vector3d getJVectorAtLength(const GEOM_FT &) const
Return the J vector of the segment that lies at the point at a distance "s" measured along the polyli...
Definition: Polyline3d.cc:764
Segment en tres dimensiones.
Definition: Segment3d.h:41
const GeomObj::list_Pos3d & getVertexList(void) const
Return the list of the vertices.
Definition: Polyline3d.cc:81
Base class for position lists.
Definition: PolyPos.h:35
Pos3d Projection(const Pos3d &) const
Return the projection of the given point into the polyline.
Definition: Polyline3d.cc:267
GEOM_FT dist(const Pos3d &p) const
Return the distance from the point to the segment.
Definition: Polyline3d.cc:202
pos getCenterOfMass(void) const
Return the center of mass del polígono.
Definition: PolyPos.h:353
const Pos3d * appendVertexLeft(const Pos3d &)
Append a vertex to the beginning of the polyline.
Definition: Polyline3d.cc:104
virtual GEOM_FT Iy(void) const
Return the moment of inertia about the y axis.
Definition: Polyline3d.cc:509
virtual GEOM_FT getLength(void) const
Return the length of the object.
Definition: Polyline3d.h:89
int getNearestSegmentIndex(const Pos3d &) const
Return the index of the nearest 3D segment.
Definition: Polyline3d.cc:236
virtual GEOM_FT Iz(void) const
Return the moment of inertia about the z axis.
Definition: Polyline3d.cc:517
Polyline3d(void)
Default constructor.
Definition: Polyline3d.cc:32
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: Polyline3d.cc:1029
Segment3d getSegment(const list_Pos3d::const_iterator &) const
Return the segment pointed by the iterator.
Definition: Polyline3d.cc:119
const_iterator getNearestSegmentIter(const Pos3d &) const
Return the nearest segment to the argument.
Definition: Polyline3d.cc:206
Polyline in a three-dimensional space.
Definition: Polyline3d.h:37
Plane in a three-dimensional space.
Definition: Plane.h:49
std::vector< Vector3d > getCurvatureVectorAtVertices(void) const
Return the approximate curvature of the polyline at each of its vertices.
Definition: Polyline3d.cc:638
Segment3d getNearestSegment(const Pos3d &) const
Return the nearest 3D segment.
Definition: Polyline3d.cc:244
Polyline3d GetMayores(unsigned short int i, const GEOM_FT &d) const
Return a Polyline3d with the vertices whose i-th coordinate is greater than d.
Definition: Polyline3d.cc:445
const Pos3d * appendVertex(const Pos3d &)
Append a vertex to the polyline.
Definition: Polyline3d.cc:97
GEOM_FT getCurvatureAtVertex(const_iterator) const
Return the approximate curvature of the polyline at the vertex pointed by the iterator argument...
Definition: Polyline3d.cc:528
std::deque< const_iterator > getIntersectionIters(const Plane &) const
Return the iterators to the origin vertices of the polyline segments where the intersection with the ...
Definition: Polyline3d.cc:297
virtual bool operator==(const Polyline3d &) const
Comparison operator.
Definition: Polyline3d.cc:48
virtual GEOM_FT GetMax(unsigned short int i) const
Return the maximum value of the i-th coordinate.
Definition: Polyline3d.cc:422
List of 3D positions.
Definition: Pos3dList.h:36
Polyline3d getChunk(const Pos3d &, const short int &, const GEOM_FT &) const
Assuming that p is a vertex of the polyline Return the chunk: from the beginning to p if sgn < 0 from...
Definition: Polyline3d.cc:906
Pos3d getPointAtLength(const GEOM_FT &) const
Return the the point at a distance "s" measured along the polyline from its origin.
Definition: Polyline3d.cc:730
Base class for the objects involving a single dimension in a three-dimensional space.
Definition: Linear3d.h:33
Vector3d getCurvatureVectorAtLength(const GEOM_FT &) const
Return the approximate curvature vector of the polyline at the the point at a distance "s" measured a...
Definition: Polyline3d.cc:689
Vector3d getCurvatureVectorAtVertex(const_iterator) const
Return the approximate curvature of the polyline at the vertex pointed by the iterator argument...
Definition: Polyline3d.cc:597
void insertVertex(const Pos3d &, const GEOM_FT &tol=1e-6)
Insert the point argurment as vertex by splitting the nearest segment.
Definition: Polyline3d.cc:890
Vector3d getIVectorAtLength(const GEOM_FT &) const
Return the I vector of the segment that lies at the point at a distance "s" measured along the polyli...
Definition: Polyline3d.cc:748
GEOM_FT getCurvatureAtLength(const GEOM_FT &) const
Return the approximate curvature of the polyline at the the point at a distance "s" measured along th...
Definition: Polyline3d.cc:564
VectorPos3d Divide(int num_partes) const
Return the points that results from the segment division.
Definition: Polyline3d.cc:812
boost::python::list DividePy(int num_partes) const
Return a Python list containing the points that results from the segment division.
Definition: Polyline3d.cc:829
Polyline3d GetMenores(unsigned short int i, const GEOM_FT &d) const
Return a Polyline3d with the vertices whose i-th coordinate is smaller than d.
Definition: Polyline3d.cc:455
std::deque< Polyline3d > clip(const HalfSpace3d &, const GEOM_FT &tol=0.0) const
Return the polyline chunks that result from clipping this polyline with the given half space...
Definition: Polyline3d.cc:338
virtual GEOM_FT GetMin(unsigned short int i) const
Return the minimum value of the i-th coordinate.
Definition: Polyline3d.cc:433
virtual GEOM_FT getLengthUpTo(const Pos3d &) const
Return the length along the polyline upto the given point.
Definition: Polyline3d.cc:275
Posición en tres dimensiones.
Definition: Pos3d.h:44
list_Pos3d getIntersection(const Plane &) const
Return the points of intersection of the polyline with the argument.
Definition: Polyline3d.cc:316
GEOM_FT getLength(void) const
Return the length of the PolyPos.
Definition: PolyPos.h:169
GEOM_FT getLambda(const Pos3d &p) const
Return the lambda parameter for the given point: p= getFromPoint()+lambda*VDir()
Definition: Polyline3d.h:92
boost::python::list split(const Pos3d &) const
Return the two polylines that result from splitting this one on the point nearest to the argument...
Definition: Polyline3d.cc:957
virtual void Move(const Vector3d &)
Moves the polyline.
Definition: Polyline3d.cc:159
iterator getFarthestPointFromSegment(iterator it1, iterator it2, GEOM_FT &pMaxDist)
Definition: Polyline3d.cc:992
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: Polyline3d.cc:1020
Vector de posiciones en tres dimensiones [(x1,y1,z1),(x1,y2,z2),...].
Definition: VectorPos3d.h:32
The points of the half space are those that line at the back of the plane, this being understood as t...
Definition: HalfSpace3d.h:42
Clase base para las entidades geométricas.
Definition: GeomObj.h:40
void setVertices(const boost::python::list &)
Set the polyline vertices from the given Python list.
Definition: Polyline3d.cc:72
Vector3d getKVectorAtLength(const GEOM_FT &) const
Return the K vector of the segment that lies at the point at a distance "s" measured along the polyli...
Definition: Polyline3d.cc:802
Polyline3d getLeftChunk(const Pos3d &, const GEOM_FT &tol) const
Return the polyline chunk that goes from its beginning to the nearest vertex to p.
Definition: Polyline3d.cc:946
virtual GEOM_FT Ix(void) const
Return the moment of inertia about the x axis.
Definition: Polyline3d.cc:501
virtual bool In(const Pos3d &p, const double &tol=0.0) const
Return true if the point is in the polyline.
Definition: Polyline3d.cc:166
Vector en tres dimensiones.
Definition: Vector3d.h:39
boost::python::list getVertexListPy(void) const
Return a Python list containing the positions of the polygon vertices.
Definition: Polyline3d.cc:86
const GeomObj::list_Pos3d & getVertices(void) const
Return the list of the vertices.
Definition: Polyline3d.cc:63
std::vector< Segment3d > getSegments(void) const
Return a vector containing the consecutive segments of the polyline.
Definition: Polyline3d.cc:139