Blender  V3.3
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Freestyle::WFace Class Reference

#include <WEdge.h>

Inheritance diagram for Freestyle::WFace:
Freestyle::WXFace

Public Member Functions

 WFace ()
 
 WFace (WFace &iBrother)
 
virtual WFaceduplicate ()
 
virtual ~WFace ()
 
const vector< WOEdge * > & getEdgeList ()
 
WOEdgeGetOEdge (int i)
 
Vec3fGetNormal ()
 
int GetId ()
 
unsigned frs_materialIndex () const
 
bool GetMark () const
 
const FrsMaterialfrs_material ()
 
WVertexGetVertex (unsigned int index)
 
int GetIndex (WVertex *iVertex)
 
void RetrieveVertexList (vector< WVertex * > &oVertices)
 
void RetrieveBorderFaces (vector< const WFace * > &oWFaces)
 
WFaceGetBordingFace (int index)
 
WFaceGetBordingFace (WOEdge *iOEdge)
 
vector< Vec3f > & GetPerVertexNormals ()
 
vector< Vec2f > & GetPerVertexTexCoords ()
 
Vec3fGetVertexNormal (int index)
 
Vec2fGetVertexTexCoords (int index)
 
Vec3fGetVertexNormal (WVertex *iVertex)
 
WOEdgeGetNextOEdge (WOEdge *iOEdge)
 
WOEdgeGetPrevOEdge (WOEdge *iOEdge)
 
int numberOfEdges () const
 
int numberOfVertices () const
 
bool isBorder () const
 
void setEdgeList (const vector< WOEdge * > &iEdgeList)
 
void setNormal (const Vec3f &iNormal)
 
void setNormalList (const vector< Vec3f > &iNormalsList)
 
void setTexCoordsList (const vector< Vec2f > &iTexCoordsList)
 
void setId (int id)
 
void setFrsMaterialIndex (unsigned iMaterialIndex)
 
void setMark (bool iMark)
 
virtual WEdgeinstanciateEdge () const
 
virtual WOEdgeMakeEdge (WVertex *v1, WVertex *v2)
 
void AddEdge (WOEdge *iEdge)
 
bool getOppositeEdge (const WVertex *v, WOEdge *&e)
 
float getArea ()
 
WShapegetShape ()
 
virtual void ResetUserData ()
 

Public Attributes

voiduserdata
 

Protected Attributes

vector< WOEdge * > _OEdgeList
 
Vec3f _Normal
 
vector< Vec3f_VerticesNormals
 
vector< Vec2f_VerticesTexCoords
 
int _Id
 
unsigned _FrsMaterialIndex
 
bool _Mark
 

Detailed Description

Definition at line 689 of file WEdge.h.

Constructor & Destructor Documentation

◆ WFace() [1/2]

Freestyle::WFace::WFace ( )
inline

Definition at line 704 of file WEdge.h.

References NULL.

◆ WFace() [2/2]

Freestyle::WFace::WFace ( WFace iBrother)

◆ ~WFace()

virtual Freestyle::WFace::~WFace ( )
inlinevirtual

Definition at line 713 of file WEdge.h.

Member Function Documentation

◆ AddEdge()

void Freestyle::WFace::AddEdge ( WOEdge iEdge)
inline

Adds an edge to the edges list

Definition at line 953 of file WEdge.h.

◆ duplicate()

WFace * Freestyle::WFace::duplicate ( )
virtual

Reimplemented in Freestyle::WXFace.

Definition at line 266 of file WEdge.cpp.

Referenced by Freestyle::WShape::WShape().

◆ frs_material()

const FrsMaterial & Freestyle::WFace::frs_material ( )

Definition at line 272 of file WEdge.cpp.

◆ frs_materialIndex()

unsigned Freestyle::WFace::frs_materialIndex ( ) const
inline

◆ getArea()

float Freestyle::WFace::getArea ( )

compute the area of the face

