Changeset 895
- Timestamp:
- Feb 18, 2008, 10:31:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/Command.cpp
r889 r895 35 35 * o Create R2, matrix, etc. libraries. 36 36 */ 37 38 //#define ISO_TEST 37 39 38 40 #include "Command.h" … … 666 668 } 667 669 670 #ifdef ISO_TEST 671 for (i=0; i < nslots; i++) { 672 if (i == 0) data[4*i + 3] = 0.0f; 673 else if (i == (nslots - 1)) data[4*i + 3] = 0.0f; 674 else if (i >= 245 && i < (nslots - 1)) 675 { 676 data[4*i + 3] = 1.0; 677 } 678 else 679 { 680 data[4*i + 3] = 0.0f; 681 } 682 } 683 #endif 684 668 685 // find or create this transfer function 669 686 TransferFunction *tf; … … 911 928 std::stringstream fdata; 912 929 fdata.write(buf.bytes(),buf.size()); 930 #ifndef ISO_TEST 913 931 err = load_volume_stream(n, fdata); 914 //err = load_volume_stream2(n, fdata); 932 #else 933 err = load_volume_stream2(n, fdata); 934 #endif 915 935 if (err) { 916 936 Tcl_AppendResult(interp, err.remark().c_str(), (char*)NULL);
Note: See TracChangeset
for help on using the changeset viewer.