Blender V4.3
Freestyle::WFace Class Reference

#include <WEdge.h>

Inherited by Freestyle::WXFace.

Public Member Functions

 WFace ()
 
 WFace (WFace &iBrother)
 
virtual WFaceduplicate ()
 
virtual ~WFace ()
 
const vector< WOEdge * > & getEdgeList ()
 
WOEdgeGetOEdge (int i)
 
Vec3fGetNormal ()
 
int GetId ()
 
uint frs_materialIndex () const
 
bool GetMark () const
 
const FrsMaterialfrs_material ()
 
WVertexGetVertex (uint 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 (uint 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

void * userdata
 

Protected Attributes

vector< WOEdge * > _OEdgeList
 
Vec3f _Normal
 
vector< Vec3f_VerticesNormals
 
vector< Vec2f_VerticesTexCoords
 
int _Id
 
uint _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 _FrsMaterialIndex, and userdata.

◆ 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 956 of file WEdge.h.

References _OEdgeList.

◆ duplicate()

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

Reimplemented in Freestyle::WXFace.

Definition at line 270 of file WEdge.cpp.

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

◆ frs_material()

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

Definition at line 276 of file WEdge.cpp.

◆ frs_materialIndex()

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

◆ getArea()

float Freestyle::WFace::getArea ( )

compute the area of the face

Definition at line 409 of file WEdge.cpp.

References Freestyle::a, norm(), 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 810 of file WEdge.h.

References Freestyle::WOEdge::GetaFace().

◆ getEdgeList()

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

accessors

Definition at line 716 of file WEdge.h.

References _OEdgeList.

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

◆ GetId()

int Freestyle::WFace::GetId ( )
inline

Definition at line 731 of file WEdge.h.

References _Id.

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 762 of file WEdge.h.

References _OEdgeList.

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

◆ GetMark()

◆ GetNextOEdge()

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

◆ GetNormal()

◆ GetOEdge()

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

Definition at line 721 of file WEdge.h.

References _OEdgeList.

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 380 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 815 of file WEdge.h.

References _VerticesNormals.

◆ GetPerVertexTexCoords()

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

Definition at line 820 of file WEdge.h.

References _VerticesTexCoords.

◆ GetPrevOEdge()

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

Definition at line 423 of file WEdge.cpp.

◆ getShape()

WShape * Freestyle::WFace::getShape ( )

Definition at line 445 of file WEdge.cpp.

References Freestyle::WVertex::GetVertex().

◆ GetVertex()

◆ GetVertexNormal() [1/2]

◆ GetVertexNormal() [2/2]

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

Returns the normal of the vertex iVertex for that face

Definition at line 838 of file WEdge.h.

References _OEdgeList, and _VerticesNormals.

◆ GetVertexTexCoords()

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

Returns the texture coords of the vertex of index.

Definition at line 832 of file WEdge.h.

References _VerticesTexCoords.

◆ 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 942 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 892 of file WEdge.h.

References _OEdgeList.

◆ MakeEdge()

◆ numberOfEdges()

◆ numberOfVertices()

◆ ResetUserData()

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

Reimplemented in Freestyle::WXFace.

Definition at line 970 of file WEdge.h.

References userdata.

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

◆ RetrieveBorderFaces()

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

Definition at line 787 of file WEdge.h.

References _OEdgeList.

◆ RetrieveVertexList()

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

◆ setEdgeList()

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

modifiers

Definition at line 906 of file WEdge.h.

References _OEdgeList.

◆ setFrsMaterialIndex()

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

Definition at line 931 of file WEdge.h.

References _FrsMaterialIndex.

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

◆ setId()

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

Definition at line 926 of file WEdge.h.

References _Id.

◆ setMark()

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

Definition at line 936 of file WEdge.h.

References _Mark.

◆ setNormal()

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

Definition at line 911 of file WEdge.h.

References _Normal.

◆ setNormalList()

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

Definition at line 916 of file WEdge.h.

References _VerticesNormals.

◆ setTexCoordsList()

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

Definition at line 921 of file WEdge.h.

References _VerticesTexCoords.

Member Data Documentation

◆ _FrsMaterialIndex

uint Freestyle::WFace::_FrsMaterialIndex
protected

Definition at line 699 of file WEdge.h.

Referenced by frs_materialIndex(), setFrsMaterialIndex(), WFace(), and WFace().

◆ _Id

int Freestyle::WFace::_Id
protected

Definition at line 698 of file WEdge.h.

Referenced by GetId(), and setId().

◆ _Mark

bool Freestyle::WFace::_Mark
protected

Definition at line 700 of file WEdge.h.

Referenced by GetMark(), setMark(), and WFace().

◆ _Normal

Vec3f Freestyle::WFace::_Normal
protected

Definition at line 692 of file WEdge.h.

Referenced by GetNormal(), and setNormal().

◆ _OEdgeList

◆ _VerticesNormals

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

Definition at line 695 of file WEdge.h.

Referenced by GetPerVertexNormals(), GetVertexNormal(), GetVertexNormal(), setNormalList(), and WFace().

◆ _VerticesTexCoords

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

Definition at line 696 of file WEdge.h.

Referenced by GetPerVertexTexCoords(), GetVertexTexCoords(), setTexCoordsList(), and WFace().

◆ userdata


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