Definition at line 405 of file WEdge.cpp.

References Freestyle::a, norm(), v1, and v2.

Referenced by Freestyle::gts_vertex_principal_directions().

◆ GetBordingFace() [1/2]

WFace* Freestyle::WFace::GetBordingFace ( int  index)
inline

◆ GetBordingFace() [2/2]

WFace* Freestyle::WFace::GetBordingFace ( WOEdge iOEdge)
inline

Definition at line 809 of file WEdge.h.

References Freestyle::WOEdge::GetaFace().

◆ getEdgeList()

const vector<WOEdge *>& Freestyle::WFace::getEdgeList ( )
inline

accessors

Definition at line 718 of file WEdge.h.

Referenced by Freestyle::computeVisibility(), Freestyle::triangle_obtuse(), and WFace().

◆ GetId()

int Freestyle::WFace::GetId ( )
inline

Definition at line 733 of file WEdge.h.

Referenced by WFace().

◆ GetIndex()

int Freestyle::WFace::GetIndex ( WVertex iVertex)
inline

returns the index at which iVertex is stored in the array. returns -1 if iVertex doesn't belong to the face.

Definition at line 764 of file WEdge.h.

Referenced by Freestyle::FEdgeXDetector::postProcessSuggestiveContourFace().

◆ GetMark()

bool Freestyle::WFace::GetMark ( ) const
inline

◆ GetNextOEdge()

WOEdge* Freestyle::WFace::GetNextOEdge ( WOEdge iOEdge)
inline

◆ GetNormal()

Vec3f& Freestyle::WFace::GetNormal ( )
inline

◆ GetOEdge()

WOEdge* Freestyle::WFace::GetOEdge ( int  i)
inline

Definition at line 723 of file WEdge.h.

Referenced by Freestyle::WXFaceLayer::BuildSmoothEdge().

◆ getOppositeEdge()

bool Freestyle::WFace::getOppositeEdge ( const WVertex v,
WOEdge *&  e 
)

For triangles, returns the edge opposite to the vertex in e. returns false if the face is not a triangle or if the vertex is not found

Definition at line 376 of file WEdge.cpp.

References e, and v.

Referenced by Freestyle::angle_obtuse(), and Freestyle::FEdgeXDetector::postProcessSuggestiveContourFace().

◆ GetPerVertexNormals()

vector<Vec3f>& Freestyle::WFace::GetPerVertexNormals ( )
inline

Definition at line 814 of file WEdge.h.

◆ GetPerVertexTexCoords()

vector<Vec2f>& Freestyle::WFace::GetPerVertexTexCoords ( )
inline

Definition at line 819 of file WEdge.h.

◆ GetPrevOEdge()

WOEdge * Freestyle::WFace::GetPrevOEdge ( WOEdge iOEdge)

Definition at line 419 of file WEdge.cpp.

References blender::meshintersect::prev().

◆ getShape()

WShape * Freestyle::WFace::getShape ( )

Definition at line 441 of file WEdge.cpp.

References Freestyle::WVertex::GetVertex().

◆ GetVertex()

WVertex* Freestyle::WFace::GetVertex ( unsigned int  index)
inline

◆ GetVertexNormal() [1/2]

Vec3f& Freestyle::WFace::GetVertexNormal ( int  index)
inline

◆ GetVertexNormal() [2/2]

Vec3f& Freestyle::WFace::GetVertexNormal ( WVertex iVertex)
inline

Returns the normal of the vertex iVertex for that face

Definition at line 837 of file WEdge.h.

◆ GetVertexTexCoords()

Vec2f& Freestyle::WFace::GetVertexTexCoords ( int  index)
inline

Returns the texture coords of the vertex of index.

Definition at line 831 of file WEdge.h.

◆ instanciateEdge()

virtual WEdge* Freestyle::WFace::instanciateEdge ( ) const
inlinevirtual

designed to build a specialized WEdge for use in MakeEdge

