Blender
V3.3
|
#include <IndexedFaceSet.h>
Public Types | |
enum | TRIANGLES_STYLE { TRIANGLE_STRIP , TRIANGLE_FAN , TRIANGLES } |
typedef unsigned char | FaceEdgeMark |
Public Member Functions | |
IndexedFaceSet () | |
IndexedFaceSet (float *iVertices, unsigned iVSize, float *iNormals, unsigned iNSize, FrsMaterial **iMaterials, unsigned iMSize, float *iTexCoords, unsigned iTSize, unsigned iNumFaces, unsigned *iNumVertexPerFace, TRIANGLES_STYLE *iFaceStyle, FaceEdgeMark *iFaceEdgeMarks, unsigned *iVIndices, unsigned iVISize, unsigned *iNIndices, unsigned iNISize, unsigned *iMIndices, unsigned iMISize, unsigned *iTIndices, unsigned iTISize, unsigned iCopy=1) | |
IndexedFaceSet (const IndexedFaceSet &iBrother) | |
void | swap (IndexedFaceSet &ioOther) |
IndexedFaceSet & | operator= (const IndexedFaceSet &iBrother) |
virtual | ~IndexedFaceSet () |
virtual void | accept (SceneVisitor &v) |
virtual void | ComputeBBox () |
virtual const float * | vertices () const |
virtual const float * | normals () const |
virtual const FrsMaterial *const * | frs_materials () const |
virtual const float * | texCoords () const |
virtual const unsigned | vsize () const |
virtual const unsigned | nsize () const |
virtual const unsigned | msize () const |
virtual const unsigned | tsize () const |
virtual const unsigned | numFaces () const |
virtual const unsigned * | numVertexPerFaces () const |
virtual const TRIANGLES_STYLE * | trianglesStyle () const |
virtual const unsigned char * | faceEdgeMarks () const |
virtual const unsigned * | vindices () const |
virtual const unsigned * | nindices () const |
virtual const unsigned * | mindices () const |
virtual const unsigned * | tindices () const |
virtual const unsigned | visize () const |
virtual const unsigned | nisize () const |
virtual const unsigned | misize () const |
virtual const unsigned | tisize () const |
![]() | |
Rep () | |
Rep (const Rep &iBrother) | |
void | swap (Rep &ioOther) |
Rep & | operator= (const Rep &iBrother) |
virtual | ~Rep () |
virtual const BBox< Vec3f > & | bbox () const |
Id | getId () const |
const string & | getName () const |
const string & | getLibraryPath () const |
const FrsMaterial * | frs_material () const |
virtual void | setBBox (const BBox< Vec3f > &iBox) |
void | setId (const Id &id) |
void | setName (const string &name) |
void | setLibraryPath (const string &path) |
void | setFrsMaterial (const FrsMaterial &iMaterial) |
![]() | |
BaseObject () | |
virtual | ~BaseObject () |
virtual int | destroy () |
int | addRef () |
int | release () |
Static Public Attributes | |
static const FaceEdgeMark | FACE_MARK = 1 << 0 |
static const FaceEdgeMark | EDGE_MARK_V1V2 = 1 << 1 |
static const FaceEdgeMark | EDGE_MARK_V2V3 = 1 << 2 |
static const FaceEdgeMark | EDGE_MARK_V3V1 = 1 << 3 |
Protected Attributes | |
float * | _Vertices |
float * | _Normals |
FrsMaterial ** | _FrsMaterials |
float * | _TexCoords |
unsigned | _VSize |
unsigned | _NSize |
unsigned | _MSize |
unsigned | _TSize |
unsigned | _NumFaces |
unsigned * | _NumVertexPerFace |
TRIANGLES_STYLE * | _FaceStyle |
FaceEdgeMark * | _FaceEdgeMarks |
unsigned * | _VIndices |
unsigned * | _NIndices |
unsigned * | _MIndices |
unsigned * | _TIndices |
unsigned | _VISize |
unsigned | _NISize |
unsigned | _MISize |
unsigned | _TISize |
Definition at line 20 of file IndexedFaceSet.h.
typedef unsigned char Freestyle::IndexedFaceSet::FaceEdgeMark |
User-specified face and edge marks for feature edge detection
Definition at line 31 of file IndexedFaceSet.h.
Triangles description style:
Enumerator | |
---|---|
TRIANGLE_STRIP | |
TRIANGLE_FAN | |
TRIANGLES |
Definition at line 23 of file IndexedFaceSet.h.
Freestyle::IndexedFaceSet::IndexedFaceSet | ( | ) |
Builds an empty indexed face set.
Definition at line 12 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, and _VSize.
Freestyle::IndexedFaceSet::IndexedFaceSet | ( | float * | iVertices, |
unsigned | iVSize, | ||
float * | iNormals, | ||
unsigned | iNSize, | ||
FrsMaterial ** | iMaterials, | ||
unsigned | iMSize, | ||
float * | iTexCoords, | ||
unsigned | iTSize, | ||
unsigned | iNumFaces, | ||
unsigned * | iNumVertexPerFace, | ||
TRIANGLES_STYLE * | iFaceStyle, | ||
FaceEdgeMark * | iFaceEdgeMarks, | ||
unsigned * | iVIndices, | ||
unsigned | iVISize, | ||
unsigned * | iNIndices, | ||
unsigned | iNISize, | ||
unsigned * | iMIndices, | ||
unsigned | iMISize, | ||
unsigned * | iTIndices, | ||
unsigned | iTISize, | ||
unsigned | iCopy = 1 |
||
) |
Builds an indexed face set iVertices The array of object vertices 3D coordinates (for all faces). If iCopy != 0, the array is copied; you must deallocate iVertices. Else you must not. iVSize The size of iVertices (must be a multiple of 3) iNormals The array of object normals 3D coordinates. If iCopy != 0, the array is copied; you must deallocate iNormals. Else you must not. iNSize The size of iNormals iMaterials The array of materials iMSize The size of iMaterials iTexCoords The array of texture coordinates. iTSize The size of iTexCoords (must be multiple of 2) iNumFaces The number of faces iNumVertexPerFace Array containing the number of vertices per face. iFaceStyle Array containing the description style of each faces. The style belongs to:
Definition at line 36 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, and _VSize.
Freestyle::IndexedFaceSet::IndexedFaceSet | ( | const IndexedFaceSet & | iBrother | ) |
Builds an indexed face set from an other indexed face set
Definition at line 151 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, _VSize, faceEdgeMarks(), mindices(), misize(), msize(), nindices(), nisize(), normals(), nsize(), numFaces(), numVertexPerFaces(), texCoords(), tindices(), tisize(), trianglesStyle(), tsize(), vertices(), vindices(), visize(), and vsize().
|
virtual |
Destructor deallocates all the resources
Definition at line 214 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MSize, _NIndices, _Normals, _NumVertexPerFace, _TexCoords, _TIndices, _Vertices, and _VIndices.
|
virtual |
Accept the corresponding visitor
Reimplemented from Freestyle::Rep.
Definition at line 274 of file IndexedFaceSet.cpp.
References Freestyle::Rep::accept(), and v.
|
virtual |
Compute the Bounding Box
Implements Freestyle::Rep.
Definition at line 280 of file IndexedFaceSet.cpp.
References _Vertices, _VSize, Freestyle::Rep::setBBox(), and v.
|
inlinevirtual |
Definition at line 222 of file IndexedFaceSet.h.
References _FaceEdgeMarks.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 177 of file IndexedFaceSet.h.
References _FrsMaterials.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inlinevirtual |
Definition at line 237 of file IndexedFaceSet.h.
References _MIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 257 of file IndexedFaceSet.h.
References _MISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 197 of file IndexedFaceSet.h.
References _MSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 232 of file IndexedFaceSet.h.
References _NIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 252 of file IndexedFaceSet.h.
References _NISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 172 of file IndexedFaceSet.h.
References _Normals.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 192 of file IndexedFaceSet.h.
References _NSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 207 of file IndexedFaceSet.h.
References _NumFaces.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 212 of file IndexedFaceSet.h.
References _NumVertexPerFace.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inline |
Definition at line 148 of file IndexedFaceSet.h.
References swap().
|
inline |
Definition at line 118 of file IndexedFaceSet.h.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, _VSize, Freestyle::Rep::swap(), and swap().
Referenced by operator=().
|
inlinevirtual |
Definition at line 182 of file IndexedFaceSet.h.
References _TexCoords.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 242 of file IndexedFaceSet.h.
References _TIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 262 of file IndexedFaceSet.h.
References _TISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 217 of file IndexedFaceSet.h.
References _FaceStyle.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 202 of file IndexedFaceSet.h.
References _TSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Accessors
Definition at line 167 of file IndexedFaceSet.h.
References _Vertices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 227 of file IndexedFaceSet.h.
References _VIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 247 of file IndexedFaceSet.h.
References _VISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 187 of file IndexedFaceSet.h.
References _VSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
protected |
Definition at line 281 of file IndexedFaceSet.h.
Referenced by faceEdgeMarks(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 280 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), trianglesStyle(), and ~IndexedFaceSet().
|
protected |
Definition at line 270 of file IndexedFaceSet.h.
Referenced by frs_materials(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 285 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), mindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 290 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), misize(), and swap().
|
protected |
Definition at line 275 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), msize(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 284 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 289 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nisize(), and swap().
|
protected |
Definition at line 269 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), normals(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 274 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nsize(), and swap().
|
protected |
Definition at line 278 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), numFaces(), and swap().
|
protected |
Definition at line 279 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), numVertexPerFaces(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 271 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), texCoords(), and ~IndexedFaceSet().
|
protected |
Definition at line 286 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), tindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 291 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and tisize().
|
protected |
Definition at line 276 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and tsize().
|
protected |
Definition at line 268 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), swap(), vertices(), and ~IndexedFaceSet().
|
protected |
Definition at line 283 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), vindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 288 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and visize().
|
protected |
Definition at line 273 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), swap(), and vsize().
|
static |
Definition at line 33 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 34 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 35 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 32 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().