Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: all of this file. 00022 * 00023 * Contributor(s): none yet. 00024 * 00025 * ***** END GPL LICENSE BLOCK ***** 00026 */ 00027 #ifndef BKE_SUBSURF_H 00028 #define BKE_SUBSURF_H 00029 00034 struct DMGridAdjacency; 00035 struct DMGridData; 00036 struct DerivedMesh; 00037 struct EditMesh; 00038 struct IndexNode; 00039 struct ListBase; 00040 struct Mesh; 00041 struct MultiresSubsurf; 00042 struct Object; 00043 struct PBVH; 00044 struct SubsurfModifierData; 00045 struct _CCGEdge; 00046 struct _CCGFace; 00047 struct _CCGSubsurf; 00048 struct _CCGVert; 00049 00050 /**************************** External *****************************/ 00051 00052 struct DerivedMesh *subsurf_make_derived_from_derived( 00053 struct DerivedMesh *dm, 00054 struct SubsurfModifierData *smd, 00055 int useRenderParams, float (*vertCos)[3], 00056 int isFinalCalc, int forEditMode, int inEditMode); 00057 00058 void subsurf_calculate_limit_positions(struct Mesh *me, float (*positions_r)[3]); 00059 00060 /**************************** Internal *****************************/ 00061 00062 typedef struct CCGDerivedMesh { 00063 DerivedMesh dm; 00064 00065 struct _CCGSubSurf *ss; 00066 int freeSS; 00067 int drawInteriorEdges, useSubsurfUv; 00068 00069 struct {int startVert; struct _CCGVert *vert;} *vertMap; 00070 struct {int startVert; int startEdge; struct _CCGEdge *edge;} *edgeMap; 00071 struct {int startVert; int startEdge; 00072 int startFace; struct _CCGFace *face;} *faceMap; 00073 00074 short *edgeFlags; 00075 char *faceFlags; 00076 00077 struct PBVH *pbvh; 00078 struct ListBase *fmap; 00079 struct IndexNode *fmap_mem; 00080 00081 struct DMGridData **gridData; 00082 struct DMGridAdjacency *gridAdjacency; 00083 int *gridOffset; 00084 struct _CCGFace **gridFaces; 00085 00086 struct { 00087 struct MultiresModifierData *mmd; 00088 int local_mmd; 00089 00090 int lvl, totlvl; 00091 float (*orco)[3]; 00092 00093 struct Object *ob; 00094 int modified; 00095 00096 void (*update)(DerivedMesh*); 00097 } multires; 00098 } CCGDerivedMesh; 00099 00100 #endif 00101