1 #ifndef _mgTL2Triangle_HH_
2 #define _mgTL2Triangle_HH_
6 #include "mg/Position.h"
7 #include "Tl2/TL2parameter.h"
33 typedef std::vector<MGPosition>::iterator
iterator;
55 iterator
begin(){
return m_xyzs.begin();};
56 iterator
end(){
return m_xyzs.end();};
57 const_iterator
begin()
const{
return m_xyzs.begin();};
58 const_iterator
end()
const{
return m_xyzs.end();};
70 int size()
const{
return int(m_xyzs.size());};
74 std::vector<MGPosition> m_xyzs;
mgTESTRIANG getGeometryType() const
タイプを返却する mgTESTRIANG_FAN mgTESTRIANG_STRIP
Definition: TL2Triangle.h:61
like a csTriFanSet
Definition: MGCL.h:230
int size() const
Obtain the number of points included.
Definition: TL2Triangle.h:70
MGPosition & operator[](int i)
Definition: TL2Triangle.h:51
std::vector< MGPosition >::iterator iterator
Definition: TL2Triangle.h:33
iterator begin()
Definition: TL2Triangle.h:55
mgTESTRIANG
a set of triangl type(3角形頂点リストのタイプ).
Definition: MGCL.h:228
const MGPosition & operator[](int i) const
Definition: TL2Triangle.h:50
MGFace is a trimmed surface.
Definition: Face.h:51
const_iterator end() const
Definition: TL2Triangle.h:58
Represent a positional data.
Definition: Position.h:28
MGSurface is an abstract class of 3D surface.
Definition: Surface.h:54
void push_back(const MGPosition &xyz)
Definition: TL2Triangle.h:63
mgTL2Face is a proprietry class for Face tessellation.
Definition: TL2Face.h:29
std::vector< MGPosition >::const_iterator const_iterator
Definition: TL2Triangle.h:34
friend std::ostream & operator<<(std::ostream &out, const mgTL2Triangle &triangle)
void setGeometryType(mgTESTRIANG type)
タイプを設定する
Definition: TL2Triangle.h:67
const_iterator begin() const
Definition: TL2Triangle.h:57
void pop_back()
Definition: TL2Triangle.h:64
mgTL2Triangle holds (multiple) triangles data, which are a fan or a strip.
Definition: TL2Triangle.h:30
mgTL2Triangle(mgTESTRIANG type=mgTESTRIANG_FAN)
Definition: TL2Triangle.h:39
iterator end()
Definition: TL2Triangle.h:56