examples/torus.cpp

00001 /* library includes */
00002 #include <geom/BSplineSurface.h>
00003 #include <geom/EntityList.h>
00004 
00005 /* local declarations */
00006 using namespace GE;
00007 
00008 
00009 int main (int argc, char **argv)
00010 {
00011   EntityList<BSplineSurface>            entityList;
00012   BSplineSurface                        *bSplineSurface = NULL;
00013   GE::EntityList<GE::BSplineSurface>    entityList1;
00014   GE::BSplineSurface                    *bSplineSurface1 = NULL;
00015   GE::BSplineSurface                    bSplineSurface2;
00016   
00017   // These DO NOT get linked
00018   BSplineSurface::DoNothing1 ();
00019   BSplineSurface::DoNothing3 ();
00020   BSplineSurface::DoNothing4 ();
00021   BSplineSurface::DoNothing2 ();
00022   
00023   // These get linked
00024   GE::BSplineSurface::DoNothing1 ();
00025   GE::BSplineSurface::DoNothing3 ();
00026   GE::BSplineSurface::DoNothing4 ();
00027   GE::BSplineSurface::DoNothing2 ();
00028   
00029   // These get linked
00030   entityList.Append_Entity (bSplineSurface);
00031   bSplineSurface->Change_Rational (TRUE);
00032   
00033   // These get linked
00034   entityList1.Append_Entity (bSplineSurface1);
00035   bSplineSurface2.Change_Rational (TRUE);
00036 
00037   // These get linked
00038   bSplineSurface1->Change_Rational (TRUE);
00039   
00040   return (ReturnCode);
00041 }

Generated on Mon Oct 31 14:39:26 2005 by  doxygen 1.4.5