Changeset 3508 for trunk/gui


Ignore:
Timestamp:
Mar 15, 2013, 4:47:18 PM (12 years ago)
Author:
gah
Message:

fix for no dim tag with old style nodes and elements

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r3491 r3508  
    807807            set _comp2dims($cname) "3D"
    808808            set _comp2dx($cname)  [$_fldObj get -decode no $cname.dx]
    809             if 1 {
     809            if 0 {
    810810                set data  [$_fldObj get -decode yes $cname.dx]
    811811                set file "/tmp/junk.dx"
  • trunk/gui/scripts/mesh.tcl

    r3480 r3508  
    147147        set _limits($axis) ""
    148148    }
    149     GetDimension $path
    150149    set u [$_mesh get units]
    151150    if {"" != $u} {
     
    394393    set _type "vtk"
    395394
     395    GetDimension $path
    396396    # Create a VTK file with the mesh in it. 
    397397    set _vtkdata [$_xmlobj get $path.vtk]
     
    415415    set output [$reader GetOutput]
    416416    foreach { xmin xmax ymin ymax zmin zmax } [$output GetBounds] break
    417     set _dim 3;                         # Hard coding all vtk meshes to 3D?
    418417    set _limits(x) [list $xmin $xmax]
    419418    set _limits(y) [list $ymin $ymax]
    420419    set _limits(z) [list $zmin $zmax]
    421     if { $zmin >= $zmax } {
    422         set _dim 2
    423     }
    424420    file delete $tmpfile
    425421    rename $output ""
     
    430426itcl::body Rappture::Mesh::ReadGrid { path } {
    431427    set _type "grid"
     428
     429    GetDimension $path
    432430    set numUniform 0
    433431    set numRectilinear 0
     
    943941    set _type "unstructured"
    944942
     943    GetDimension $path
    945944    # Step 1: Verify that there's only one cell tag of any kind.
    946945    set numCells 0
Note: See TracChangeset for help on using the changeset viewer.