Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/scene_graph/IndexedFaceSet.h
| Context not available. | |||||
| }; | }; | ||||
| /*! User-specified face and edge marks for feature edge detection */ | /*! User-specified face and edge marks for feature edge detection */ | ||||
| /* XXX Why in hel not use an enum here too? */ | /* XXX Why in hell not use an enum here too? */ | ||||
| typedef unsigned char FaceEdgeMark; | typedef unsigned char FaceEdgeMark; | ||||
| static const FaceEdgeMark FACE_MARK = 1 << 0; | static const FaceEdgeMark FACE_MARK = 1 << 0; | ||||
| static const FaceEdgeMark EDGE_MARK_V1V2 = 1 << 1; | static const FaceEdgeMark EDGE_MARK_V1V2 = 1 << 1; | ||||
| Context not available. | |||||
| /*! Builds an indexed face set | /*! Builds an indexed face set | ||||
| * iVertices | * iVertices | ||||
| * The array of object vertices 3D coordinates (for all faces). | * The array of object vertices 3D coordinates (for all faces). | ||||
| * If iCopy != 0, the array is copied; you must desallocate iVertices. Else you must not. | * If iCopy != 0, the array is copied; you must deallocate iVertices. Else you must not. | ||||
| * iVSize | * iVSize | ||||
| * The size of iVertices (must be a multiple of 3) | * The size of iVertices (must be a multiple of 3) | ||||
| * iNormals | * iNormals | ||||
| * The array of object normals 3D coordinates. | * The array of object normals 3D coordinates. | ||||
| * If iCopy != 0, the array is copied; you must desallocate iNormals. Else you must not. | * If iCopy != 0, the array is copied; you must deallocate iNormals. Else you must not. | ||||
| * iNSize | * iNSize | ||||
| * The size of iNormals | * The size of iNormals | ||||
| * iMaterials | * iMaterials | ||||
| Context not available. | |||||
| * - TRIANGLE_STRIP: the face indices describe a triangle strip | * - TRIANGLE_STRIP: the face indices describe a triangle strip | ||||
| * - TRIANGLE_FAN : the face indices describe a triangle fan | * - TRIANGLE_FAN : the face indices describe a triangle fan | ||||
| * - TRIANGLES : the face indices describe single triangles | * - TRIANGLES : the face indices describe single triangles | ||||
| * If iCopy != 0, the array is copied; you must desallocate iFaceStyle. Else you must not. | * If iCopy != 0, the array is copied; you must deallocate iFaceStyle. Else you must not. | ||||
| * iVIndices, | * iVIndices, | ||||
| * Array of vertices indices. | * Array of vertices indices. | ||||
| * The integers contained in this array must be multiple of 3. | * The integers contained in this array must be multiple of 3. | ||||
| * If iCopy != 0, the array is copied; you must desallocate iVIndices. Else you must not. | * If iCopy != 0, the array is copied; you must deallocate iVIndices. Else you must not. | ||||
| * iVISize | * iVISize | ||||
| * The size of iVIndices. | * The size of iVIndices. | ||||
| * iNIndices | * iNIndices | ||||
| * Array of normals indices. | * Array of normals indices. | ||||
| * The integers contained in this array must be multiple of 3. | * The integers contained in this array must be multiple of 3. | ||||
| * If iCopy != 0, the array is copied; you must desallocate iNIndices. Else you must not. | * If iCopy != 0, the array is copied; you must deallocate iNIndices. Else you must not. | ||||
| * iNISize | * iNISize | ||||
| * The size of iNIndices | * The size of iNIndices | ||||
| * iMIndices | * iMIndices | ||||
| Context not available. | |||||
| return *this; | return *this; | ||||
| } | } | ||||
| /*! Desctructor | /*! Destructor | ||||
| * desallocates all the ressources | * deallocates all the resources | ||||
| */ | */ | ||||
| virtual ~IndexedFaceSet(); | virtual ~IndexedFaceSet(); | ||||
| Context not available. | |||||