Changeset 3936 for trunk/packages/vizservers
- Timestamp:
- Sep 18, 2013, 9:49:01 AM (11 years ago)
- Location:
- trunk/packages/vizservers/nanovis
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Camera.cpp
r3630 r3936 286 286 } 287 287 288 TRACE("near: %g far: %g", _near, _far); 289 288 290 // Extend the bounds a bit 289 291 _near = 0.99 * _near - (_far - _near) * 0.5; 290 292 _far = 1.01 * _far + (_far - _near) * 0.5; 293 294 TRACE("after extend: near: %g far: %g", _near, _far); 291 295 292 296 // Ensure near is closer than far -
trunk/packages/vizservers/nanovis/Camera.h
r3630 r3936 55 55 } 56 56 57 floatgetDistance() const57 double getDistance() const 58 58 { 59 59 return vrmath::Vector3f(_focalPoint - _position).length(); -
trunk/packages/vizservers/nanovis/Flow.cpp
r3935 r3936 300 300 { 301 301 if (_volume == NULL) { 302 ERROR("Called with NULL _volume"); 302 303 return false; 303 304 } -
trunk/packages/vizservers/nanovis/Flow.h
r3935 r3936 109 109 _volume = makeVolume(unirect, vdata); 110 110 delete [] vdata; 111 delete unirect; 111 112 initVolume(); 112 113 scaleVectorField(); 113 delete unirect;114 114 } 115 115 -
trunk/packages/vizservers/nanovis/FlowCmd.cpp
r3935 r3936 269 269 u2dPtr = new Rappture::Unirect2d(nComponents); 270 270 if (u2dPtr->parseBuffer(interp, buf) != TCL_OK) { 271 delete unirect; 271 272 delete u2dPtr; 272 273 return TCL_ERROR; … … 296 297 } else { 297 298 TRACE("header is %.14s", buf.bytes()); 299 unirect = new Rappture::Unirect3d(nComponents); 298 300 if (!unirect->importDx(result, nComponents, length, bytes)) { 299 301 Tcl_AppendResult(interp, result.remark(), (char *)NULL);
Note: See TracChangeset
for help on using the changeset viewer.