- Timestamp:
- May 19, 2015, 10:18:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r5540 r5579 1306 1306 return [Rappture::DxToVtk $data] 1307 1307 } 1308 # unirect3d (deprecated) 1309 if {[info exists _comp2unirect3d($cname)]} { 1310 set vector [$_comp2unirect3d($cname) values] 1311 set label $cname 1312 regsub -all { } $label {_} label 1313 set elemSize [numComponents $cname] 1314 set numValues [expr [$vector length] / $elemSize] 1315 append out "# vtk DataFile Version 3.0\n" 1316 append out "[hints label]\n" 1317 append out "ASCII\n" 1318 append out [$_comp2unirect3d($cname) vtkdata] 1319 append out "POINT_DATA $numValues\n" 1320 if {$elemSize == 3} { 1321 append out "VECTORS $label double\n" 1322 } else { 1323 append out "SCALARS $label double $elemSize\n" 1324 append out "LOOKUP_TABLE default\n" 1325 } 1326 # values for VTK are x-fastest 1327 append out [$vector range 0 end] 1328 append out "\n" 1329 return $out 1330 } 1308 1331 # Points on mesh: Construct VTK file output. 1309 1332 if { [info exists _comp2mesh($cname)] } {
Note: See TracChangeset
for help on using the changeset viewer.