Changeset 432 for trunk/gui/vizservers/nanovis/VolumeRenderer.cpp
- Timestamp:
- May 5, 2006, 12:04:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/vizservers/nanovis/VolumeRenderer.cpp
r431 r432 168 168 float z_step = fabs(zNear-zFar)/n_slices; 169 169 int n_actual_slices = (int)(fabs(zNear-zFar)/z_step + 1); 170 171 //if no cloud 172 //n_actual_slices = 0; 173 170 174 actual_slices[cur_vol] = n_actual_slices; 171 175 polys[cur_vol] = new ConvexPolygon*[n_actual_slices]; 176 177 //if no cloud 178 //polys[cur_vol] = NULL; 172 179 173 180 float slice_z; … … 259 266 260 267 int counter = 0; 268 261 269 //transform slices and store them 262 270 for (int i=0; i<n_actual_slices; i++){ … … 291 299 total_rendered_slices++; 292 300 } 301 293 302 } //iterate all volumes 294 303 //fprintf(stderr, "total slices: %d\n", total_rendered_slices); … … 705 714 void VolumeRenderer::switch_volume_mode() { volume_mode = (!volume_mode); } 706 715 716 void VolumeRenderer::enable_volume(int index){ 717 volume[index]->enable(); 718 } 719 720 void VolumeRenderer::disable_volume(int index){ 721 volume[index]->disable(); 722 }
Note: See TracChangeset
for help on using the changeset viewer.