Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 8079d983ecf371717db799dd75bd56c2 > files > 49

libopenrm1-1.5.2-2mdv2007.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html><head><title>OpenRM - RMV Library (rmviso.c)</title></head>
<body bgcolor=white fgcolor=black>
<table width="100%" border=2 cellspacing=0 cellpadding=0 bgcolor="khaki" valign="center">
<th><img src="./images/ormsg.gif">
</th>
</table>
<spacer type=vertical size=15>
<h2>Index of OpenRM - RMV Library</h2>
<spacer type=vertical size=15>
<a name="rmvK3MarchingCubes"> 
<pre><b>
 RMenum rmvK3MarchingCubes (RMvertex3D (*appgridfunc)(int i, int j, int k, int isize, int jsize, int ksize, float *baseX, float *baseY, float *baseZ),
		            float (*appdatafunc)(int i, int j, int k, float *data),
			    float (*appdata2func)(int i, int j, int k, float *data),
			    const RMvisMap *vmap,
			    int iusize,
			    int ivsize,
			    int iwsize,
			    float isolevel,
			    RMnode *n,
			    float *baseX,
			    float *baseY,
			    float *baseZ,
			    float *baseData)
</b></pre>
<pre>
 RMvertex3D (*appgridfunc)(int i, int j, int k) - a handle to a
    caller-supplied function that returns an RMvertex3D (x, y, z)
    corresponding to the grid point (i, j, k) (input).
   
 float (*appdatafunc)(int i, int j, int k) - a handle to a
    caller-supplied function that returns a float which is the scalar
    value at the grid point (i, j, k) (input).
			    
 float (*appdata2func)(int i, int j, int k) - a handle to a
    caller-supplied function that returns a float which is the scalar
    value at the grid point (i).  This value is used in conjunction
    with the RMvismap to compute vertex color (input).

 const RMvisMap *vmap - a handle to an RMvisMap object (input).
			    
 int iusize, ivsize, iwsize - int specifying the (u, v, w) dimensions
    of the data grid (input).

 float isolevel - a float specifying the isosurface scalar value
    (input).
			    
 RMnode *n - a handle to an RMnode (modified).

 float *baseX, *baseY, *baseZ, *baseData (input) - these are caller-supplied
     pointers to arrays corresponding to the x, y, and z coordinates, and
     the scalar field being isocontoured. These arrays are not modified
     by  rmv3KMarchingCubes, but instead as passed to the application-
     supplied callback routines. The objective of these pointers is to
     help alleviate the burden of requiring the application to maintain
     static pointers to data and coordinates.
</pre>
<menu><P>
 Computes an isosurface using the Marching Cubes algorithm.  The
 caller-supplied functions specify the uniform structured grid with
 scalar values at the grid points.  An RMvisMap can be used along with
 the secondary data function to control vertex coloring via transfer
 functions.
</P>
<P>
 This routine assumes a valid output RMnode to which the triangles
 generated by Marching Cubes are added.  Upon success, RM_CHILL is
 returned and the RMnode contains the geometry for the isosurface.
 Otherwise, RM_WHACKED is returned.
</P></menu>
<i>librmv library source file: rmviso.c </i><hr width="75%">
</body></html>