Subversion Repositories gelsvn

Rev

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

Rev 403 Rev 406
Line 95... Line 95...
95
			for(int i=0;i<scalars.size(); ++i)
95
			for(int i=0;i<scalars.size(); ++i)
96
				max_G = max(abs(scalars[i]), max_G);
96
				max_G = max(abs(scalars[i]), max_G);
97
			renderer = new ScalarFieldRenderer(mani, smooth, scalars, max_G);
97
			renderer = new ScalarFieldRenderer(mani, smooth, scalars, max_G);
98
			
98
			
99
		}
99
		}
-
 
100
		else if(short_name == "amb")
-
 
101
		{
-
 
102
			static CVar<float> smoothing("display.ambient_occlusion_renderer.smoothing",1);
-
 
103
			vector<double> scalars;
-
 
104
			mean_curvatures(mani, scalars, smoothing);
-
 
105
			double max_G = 0;
-
 
106
			for(int i=0;i<scalars.size(); ++i)
-
 
107
				max_G = max(abs(scalars[i]), max_G);
-
 
108
			renderer = new AmbientOcclusionRenderer(mani, smooth, scalars, max_G);
-
 
109
			
-
 
110
		}
-
 
111
		else if(short_name == "cop")
-
 
112
		{
-
 
113
			static CVar<float> smoothing("display.patina_renderer.smoothing",1);
-
 
114
			vector<double> scalars;
-
 
115
			mean_curvatures(mani, scalars, smoothing);
-
 
116
			double max_G = 0;
-
 
117
			for(int i=0;i<scalars.size(); ++i)
-
 
118
				max_G = max(abs(scalars[i]), max_G);
-
 
119
			renderer = new CopperRenderer(mani, smooth, scalars, max_G,bsphere_radius);
-
 
120
			
-
 
121
		}
100
		else
122
		else
101
			renderer = new NormalRenderer(mani,smooth);
123
			renderer = new NormalRenderer(mani,smooth);
102
		
124
		
103
	}
125
	}
104
	view_ctrl.set_gl_modelview();
126
	view_ctrl.set_gl_modelview();