14 EdgePoint(
int index) : index(index), isVertex(true){}
15 EdgePoint(
int index,
double proportion) : index(index), proportion(proportion), isVertex(false) {}
16 EdgePoint(
const CRichModel& model,
int leftVert,
int rightVert,
double proportion) : proportion(proportion), isVertex(false)
28 return !(*
this == other);
35 proportion = 1 - proportion;
41 for (
int i = 0; i < 3; ++i)
42 if (model.
Face(faceID)[i] == index)
48 for (
int i = 0; i < 3; ++i)
58 return model.
Vert(index);
71 if (isVertex ==
false && other.
isVertex ==
true)
73 if (isVertex ==
true && other.
isVertex ==
false)
75 if (index < other.
index)
77 if (index > other.
index)
88 out <<
"v " << ep.
index <<
" ";
bool operator!=(const EdgePoint &other) const
double GetNumbering(const CRichModel &model, int faceID) const
EdgePoint(const CRichModel &model, int leftVert, int rightVert, double proportion)
std::ostream & operator<<(std::ostream &s, const Packet16uc &v)
const CEdge & Edge(int edgeIndex) const
bool operator==(const EdgePoint &other) const
int GetEdgeIndexFromTwoVertices(int leftVert, int rightVert) const
CPoint3D GetShiftPoint(const CRichModel &model) const
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool operator<(const half &a, const half &b)
EdgePoint(int index, double proportion)
const CPoint3D & Vert(int vertIndex) const
CPoint3D GetShiftVertex(int indexOfVert) const
const CFace & Face(int faceIndex) const
CPoint3D Get3DPoint(const CRichModel &model) const
void Reverse(const CRichModel &model)