Changeset 5346
- Timestamp:
- Apr 28, 2015, 9:54:07 PM (9 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/field.tcl
r5325 r5346 1288 1288 } 1289 1289 set numPoints [$dataset GetNumberOfPoints] 1290 set dataAttrs [$dataset GetPointData] 1291 if { $dataAttrs == ""} { 1292 puts stderr "WARNING: No point data found" 1293 return 0 1294 } 1295 set array [$dataAttrs GetScalars] 1296 if { $array == ""} { 1297 puts stderr "WARNING: No scalar point data found" 1298 return 0 1299 } 1300 # Multi-component scalars (e.g. color scalars) are not supported 1301 if { [$array GetNumberOfComponents] != 1 } { 1302 return 0 1303 } 1304 set numTuples [$array GetNumberOfTuples] 1290 1305 set xv [blt::vector create \#auto] 1291 1306 for { set i 0 } { $i < $numPoints } { incr i } { … … 1294 1309 } 1295 1310 set yv [blt::vector create \#auto] 1296 set dataAttrs [$dataset GetPointData]1297 if { $dataAttrs == ""} {1298 puts stderr "WARNING: No point data found"1299 return 01300 }1301 set array [$dataAttrs GetScalars]1302 if { $array == ""} {1303 puts stderr "WARNING: No scalar point data found"1304 return 01305 }1306 # Multi-component scalars (e.g. color scalars) are not supported1307 if { [$array GetNumberOfComponents] != 1 } {1308 return 01309 }1310 set numTuples [$array GetNumberOfTuples]1311 1311 for { set i 0 } { $i < $numTuples } { incr i } { 1312 1312 $yv append [$array GetComponent $i 0]
Note: See TracChangeset
for help on using the changeset viewer.