View Full Version : How to define vertex gradient on a mesh
04-15-2009, 10:19 AM
Anybody know how to define vertex gradient on a mesh?
06-25-2009, 08:52 AM
You mean gradient taking vertex color into account or vertex position into account?
Again, if it is former then still it depends on the type of mesh you are planning to compute gradient.
If the mesh is regular it is simple
f'(x) = [f(x+1) - f(x-1)]/ 2*del(x)
but if the mesh is irregular or some other shape then it depends on the geometry of the underline mesh.
In that case you need to consider the curvilinear geometry for computing gradient.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.