Blender V4.3
Freestyle::FEdgeSharp Class Reference

#include <Silhouette.h>

Inherits Freestyle::FEdge.

Public Member Functions

virtual string getExactTypeName () const
 
 FEdgeSharp ()
 
 FEdgeSharp (SVertex *vA, SVertex *vB)
 
 FEdgeSharp (FEdgeSharp &iBrother)
 
virtual ~FEdgeSharp ()
 
virtual FEdgeduplicate ()
 
const Vec3rnormalA ()
 
const Vec3rnormalB ()
 
uint aFrsMaterialIndex () const
 
const FrsMaterialaFrsMaterial () const
 
uint bFrsMaterialIndex () const
 
const FrsMaterialbFrsMaterial () const
 
bool aFaceMark () const
 
bool bFaceMark () const
 
void setNormalA (const Vec3r &iNormal)
 
void setNormalB (const Vec3r &iNormal)
 
void setaFrsMaterialIndex (uint i)
 
void setbFrsMaterialIndex (uint i)
 
void setaFaceMark (bool iFaceMark)
 
void setbFaceMark (bool iFaceMark)
 
- Public Member Functions inherited from Freestyle::FEdge
virtual real getLength2D () const
 
virtual Id getId () const
 
 FEdge ()
 
 FEdge (SVertex *vA, SVertex *vB)
 
 FEdge (FEdge &iBrother)
 
virtual ~FEdge ()
 
SVertexvertexA ()
 
SVertexvertexB ()
 
SVertexoperator[] (const ushort &i) const
 
Nature::EdgeNature getNature () const
 
FEdgenextEdge ()
 
FEdgepreviousEdge ()
 
SShapeshape ()
 
int invisibility () const
 
ViewEdgeviewedge () const
 
Vec3r center3d ()
 
Vec3r center2d ()
 
const Polygon3raFace () const
 
const Vec3rgetOccludeeIntersection ()
 
bool getOccludeeEmpty ()
 
bool isSmooth () const
 
bool isInImage () const
 
bool isTemporary () const
 
void setVertexA (SVertex *vA)
 
void setVertexB (SVertex *vB)
 
void setId (const Id &id)
 
void setNextEdge (FEdge *iEdge)
 
void setPreviousEdge (FEdge *iEdge)
 
void setNature (Nature::EdgeNature iNature)
 
void setViewEdge (ViewEdge *iViewEdge)
 
void setaFace (Polygon3r &iFace)
 
void setOccludeeIntersection (const Vec3r &iPoint)
 
void setOccludeeEmpty (bool iempty)
 
void setSmooth (bool iFlag)
 
void setIsInImage (bool iFlag)
 
void setTemporary (bool iFlag)
 
const SVertexmin2d () const
 
const SVertexmax2d () const
 
Id shape_id () const
 
const SShapeshape () const
 
float shape_importance () const
 
const int qi () const
 
occluder_container::const_iterator occluders_begin () const
 
occluder_container::const_iterator occluders_end () const
 
bool occluders_empty () const
 
int occluders_size () const
 
const Polygon3roccludee () const
 
const SShapeoccluded_shape () const
 
bool occludee_empty () const
 
real z_discontinuity () const
 
int viewedge_nature () const
 
Vec3r orientation2d () const
 
Vec3r orientation3d () const
 
virtual Interface0DIterator verticesBegin ()
 
virtual Interface0DIterator verticesEnd ()
 
virtual Interface0DIterator pointsBegin (float t=0.0f)
 
virtual Interface0DIterator pointsEnd (float t=0.0f)
 
- Public Member Functions inherited from Freestyle::Interface1D
 Interface1D ()
 
virtual ~Interface1D ()
 
virtual uint getTimeStamp () const
 
void setTimeStamp (uint iTimeStamp)
 

Protected Attributes

Vec3r _aNormal
 
Vec3r _bNormal
 
uint _aFrsMaterialIndex
 
uint _bFrsMaterialIndex
 
bool _aFaceMark
 
bool _bFaceMark
 
- Protected Attributes inherited from Freestyle::FEdge
SVertex_VertexA
 
SVertex_VertexB
 
