Dev:Source/Modeling/Mesh Edit Mode Structs

提供: wiki
< Dev:Source‎ | Modeling
2010年4月3日 (土) 21:33時点におけるwiki>Terrywallworkによる版
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Edit Mode Structs

EditVert

Add Explanation Here

typedef struct [[BlenderDev/EditVert|EditVert]]
{ struct [[BlenderDev/EditVert|EditVert]] '''next, '''prev, *vn; float no[3]; float co[3]; short xs, ys; unsigned char f, h, f1, f2; short fast; /* only 0 or 1, for editmesh_fastmalloc */ short totweight;    /* __NLA */ int hash; struct [[BlenderDev/MDeformWeight|MDeformWeight]] '''dw; /''' __NLA */ int keyindex; /* original index #, for restoring  key information */
} EditVert;

EditEdge

Add Explanation Here

typedef struct [[BlenderDev/EditEdge|EditEdge]]
{ struct [[BlenderDev/EditEdge|EditEdge]] '''next, '''prev; struct [[BlenderDev/EditVert|EditVert]] '''v1, '''v2, *vn; short f1, f2; /* short, f1 is (ab)used in subdiv */ unsigned char f, h, dir, seam; float crease; short fast;   /* only 0 or 1, for editmesh_fastmalloc */ short fgoni;  /* index for fgon, for search */ [[BlenderDev/HashEdge|HashEdge]] hash;
} EditEdge;

EditFace

Add Explanation Here

typedef struct [[BlenderDev/EditFace|EditFace]]
{ struct [[BlenderDev/EditFace|EditFace]] '''next, '''prev; struct [[BlenderDev/EditVert|EditVert]] '''v1, '''v2, '''v3, '''v4; struct [[BlenderDev/EditEdge|EditEdge]] '''e1, '''e2, '''e3, '''e4; float n[3], cent[3]; short xs, ys;  /* selection */ struct [[BlenderDev/TFace|TFace]] tf; /* a copy of original tface. */ unsigned char mat_nr, flag; unsigned char f, f1, h, puno; unsigned char fast;   /* only 0 or 1, for editmesh_fastmalloc */ unsigned char fgonf;  /* flag for fgon options */
} EditFace;

EditMesh

Add Explanation Here

typedef struct [[BlenderDev/EditMesh|EditMesh]]
{ [[BlenderDev/ListBase|ListBase]] verts, edges, faces; [[BlenderDev/HashEdge|HashEdge]] *hashedgetab;  /* this is for the editmesh_fastmalloc */ [[BlenderDev/EditVert|EditVert]] '''allverts, '''curvert; [[BlenderDev/EditEdge|EditEdge]] '''alledges, '''curedge; [[BlenderDev/EditFace|EditFace]] '''allfaces, '''curface;  struct [[BlenderDev/DerivedMesh|DerivedMesh]] *derived;
} EditMesh;