Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /examples/curve-lic/main.c
ViewVC logotype

Annotation of /examples/curve-lic/main.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (view) (download) (as text)

1 : jhr 2868 /*! \file main.c
2 :     *
3 :     * \author John Reppy
4 :     */
5 :    
6 :     /*
7 : jhr 3349 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     *
9 :     * COPYRIGHT (c) 2015 The University of Chicago
10 : jhr 2868 * All rights reserved.
11 :     */
12 :    
13 : jhr 2872 #include "rcast.h"
14 :     #include "lic.h"
15 :     #include <unistd.h>
16 :     #include "teem/air.h"
17 :    
18 : jhr 2868 int main (int argc, char **argv)
19 :     {
20 :     // Phase 1: use the RCast library to find the isosurface
21 : jhr 2872 RCAST_World_t *rcWrld = RCAST_Init();
22 : jhr 2868
23 : jhr 2872 // nrrd for getting result of raycast phase; values are distance from
24 :     // viewing plane to isosurface. NaN is used to mark rays that didn't
25 :     // hit the front of the surface
26 :     Nrrd *nDepth = nrrdNew();
27 :    
28 : jhr 2868 // Phase 2: using the results of Phase 1, perform LIC on
29 :     // the isosurface using the LIC library
30 : jhr 2872 LIC_World_t *licWrld = LIC_Init();
31 : jhr 2868
32 :     }

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0