Id _Id
 
Nature::EdgeNature _Nature
 
FEdge_NextEdge
 
FEdge_PreviousEdge
 
ViewEdge_ViewEdge
 
Polygon3r _aFace
 
Vec3r _occludeeIntersection
 
bool _occludeeEmpty
 
bool _isSmooth
 
bool _isInImage
 
bool _isTemporary
 
- Protected Attributes inherited from Freestyle::Interface1D
uint _timeStamp
 

Additional Inherited Members

- Static Public Member Functions inherited from Freestyle::FEdge
static SVertexCommonVertex (FEdge *iEdge1, FEdge *iEdge2)
 
- Public Attributes inherited from Freestyle::FEdge
void * userdata
 

Detailed Description

Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial edge of the input mesh. It can be a silhouette, a crease or a border. If it is a crease edge, then it is bordered by two faces of the mesh. Face a lies on its right whereas Face b lies on its left. If it is a border edge, then it doesn't have any face on its right, and thus Face a = 0.

Definition at line 1130 of file Silhouette.h.

Constructor & Destructor Documentation

◆ FEdgeSharp() [1/3]

Freestyle::FEdgeSharp::FEdgeSharp ( )
inline

Default constructor.

Definition at line 1147 of file Silhouette.h.

References _aFaceMark, _aFrsMaterialIndex, _bFaceMark, and _bFrsMaterialIndex.

Referenced by duplicate().

◆ FEdgeSharp() [2/3]

Freestyle::FEdgeSharp::FEdgeSharp ( SVertex * vA,
SVertex * vB )
inline

Builds an FEdgeSharp going from vA to vB.

Definition at line 1154 of file Silhouette.h.

References _aFaceMark, _aFrsMaterialIndex, _bFaceMark, and _bFrsMaterialIndex.

◆ FEdgeSharp() [3/3]

Freestyle::FEdgeSharp::FEdgeSharp ( FEdgeSharp & iBrother)
inline

Copy constructor.

Definition at line 1161 of file Silhouette.h.

References _aFaceMark, _aFrsMaterialIndex, _aNormal, _bFaceMark, _bFrsMaterialIndex, and _bNormal.

◆ ~FEdgeSharp()

virtual Freestyle::FEdgeSharp::~FEdgeSharp ( )
inlinevirtual

Destructor.

Definition at line 1172 of file Silhouette.h.

Member Function Documentation

◆ aFaceMark()

bool Freestyle::FEdgeSharp::aFaceMark ( ) const
inline

Returns the face mark of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and thus false is returned.

Definition at line 1221 of file Silhouette.h.

References _aFaceMark.

Referenced by Freestyle::SShape::SplitEdgeIn2().

◆ aFrsMaterial()

const FrsMaterial & Freestyle::FEdgeSharp::aFrsMaterial ( ) const

Returns the material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no material.

Definition at line 391 of file Silhouette.cpp.

References _aFrsMaterialIndex, Freestyle::FEdge::_VertexA, Freestyle::SShape::frs_material(), and Freestyle::SVertex::shape().

◆ aFrsMaterialIndex()

uint Freestyle::FEdgeSharp::aFrsMaterialIndex ( ) const
inline

Returns the index of the material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no material.

Definition at line 1199 of file Silhouette.h.

References _aFrsMaterialIndex.

Referenced by Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ bFaceMark()

bool Freestyle::FEdgeSharp::bFaceMark ( ) const
inline

Returns the face mark of the face lying on the left of the FEdge.

Definition at line 1227 of file Silhouette.h.

References _bFaceMark.

Referenced by Freestyle::SShape::SplitEdgeIn2().

◆ bFrsMaterial()

const FrsMaterial & Freestyle::FEdgeSharp::bFrsMaterial ( ) const

Returns the material of the face lying on the left of the FEdge.

Definition at line 396 of file Silhouette.cpp.

References _bFrsMaterialIndex, Freestyle::FEdge::_VertexA, Freestyle::SShape::frs_material(), and Freestyle::SVertex::shape().

◆ bFrsMaterialIndex()

uint Freestyle::FEdgeSharp::bFrsMaterialIndex ( ) const
inline

