Class xlifepp::subdivision::TeXPolygon#

class TeXPolygon#

Collaboration diagram for xlifepp::subdivision::TeXPolygon:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "3" [label="std::vector< K >" tooltip="std::vector< K >"] "5" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "6" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "2" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "1" [label="xlifepp::subdivision::TeXPolygon" tooltip="xlifepp::subdivision::TeXPolygon" fillcolor="#BFBFBF"] "3" -> "4" [dir=forward tooltip="template-instance"] "5" -> "4" [dir=forward tooltip="template-instance"] "6" -> "4" [dir=forward tooltip="template-instance"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="usage"] "1" -> "5" [dir=forward tooltip="usage"] "1" -> "6" [dir=forward tooltip="usage"] }

Public Functions

TeXPolygon(const pair_nn &prV, const number_t numBoundary, const std::vector<Vertex> &listV)#

constructor for edges

TeXPolygon(const std::vector<number_t> &vrV, const number_t numBoundary, const std::vector<Vertex> &listV)#

main constructor

inline number_t attrib() const#

returns the integer attribute

bool isExtVisible() const#

tells whether the exterior of the face is visible with respect to the observation direction

This function returns true if the exterior of the face is visible with respect to the observation direction, false otherwise.

bool operator<(const TeXPolygon &f) const#

comparison function of two faces

Comparison between two boundary faces U and V, U being the current object.

In short, “U < V” if U is “less” visible than V. The function returns true (“U < V”) or false according to the following algorithm:

  • if one face is visible and the other hidden, the function returns true if U is hidden and V is visible, false otherwise,

  • if both faces are hidden or visible, they are sorted in increasing order according to the distance from their isobarycenter to the observation point.

inline const std::vector<number_t> &Vrank() const#

returns a reference to this vector member

Public Static Functions

static inline void initObsDir(const Vect &V)#

initialize the observation direction (static vector OD)