5 #include "mg/Pvector.h"
6 #include "Tl2/TL2Fan.h"
7 #include "Tl2/TL2Triangle.h"
46 std::vector<const mgTL2Polyline*>& polylines
64 const_iterator
end()
const{
return m_fans.
end();};
66 iterator
end(){
return m_fans.
end();};
79 mgTL2FanEdges& edgeStack
131 bool used(
int alpha)
const;
134 bool used(
int alpha,
int beta)
const;
145 std::vector<mgTL2LPline> m_polylines;
const_iterator begin() const
Return const_iterator that points to the first element in the sequence.
Definition: Pvector.h:147
mgTL2LPline is limitted subinterval of mgTL2Polyline.
Definition: TL2LPline.h:23
const_iterator begin() const
Definition: TL2Fans.h:63
bool used(int alpha) const
check if vertex(alpha) is used or not.
mgTL2Polyline holds a parameter line(polyline) of a surface.
Definition: TL2Polyline.h:25
const mgTL2Fan * operator[](int i) const
Definition: TL2Fans.h:58
A vector of mgTL2Triangle's.
Definition: TL2Triangles.h:25
const_iterator end() const
Definition: TL2Fans.h:64
const_iterator end() const
Return const_iterator that points one past the last element.
Definition: Pvector.h:174
Defines a vector mgTL2Fan.
Definition: TL2Fans.h:33
void set_edge_used(int alpha, int beta)
Set edge(alpha,j) as used.
MGPosition xyz(int i, bool need_normal) const
Retrieve world coordinate value (x,y,z) of the i-th vertex.
mgTL2Fans(const MGLoop &polygon)
size_type size() const
Return the number of items that are in the sequence.
Definition: Pvector.h:342
mgTL2Fan * operator[](int i)
Definition: TL2Fans.h:59
bool is_boundary(int alpha, int beta) const
Test if the edge(alpha, beta) is boundary or not.
void push1Vaft(int alpha, int beta, int gamma)
void triangulate(mgTL2Triangles &triangles) const
void init_edgeStack(mgTL2FanEdges &edgeStack)
iterator end()
Definition: TL2Fans.h:66
int find3rdV(int alpha, int beta, int &status)
3点目の頂点(id of m_fans)を求める(頂点は使用点となる)
Represent a positional data.
Definition: Position.h:28
MGLoop is a boundary of a face, a boundary of 2D manifold cell.
Definition: Loop.h:44
Holds necessary parameter data for face tessellation.
Definition: TL2parameter.h:46
int size() const
Get the number of fans included.
Definition: TL2Fans.h:122
void push_back(T *x)
push element x at the end.
Definition: Pvector.h:250
bool has_isect(int v1, int v2) const
mgTL2Fan is a point list to constitue a fan.
Definition: TL2Fan.h:38
iterator begin()
Definition: TL2Fans.h:65
MGPvector< mgTL2Fan >::const_iterator const_iterator
Definition: TL2Fans.h:36
friend std::ostream & operator<<(std::ostream &out, const mgTL2Fans &fans)
void triangulate(const MGLoop &polygon, mgTL2Triangles &triangles)
MGPosition uv(int i) const
Retrieve surface parameter value (u,v) of the i-th vertex.
void push_back(mgTL2Fans &fans)
Definition: TL2Fans.h:93
void push_back(mgTL2Fan *fan)
Definition: TL2Fans.h:92
MGPvector< mgTL2Fan >::iterator iterator
Definition: TL2Fans.h:35
Defines Vector of newed object pointers.
Definition: Pvector.h:27
void push2V(int gamma, int alpha, int beta)
目的:中心点(center)がgammaで頂点(alpha,beta)のものを新規に作成する
void push1Vbefore(int alpha, int beta, int gamma)