|
Blender
V2.93
|
#include <IndexedFaceSet.h>
Inherits Freestyle::Rep.
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 |
Public Member Functions inherited from Freestyle::Rep | |
| 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) |
Public Member Functions inherited from Freestyle::BaseObject | |
| 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 34 of file IndexedFaceSet.h.
| typedef unsigned char Freestyle::IndexedFaceSet::FaceEdgeMark |
User-specified face and edge marks for feature edge detection
Definition at line 45 of file IndexedFaceSet.h.
Triangles description style:
| Enumerator | |
|---|---|
| TRIANGLE_STRIP | |
| TRIANGLE_FAN | |
| TRIANGLES | |
Definition at line 37 of file IndexedFaceSet.h.
| Freestyle::IndexedFaceSet::IndexedFaceSet | ( | ) |
Builds an empty indexed face set
Definition at line 26 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 50 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 165 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 228 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 288 of file IndexedFaceSet.cpp.
References Freestyle::Rep::accept(), and v.
|
virtual |
Compute the Bounding Box
Implements Freestyle::Rep.
Definition at line 294 of file IndexedFaceSet.cpp.
References _Vertices, _VSize, Freestyle::Rep::setBBox(), and v.
|
inlinevirtual |
Definition at line 236 of file IndexedFaceSet.h.
References _FaceEdgeMarks.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 191 of file IndexedFaceSet.h.
References _FrsMaterials.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inlinevirtual |
Definition at line 251 of file IndexedFaceSet.h.
References _MIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 271 of file IndexedFaceSet.h.
References _MISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 211 of file IndexedFaceSet.h.
References _MSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 246 of file IndexedFaceSet.h.
References _NIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 266 of file IndexedFaceSet.h.
References _NISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 186 of file IndexedFaceSet.h.
References _Normals.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 206 of file IndexedFaceSet.h.
References _NSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 221 of file IndexedFaceSet.h.
References _NumFaces.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 226 of file IndexedFaceSet.h.
References _NumVertexPerFace.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inline |
Definition at line 162 of file IndexedFaceSet.h.
References swap().
|
inline |
Definition at line 132 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 196 of file IndexedFaceSet.h.
References _TexCoords.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 256 of file IndexedFaceSet.h.
References _TIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 276 of file IndexedFaceSet.h.
References _TISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 231 of file IndexedFaceSet.h.
References _FaceStyle.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 216 of file IndexedFaceSet.h.
References _TSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Accessors
Definition at line 181 of file IndexedFaceSet.h.
References _Vertices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 241 of file IndexedFaceSet.h.
References _VIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 261 of file IndexedFaceSet.h.
References _VISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 201 of file IndexedFaceSet.h.
References _VSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
protected |
Definition at line 295 of file IndexedFaceSet.h.
Referenced by faceEdgeMarks(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 294 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), trianglesStyle(), and ~IndexedFaceSet().
|
protected |
Definition at line 284 of file IndexedFaceSet.h.
Referenced by frs_materials(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 299 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), mindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 304 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), misize(), and swap().
|
protected |
Definition at line 289 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), msize(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 298 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 303 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nisize(), and swap().
|
protected |
Definition at line 283 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), normals(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 288 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), nsize(), and swap().
|
protected |
Definition at line 292 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), numFaces(), and swap().
|
protected |
Definition at line 293 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), numVertexPerFaces(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 285 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), texCoords(), and ~IndexedFaceSet().
|
protected |
Definition at line 300 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), tindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 305 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and tisize().
|
protected |
Definition at line 290 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and tsize().
|
protected |
Definition at line 282 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), swap(), vertices(), and ~IndexedFaceSet().
|
protected |
Definition at line 297 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), vindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 302 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), swap(), and visize().
|
protected |
Definition at line 287 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), swap(), and vsize().
|
static |
Definition at line 47 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 48 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 49 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 46 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().