Returns the index of the material of the face lying on the left of the FEdge.

Definition at line 1210 of file Silhouette.h.

References _bFrsMaterialIndex.

Referenced by Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ duplicate()

virtual FEdge * Freestyle::FEdgeSharp::duplicate ( )
inlinevirtual

Cloning method.

Reimplemented from Freestyle::FEdge.

Definition at line 1175 of file Silhouette.h.

References FEdgeSharp().

◆ getExactTypeName()

virtual string Freestyle::FEdgeSharp::getExactTypeName ( ) const
inlinevirtual

Returns the string "FEdgeSharp".

Reimplemented from Freestyle::FEdge.

Definition at line 1141 of file Silhouette.h.

◆ normalA()

const Vec3r & Freestyle::FEdgeSharp::normalA ( )
inline

Returns the normal to the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no normal.

Definition at line 1184 of file Silhouette.h.

References _aNormal.

Referenced by Freestyle::SShape::SplitEdgeIn2().

◆ normalB()

const Vec3r & Freestyle::FEdgeSharp::normalB ( )
inline

Returns the normal to the face lying on the left of the FEdge.

Definition at line 1190 of file Silhouette.h.

References _bNormal.

Referenced by Freestyle::SShape::SplitEdgeIn2().

◆ setaFaceMark()

void Freestyle::FEdgeSharp::setaFaceMark ( bool iFaceMark)
inline

Sets the face mark of the face lying on the right of the FEdge.

Definition at line 1257 of file Silhouette.h.

References _aFaceMark.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setaFrsMaterialIndex()

void Freestyle::FEdgeSharp::setaFrsMaterialIndex ( uint i)
inline

Sets the index of the material lying on the right of the FEdge.

Definition at line 1245 of file Silhouette.h.

References _aFrsMaterialIndex.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setbFaceMark()

void Freestyle::FEdgeSharp::setbFaceMark ( bool iFaceMark)
inline

Sets the face mark of the face lying on the left of the FEdge.

Definition at line 1263 of file Silhouette.h.

References _bFaceMark.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setbFrsMaterialIndex()

void Freestyle::FEdgeSharp::setbFrsMaterialIndex ( uint i)
inline

Sets the index of the material lying on the left of the FEdge.

Definition at line 1251 of file Silhouette.h.

References _bFrsMaterialIndex.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setNormalA()

void Freestyle::FEdgeSharp::setNormalA ( const Vec3r & iNormal)
inline

Sets the normal to the face lying on the right of the FEdge.

Definition at line 1233 of file Silhouette.h.

References _aNormal.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setNormalB()

void Freestyle::FEdgeSharp::setNormalB ( const Vec3r & iNormal)
inline

Sets the normal to the face lying on the left of the FEdge.

Definition at line 1239 of file Silhouette.h.

References _bNormal.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), and Freestyle::SShape::SplitEdgeIn2().

Member Data Documentation

◆ _aFaceMark

bool Freestyle::FEdgeSharp::_aFaceMark
protected

Definition at line 1136 of file Silhouette.h.

Referenced by aFaceMark(), FEdgeSharp(), FEdgeSharp(), FEdgeSharp(), and setaFaceMark().

◆ _aFrsMaterialIndex

uint Freestyle::FEdgeSharp::_aFrsMaterialIndex
protected

◆ _aNormal

Vec3r Freestyle::FEdgeSharp::_aNormal
protected

Definition at line 1132 of file Silhouette.h.

Referenced by FEdgeSharp(), normalA(), and setNormalA().

◆ _bFaceMark

bool Freestyle::FEdgeSharp::_bFaceMark
protected

Definition at line 1137 of file Silhouette.h.

Referenced by bFaceMark(), FEdgeSharp(), FEdgeSharp(), FEdgeSharp(), and setbFaceMark().

◆ _bFrsMaterialIndex

uint Freestyle::FEdgeSharp::_bFrsMaterialIndex
protected

◆ _bNormal

Vec3r Freestyle::FEdgeSharp::_bNormal
protected

Definition at line 1133 of file Silhouette.h.

Referenced by FEdgeSharp(), normalB(), and setNormalB().


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