[Bf-taskforce25] DerivedMesh stuff

joe joeedh at gmail.com
Tue Jun 2 21:31:08 CEST 2009


On Tue, Jun 2, 2009 at 10:47 AM, Brecht Van Lommel <brecht at blender.org> wrote:
> Hi Joe,
>
> Here's the patch. It contains some other stuff too which you can ignore,
> and applies to trunk revision 16885, bringing it up to date would be too
> much work now. It has iterators for all derivedmeshes, and also new
> derivedmeshes for metaball/nurbs/curves. Also there a system to iterate
> over data layers.
>
> http://users.telenet.be/blendix/dm_iterators_patch.zip

Thanks!

>
> I'm not so sure anymore iterators are that worthwhile, compared to just
> making a temporary array in many cases, but it depends on what you're
> doing. Extending the foreach* DM callback based functions that exist now
> also can work, it gives a bit less convenient api, but simpler
> implementation. Converting the subsurf to iterator form for example was
> quite difficult, but on the other hand it is already implemented in this
> patch of course, though maintaining this kind of code isn't ideal.
>
> Brecht.
>

I'm just doing faces for now, so plenty of time to evaluate if we want
to port over the rest of DerivedMesh.

Thanks,
Joe


More information about the Bf-taskforce25 mailing list