Blender Git Commit Log

Git Commits -> Revision be286db

Revision be286db by Joseph Eagar (master)
June 10, 2009, 10:06 (GMT)
(NOTE: DO NOT TEST)

Start of planned DerivedMesh refactoring. The mface
interfaces in DerivedMesh have been renamed to reflect
their new status as tesselated face interfaces (rather
then the primary ones, which are now stored in mpolys).

short review: mpolys store "primary" face data, while
mfaces store the tesselated form of the mesh (generally
as triangles). mpolys are defined by mloops, and each
mpoly defines a range of loops it "owns" in the main
mloop array.

I've also added basic read-only face iterators, which
are implemented for CDDM, ccgsubsurf, and the bmeditmesh
derivedmesh. Since faces are now variable-length things,
trying to implement the same interface as mfaces would not
have worked well (especially since faces are stored as
an mpoly + a range of mloops).

I figure first we can evaluate these simple read-only
face iterators, then decide if a) we like using iterators
in DerivedMesh, b) how much of it should use them, and c)
if we want write-capable iterators.

I plan to write official docs on this design after I get
it more stable; I'm committing now because there's a rather
lot of changes, and I might do a merge soon.

Commit Details:

Full Hash: be286db32201eb7d3233669d5d8f54e31b8608b1
SVN Revision: 20780
Parent Commit: 36961a2
Lines Changed: +1281, -451

35 Modified Paths:

/source/blender/blenkernel/BKE_cdderivedmesh.h (+16, -4) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+80, -16) (Diff)
/source/blender/blenkernel/BKE_multires.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/BME_conversions.c (+5, -4) (Diff)
/source/blender/blenkernel/intern/booleanops.c (+15, -13) (Diff)
/source/blender/blenkernel/intern/bvhutils.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+329, -57) (Diff)
/source/blender/blenkernel/intern/cloth.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+202, -69) (Diff)
/source/blender/blenkernel/intern/displist.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/editderivedbmesh.c (+173, -23) (Diff)
/source/blender/blenkernel/intern/exotic.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/fluidsim.c (+8, -7) (Diff)
/source/blender/blenkernel/intern/modifier.c (+102, -91) (Diff)
/source/blender/blenkernel/intern/multires.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/particle.c (+21, -21) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+16, -16) (Diff)
/source/blender/blenkernel/intern/softbody.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+211, -57) (Diff)
/source/blender/bmesh/bmesh.h (+3, -0) (Diff)
/source/blender/bmesh/intern/bmesh_construct.c (+25, -0) (Diff)
/source/blender/editors/armature/meshlaplacian.c (+4, -4) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+5, -4) (Diff)
/source/blender/editors/physics/editparticle.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+3, -3) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+4, -4) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_snap.c (+5, -5) (Diff)
/source/blender/render/intern/source/convertblender.c (+13, -13) (Diff)
/source/blender/render/intern/source/strand.c (+2, -2) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+5, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021