[Bf-committers] displist.c, surfaces and buffers

Joe Eagar joeedh at gmail.com
Tue Nov 20 00:04:40 CET 2007


I don't think the data is cached anywhere; make****** functions are 
called by the depsgraph to update things when their data (e.g. cv 
points) changes.

Joe

Emmanuel Stone wrote:
> Hello,
>
> This is a Blender architecture/design question.
>
> In displist.c::makeDispListSurf() :
>
> - The vertex buffer for the tesselated surface is malloc()ed up every time, why?
> - Is it possible to get the old buffer?
>
> ...  displist.c: 1347
> """
> 				dl= MEM_callocN(sizeof(DispList), "makeDispListsurf");
> 				dl->verts= MEM_callocN(len*3*sizeof(float), "dlverts");
> """
>
> libNurbana uses deltas to modify the surface incrementally/on demand,
> which is much faster than recalculating the entire surface for every
> modification. At the moment I am caching the results of the previous
> tesselation internally within libNurbana, but if this data still
> exists somewhere within blender, I would prefer to use that.
>
>
> -Emmanuel
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>   



More information about the Bf-committers mailing list