Changeset 5538 for trunk


Ignore:
Timestamp:
May 17, 2015, 11:02:25 PM (9 years ago)
Author:
ldelgass
Message:

Fix for unirect3d mesh (I'm pretty sure this method is not actually used)

File:
1 edited

Legend:

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

    r5537 r5538  
    2020
    2121itcl::class Rappture::Unirect3d {
    22     constructor {xmlobj field cname {extents 1}} { # defined below }
     22    constructor {xmlobj field cname {numComponents 1}} { # defined below }
    2323    destructor { # defined below }
    2424
     
    5555# Constructor
    5656# ----------------------------------------------------------------------
    57 itcl::body Rappture::Unirect3d::constructor {xmlobj field cname {extents 1}} {
     57itcl::body Rappture::Unirect3d::constructor {xmlobj field cname {numComponents 1}} {
    5858    if {![Rappture::library isvalid $xmlobj]} {
    5959        error "bad value \"$xmlobj\": should be Rappture::library"
     
    7070    GetSize $m "yaxis.numpoints" _yNum
    7171    GetSize $m "zaxis.numpoints" _zNum
    72     set _compNum $extents
     72    set _compNum $numComponents
    7373    foreach {key path} {
    7474        group   about.group
     
    145145# ----------------------------------------------------------------------
    146146itcl::body Rappture::Unirect3d::mesh {} {
    147     set dx [expr {($_xMax - $_xMin) / double($_xNum)}]
    148     set dy [expr {($_yMax - $_yMin) / double($_yNum)}]
    149     set dz [expr {($_zMax - $_zMin) / double($_zNum)}]
     147    set dx [expr {($_xMax - $_xMin) / double($_xNum - 1)}]
     148    set dy [expr {($_yMax - $_yMin) / double($_yNum - 1)}]
     149    set dz [expr {($_zMax - $_zMin) / double($_zNum - 1)}]
    150150    foreach {a b c} $_axisOrder break
    151151    for { set i 0 } { $i < [set _${a}Num] } { incr i } {
Note: See TracChangeset for help on using the changeset viewer.