Subversion Repositories gelsvn

Rev

Rev 601 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 601 Rev 609
Line 415... Line 415...
415
			if(use_normals)
415
			if(use_normals)
416
				{
416
				{
417
					vnormal(function, &v, &n, delta);			   /* normal */
417
					vnormal(function, &v, &n, delta);			   /* normal */
418
					(*gnormals).push_back(n);			   /* save vertex */
418
					(*gnormals).push_back(n);			   /* save vertex */
419
				}
419
				}
420
			vid = gvertices->size()-1;
420
			vid = int(gvertices->size()-1);
421
			edges.setedge(c1->i, c1->j, c1->k, c2->i, c2->j, c2->k, vid);
421
			edges.setedge(c1->i, c1->j, c1->k, c2->i, c2->j, c2->k, vid);
422
			return vid;
422
			return vid;
423
		}
423
		}
424
 
424
 
425
 
425
 
Line 649... Line 649...
649
										 int _bounds, 
649
										 int _bounds, 
650
										 vector<VERTEX>& _gvertices,
650
										 vector<VERTEX>& _gvertices,
651
										 vector<NORMAL>& _gnormals,
651
										 vector<NORMAL>& _gnormals,
652
										 vector<TRIANGLE>& _gtriangles,
652
										 vector<TRIANGLE>& _gtriangles,
653
										 bool _use_normals):
653
										 bool _use_normals):
-
 
654
			
-
 
655
        gnormals(&_gnormals), gvertices(&_gvertices), gtriangles(&_gtriangles),
654
			function(_function), size(_size), delta(_delta), bounds(_bounds),
656
        function(_function), size(_size),delta(_delta), bounds(_bounds),
655
			centers(HASHSIZE), corners(HASHSIZE), 
657
        use_normals(_use_normals), centers(HASHSIZE), corners(HASHSIZE)
656
			gvertices(&_gvertices),
-
 
657
			gnormals(&_gnormals),
-
 
658
			gtriangles(&_gtriangles),
-
 
659
			use_normals(_use_normals)
-
 
660
		{}
658
		{}
661
 
659
 
662
		void PROCESS::march(int mode, float x, float y, float z)
660
		void PROCESS::march(int mode, float x, float y, float z)
663
		{
661
		{
664
			int noabort;
662
			int noabort;