Changeset 5109


Ignore:
Timestamp:
Mar 9, 2015 3:07:18 PM (9 years ago)
Author:
ldelgass
Message:

merge r5090:r5091 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/gui/scripts/cloud.tcl

    r4925 r5109  
    1 # -*- mode: tcl; indent-tabs-mode: nil -*- 
     1# -*- mode: tcl; indent-tabs-mode: nil -*-
    22# ----------------------------------------------------------------------
    33#  COMPONENT: cloud - represents the mesh for a cloud of points
     
    2121    private variable _cloud "";         # lib obj representing this cloud
    2222    private variable _units "" ;        # system of units for x, y, z
    23     private variable _axis2label;       # 
    24     private variable _axis2units;       # 
     23    private variable _axis2label;       #
     24    private variable _axis2units;       #
    2525    private variable _limits;           # limits x, y, z
    2626    private common _xp2obj ;            # Used for fetch/release ref counting
     
    3232    private variable _isValid 0;        # Indicates if the data is valid.
    3333
    34     constructor {xmlobj path} { 
    35         # defined below 
    36     }
    37     destructor { 
    38         # defined below 
     34    constructor {xmlobj path} {
     35        # defined below
     36    }
     37    destructor {
     38        # defined below
    3939    }
    4040    public method points {}
     
    4848    public method hints {{key ""}}
    4949    public method numpoints {} {
    50         return $_numPoints
     50        return $_numPoints
    5151    }
    5252    public method isvalid {} {
     
    119119    foreach u $_units axis { x y z } {
    120120        if { $u != "" } {
    121             set _axis2units($axis) $u 
     121            set _axis2units($axis) $u
    122122        } else {
    123             set _axis2units($axis) $first 
     123            set _axis2units($axis) $first
    124124        }
    125125        lappend list $_axis2units($axis)
     
    156156            } else {
    157157                foreach { min max } $_limits($axis) break
    158                 if {$value < $min} { 
     158                if {$value < $min} {
    159159                    set min $value
    160160                }
    161                 if {$value > $max} { 
     161                if {$value > $max} {
    162162                    set max $value
    163163                }
     
    166166        }
    167167        append _points "$x $y $z\n"
    168         incr _numPoints
     168        incr _numPoints
    169169    }
    170170    append out "DATASET POLYDATA\n"
Note: See TracChangeset for help on using the changeset viewer.