diff options
author | Ton Roosendaal <ton@blender.org> | 2004-07-09 00:38:27 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-07-09 00:38:27 +0400 |
commit | f77bc7eb7d56239f9dfab3663b79c474f8763bbd (patch) | |
tree | d5402fb4a8a2996945b8ef7607e927886434dce5 /source/blender/blenkernel/BKE_displist.h | |
parent | 6757a8159b7a64a4ac1444046f967bb2b88909ad (diff) |
Quite a large one this time... but now we have:
Edges in Mesh
- adds automatic when you use creases. For other situations; call the
void make_edges(Mesh *me) in mesh.c. Of course, once in editmode the
edges are automatically recreated.
- in F9 buttons you can add/remove edges too
- both for Mesh and DisplistMesh, so it speeds up drawing quite some in
wireframe
- render for edges can't work... edges have no material nor tface nor col..
so here still the faces are rendered in wire
Creases in Subsurf
- based on the code by Chris McFarlen
- main changes is that now edges are used, saving quite some data in file
- use SHIFT+E in editmode to set edges-sharpness. values go from 0-1
- in F9 buttons you can set draw-crease mode. It draws now blended from
wire color to edge-select color (as provided in Theme)
Known issue: setting sharpness on 1 cube (subdiv 2) gives weird results
with some values... Chris, can you check?
Further; code cleanups, changing 0 in NULL when needed, no warnings, etc etc
Diffstat (limited to 'source/blender/blenkernel/BKE_displist.h')
-rw-r--r-- | source/blender/blenkernel/BKE_displist.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_displist.h b/source/blender/blenkernel/BKE_displist.h index 18b421f1780..8b258a69862 100644 --- a/source/blender/blenkernel/BKE_displist.h +++ b/source/blender/blenkernel/BKE_displist.h @@ -64,8 +64,9 @@ struct EditMesh; typedef struct DispListMesh DispListMesh; struct DispListMesh { - int totvert, totface; + int totvert, totedge, totface; struct MVert *mvert; + struct MEdge *medge; struct MCol *mcol; struct MFace *mface; struct TFace *tface; @@ -102,11 +103,6 @@ typedef struct DispList { unsigned int *col1, *col2; struct DispListMesh *mesh; - /* Begin NASTY_NLA_STUFF */ -// int *offset, *run; /* Used to index into the bone & weight lists */ -// struct Bone *bones; -// float *weights; - /* End NASTY_NLA_STUFF */ } DispList; extern void copy_displist(struct ListBase *lbn, struct ListBase *lb); |