Blender Git Loki

Git Commits -> Revision a30740c

Revision a30740c by Daniel Dunbar (master)
August 20, 2005, 03:08 (GMT)
- convert all DerivedMesh map functions to use index based
mapping (instead of Edit{Vert,Edge,Face} pointers)
- dropped convertToDispListMeshMapped (whew, glad of it too)
- added DerivedMesh drawMappedFaces function
- dropped EM suffix for DerivedMesh functions, it was neither
particularly correct nor descriptive
- converted test_index_mface to test_index_face that also corrects
MCol and TFace. Good thing we had three versions of this routine,
you never know when one might burn down.
- removed flipnorm_mesh, not used anymore (and was incorrect to
boot)

- Getting face select to work with modifiers turned out to be much
more complicated than expected. Reworked mapping architecture for
modifiers - basically elements in a DispListMesh are now required
to be stored in an order that corresponds exactly to original
ordering. MVert/MEdge/MFace all have a new flag ME_XXX_STEPINDEX
that is set on each element that is set on the first derived element
of each original element. I can't say the code to follow these
requirements for subsurf is particularly transparent, but on the
upside it is a reasonably consistent and simple system that is memory
efficient and allows keeping the DispListMesh structure.

- rewrote mirror modifier to be simpler/conform to new requirements
for mapped DispListMesh structure. This also means that mirror interacts
much better with incremental subsurf calculation (it used to recalc
one entire side on any topology change, now it generally avoids that).

- added EM_{init,free}_index_arrays and EM_get_{vert,edge,face}_for_index
functions to handle mapping indices back into appropriate EditMesh
structures.
- bug fix, make edges didn't recalc object data
- bug fix, initial image assignment to TFace's didn't recalc object data

- new feature, added circle select support for FACESELECT
- bug fix, creating new faces in editmode duplicated the TFACE active
flag - but there should only be one active tface
- bug fix, possible crash when deleting all faces in faceselect mode
on mesh with tfaces...

Still todo: TFace edge drawing is still not always correct in face
mode, in particular with a mirror modifier when mesh has edges (and
no preceeding subsurf). Have not yet decided how to deal with this.
Best solution is probably to do switch to meshes all having MEdge's,
in which case I can get rid of TFace edge flags (and need to recalc
modifiers on tface selection change).

Commit Details:

Full Hash: a30740c1964059e1e6d3ca652da324ff0d505a1a
SVN Revision: 5142
Parent Commit: d81a5ab
Lines Changed: +1157, -1164

25 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+21, -29) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+2, -3) (Diff)
/source/blender/blenkernel/BKE_subsurf.h (+1, -4) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+13, -6) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+10, -7) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+307, -210) (Diff)
/source/blender/blenkernel/intern/displist.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/exotic.c (+12, -12) (Diff)
/source/blender/blenkernel/intern/mesh.c (+30, -140) (Diff)
/source/blender/blenkernel/intern/modifier.c (+167, -220) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+328, -271) (Diff)
/source/blender/include/BIF_editmesh.h (+7, -0) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+6, -4) (Diff)
/source/blender/python/api2_2x/NMesh.c (+2, -2) (Diff)
/source/blender/radiosity/intern/source/radpostprocess.c (+1, -1) (Diff)
/source/blender/src/booleanops.c (+2, -2) (Diff)
/source/blender/src/buttons_editing.c (+1, -5) (Diff)
/source/blender/src/drawimage.c (+3, -2) (Diff)
/source/blender/src/drawobject.c (+120, -128) (Diff)
/source/blender/src/edit.c (+3, -1) (Diff)
/source/blender/src/editmesh.c (+60, -94) (Diff)
/source/blender/src/editmesh_mods.c (+21, -10) (Diff)
/source/blender/src/editmesh_tools.c (+1, -1) (Diff)
/source/blender/src/editview.c (+33, -11) (Diff)
/source/blender/src/vpaint.c (+5, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021