1 #ifndef _mgTL2LPline_HH_
2 #define _mgTL2LPline_HH_
4 #include "Tl2/TL2Polyline.h"
33 ):m_polyline(lpline.m_polyline),m_idS(lpline.m_idS),m_nV(lpline.m_nV){;};
38 ):m_polyline(polyline),m_idS(0),m_nV(polyline->bdim()){;};
44 ):m_polyline(polyline),m_idS(idS),m_nV(nV){;};
77 bool is_null()
const{
return m_polyline==0;};
114 std::ostream&
out(std::ostream& ostrm)
const;
140 return poly.
out(ot);};
mgTL2LPline is limitted subinterval of mgTL2Polyline.
Definition: TL2LPline.h:23
std::auto_ptr< mgTL2Polyline > polygonizeSL(const mgTL2LPline &pline2, int id1V, int id2V) const
friend std::ostream & operator<<(std::ostream &ot, const mgTL2LPline &poly)
string stream function
Definition: TL2LPline.h:139
mgTL2LPline * clone() const
mgTL2Polyline holds a parameter line(polyline) of a surface.
Definition: TL2Polyline.h:25
mgTL2LPline(const mgTL2LPline &lpline)
Copy constructor.
Definition: TL2LPline.h:31
const mgTL2parameter & TL2param() const
Definition: TL2LPline.h:130
int number_of_points() const
bool change_id(int id_in, int &id_out) const
Vector of a general n space dimension.
Definition: Vector.h:26
const mgTL2Polyline * TL2Polyline() const
Definition: TL2LPline.h:129
std::ostream & out(std::ostream &ostrm) const
Debug Function.
MGVector eval(double t, int nderi=0) const
int isectSlTl(const MGStraight &sl) const
MGStraight is a curve of any space dimension, represent a straight line.
Definition: Straight.h:49
void subdivide(int id, mgTL2LPline &lp1, mgTL2LPline &lp2) const
bool get_id_from_VertexID(int i, short id[3]) const
Represent a positional data.
Definition: Position.h:28
Holds necessary parameter data for face tessellation.
Definition: TL2parameter.h:46
std::auto_ptr< mgTL2Polyline > getPolygonizedMidLine(const mgTL2LPline &lp2, int &id0, int &id2) const
Get the midline from this->uv(id0) to lp2.uv(id2).
MGPosition xyz(int i, bool need_normal=false) const
void mid(MGPosition &uvmid)
mgTL2LPline(const mgTL2Polyline *polyline, int idS, int nV)
Definition: TL2LPline.h:40
mgTL2LPline(const mgTL2Polyline *polyline)
Definition: TL2LPline.h:36
mgTL2LPline & limit(int idS, int nV)
Limitting is done at the knot parameter for both start and end.
bool is_null() const
Test if this is a null LPline.
Definition: TL2LPline.h:77
MGPosition uv(int i) const
const mgTL2parameter & TL2param() const
Definition: TL2Polyline.h:115
mgTL2LPline()
Default constructor.
Definition: TL2LPline.h:28