Blender V5.0
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 677 of file WEdge.h.

Constructor & Destructor Documentation

◆ WFace() [1/2]

◆ WFace() [2/2]

Freestyle::WFace::WFace ( WFace & iBrother)

◆ ~WFace()

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

Definition at line 701 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 944 of file WEdge.h.

References _OEdgeList.

◆ duplicate()

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

Reimplemented in Freestyle::WXFace.

Definition at line 270 of file WEdge.cpp.

References WFace().

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

◆ frs_material()

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

Definition at line 276 of file WEdge.cpp.

References _FrsMaterialIndex, and getShape().

◆ 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 _OEdgeList, Freestyle::a, norm(), and v2.

Referenced by Freestyle::gts_vertex_principal_directions().

◆ GetBordingFace() [1/2]

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

Definition at line 788 of file WEdge.h.

References _OEdgeList, and WFace().

◆ GetBordingFace() [2/2]

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

Definition at line 798 of file WEdge.h.

References Freestyle::WOEdge::GetaFace(), and WFace().

◆ getEdgeList()

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

accessors

Definition at line 704 of file WEdge.h.

References _OEdgeList.

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

◆ GetId()

int Freestyle::WFace::GetId ( )
inline

Definition at line 719 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 750 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 709 of file WEdge.h.

References _OEdgeList, and i.

◆ 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 _OEdgeList, e, and v.

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

◆ GetPerVertexNormals()

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

Definition at line 803 of file WEdge.h.

References _VerticesNormals.

◆ GetPerVertexTexCoords()

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

Definition at line 808 of file WEdge.h.

References _VerticesTexCoords.

◆ GetPrevOEdge()

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

Definition at line 423 of file WEdge.cpp.

References _OEdgeList.

◆ getShape()

WShape * Freestyle::WFace::getShape ( )

Definition at line 445 of file WEdge.cpp.

References Freestyle::WVertex::GetVertex().

Referenced by frs_material().

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

References _OEdgeList, _VerticesNormals, and i.

◆ GetVertexTexCoords()

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

Returns the texture coords of the vertex of index.

Definition at line 820 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 930 of file WEdge.h.

Referenced by MakeEdge().

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

References _OEdgeList.

◆ MakeEdge()

◆ numberOfEdges()

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

◆ numberOfVertices()

◆ ResetUserData()

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

Reimplemented in Freestyle::WXFace.

Definition at line 958 of file WEdge.h.

References userdata.

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

◆ RetrieveBorderFaces()

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

Definition at line 775 of file WEdge.h.

References _OEdgeList, and WFace().

◆ RetrieveVertexList()

◆ setEdgeList()

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

modifiers

Definition at line 894 of file WEdge.h.

References _OEdgeList.

◆ setFrsMaterialIndex()

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

Definition at line 919 of file WEdge.h.

References _FrsMaterialIndex.

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

◆ setId()

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

Definition at line 914 of file WEdge.h.

References _Id.

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

◆ setMark()

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

Definition at line 924 of file WEdge.h.

References _Mark.

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

◆ setNormal()

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

Definition at line 899 of file WEdge.h.

References _Normal.

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

◆ setNormalList()

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

Definition at line 904 of file WEdge.h.

References _VerticesNormals.

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

◆ setTexCoordsList()

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

Definition at line 909 of file WEdge.h.

References _VerticesTexCoords.

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

Member Data Documentation

◆ _FrsMaterialIndex

uint Freestyle::WFace::_FrsMaterialIndex
protected

Definition at line 687 of file WEdge.h.

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

◆ _Id

int Freestyle::WFace::_Id
protected

Definition at line 686 of file WEdge.h.

Referenced by GetId(), setId(), and WFace().

◆ _Mark

bool Freestyle::WFace::_Mark
protected

Definition at line 688 of file WEdge.h.

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

◆ _Normal

Vec3f Freestyle::WFace::_Normal
protected

Definition at line 680 of file WEdge.h.

Referenced by GetNormal(), setNormal(), and WFace().

◆ _OEdgeList

◆ _VerticesNormals

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

Definition at line 683 of file WEdge.h.

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

◆ _VerticesTexCoords

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

Definition at line 684 of file WEdge.h.

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

◆ userdata


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