Function:ns2cvra
From S2PLOT
(Difference between revisions)
Revision as of 22:27, 6 January 2009 S2plot admin (Talk | contribs) ← Previous diff |
Revision as of 23:34, 6 January 2009 S2plot admin (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
==ns2cvra== | ==ns2cvra== | ||
+ | Rendering volume of objects. | ||
==Prototype== | ==Prototype== | ||
<code><pre> | <code><pre> | ||
+ | int ns2cvra(float ***grid, | ||
+ | int adim, int bdim, int cdim, | ||
+ | int a1, int a2, int b1, int b2, int c1, int c2, | ||
+ | float *tr, char trans, | ||
+ | float datamin, float datamax, | ||
+ | float(*ialphafn)(float*)); | ||
</pre></code> | </pre></code> | ||
==Description== | ==Description== | ||
+ | Volume rendering object, but with a function for alpha rather than a linear ramp. The ialphafn is called with a float (ptr) argument being the data value (which can be outside the (datamin, datamax) range of course) and should return a value between 0 (transparent) and 1 (opaque). | ||
==See Also== | ==See Also== |
Revision as of 23:34, 6 January 2009
ns2cvra
Rendering volume of objects.
Prototype
int ns2cvra(float ***grid,
int adim, int bdim, int cdim,
int a1, int a2, int b1, int b2, int c1, int c2,
float *tr, char trans,
float datamin, float datamax,
float(*ialphafn)(float*));
Description
Volume rendering object, but with a function for alpha rather than a linear ramp. The ialphafn is called with a float (ptr) argument being the data value (which can be outside the (datamin, datamax) range of course) and should return a value between 0 (transparent) and 1 (opaque).
See Also
Code Example
Back to S2PLOT function list.
Back to template page.