[Bf-committers] derived mesh in modifier stack

Tobias Oelgarte tobias.oelgarte at googlemail.com
Sun Oct 10 17:46:50 CEST 2010


Hi,

As far as i found out, a DerivedMesh is created as soon as some modifier 
needs to construct its own geometry. There are the utility functions 
get_dm() and get_cddm() in MOD_util. What is their purpose? I looked at 
what they are doing and it looked like get_cddm() would ensure a 
DerivedMesh is created. But somehow it does not update the vertices and 
normals.

How im supposed to access the vertex normals that would exist after the 
last modifier worked on them, before my own modifier, if it is just a 
deform modifier, that does not deliver a new DerivedMesh?

In other words: Can i update the DerivedMesh passed to deformVerts()? Or 
is there a better way to access the current normal data? Vertices seam 
not to be updated after get_dm() or get_cddm().

Best wishes Tobias Oelgarte


More information about the Bf-committers mailing list