Reimplemented in Freestyle::WXFace.

Definition at line 939 of file WEdge.h.

◆ isBorder()

bool Freestyle::WFace::isBorder ( ) const
inline

Returns true if the face has one ot its edge which is a border edge

Definition at line 890 of file WEdge.h.

◆ MakeEdge()

WOEdge * Freestyle::WFace::MakeEdge ( WVertex v1,
WVertex v2 
)
virtual

◆ numberOfEdges()

int Freestyle::WFace::numberOfEdges ( ) const
inline

◆ numberOfVertices()

int Freestyle::WFace::numberOfVertices ( ) const
inline

◆ ResetUserData()

virtual void Freestyle::WFace::ResetUserData ( )
inlinevirtual

Reimplemented in Freestyle::WXFace.

Definition at line 967 of file WEdge.h.

References NULL.

Referenced by Freestyle::WXFace::ResetUserData().

◆ RetrieveBorderFaces()

void Freestyle::WFace::RetrieveBorderFaces ( vector< const WFace * > &  oWFaces)
inline

Definition at line 787 of file WEdge.h.

◆ RetrieveVertexList()

void Freestyle::WFace::RetrieveVertexList ( vector< WVertex * > &  oVertices)
inline

◆ setEdgeList()

void Freestyle::WFace::setEdgeList ( const vector< WOEdge * > &  iEdgeList)
inline

modifiers

Definition at line 903 of file WEdge.h.

◆ setFrsMaterialIndex()

void Freestyle::WFace::setFrsMaterialIndex ( unsigned  iMaterialIndex)
inline

Definition at line 928 of file WEdge.h.

Referenced by Freestyle::WShape::MakeFace().

◆ setId()

void Freestyle::WFace::setId ( int  id)
inline

Definition at line 923 of file WEdge.h.

References id.

Referenced by Freestyle::WShape::MakeFace().

◆ setMark()

void Freestyle::WFace::setMark ( bool  iMark)
inline

Definition at line 933 of file WEdge.h.

Referenced by Freestyle::WShape::MakeFace().

◆ setNormal()

void Freestyle::WFace::setNormal ( const Vec3f iNormal)
inline

Definition at line 908 of file WEdge.h.

Referenced by Freestyle::WShape::MakeFace().

◆ setNormalList()

void Freestyle::WFace::setNormalList ( const vector< Vec3f > &  iNormalsList)
inline

Definition at line 913 of file WEdge.h.

Referenced by Freestyle::WShape::MakeFace().

◆ setTexCoordsList()

void Freestyle::WFace::setTexCoordsList ( const vector< Vec2f > &  iTexCoordsList)
inline

Definition at line 918 of file WEdge.h.

Referenced by Freestyle::WShape::MakeFace().

Member Data Documentation

◆ _FrsMaterialIndex

unsigned Freestyle::WFace::_FrsMaterialIndex
protected

Definition at line 699 of file WEdge.h.

Referenced by WFace().

◆ _Id

int Freestyle::WFace::_Id
protected

Definition at line 698 of file WEdge.h.

◆ _Mark

bool Freestyle::WFace::_Mark
protected

Definition at line 700 of file WEdge.h.

Referenced by WFace().

◆ _Normal

Vec3f Freestyle::WFace::_Normal
protected

Definition at line 692 of file WEdge.h.

◆ _OEdgeList

vector<WOEdge *> Freestyle::WFace::_OEdgeList
protected

Definition at line 691 of file WEdge.h.

◆ _VerticesNormals

vector<Vec3f> Freestyle::WFace::_VerticesNormals
protected

Definition at line 695 of file WEdge.h.

Referenced by WFace().

◆ _VerticesTexCoords

vector<Vec2f> Freestyle::WFace::_VerticesTexCoords
protected

Definition at line 696 of file WEdge.h.

Referenced by WFace().

◆ userdata

void* Freestyle::WFace::userdata

The documentation for this class was generated from the following files: