Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

tub — Tube generation

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

tub [size] [las] [col] [dra] [sav] [vesc] [nsi] [map]

Description

Polygon display in tube mode.

Arguments

No argument. Draw a tube for polydata using default settings.

size

Apply size of tube, relative to 1.

sav

Will save the graphics of the tube as a dataset.

vesc [factor]

Vary size by scalars. Will draw the tube according to the scalar values. Used in 3D log display.

To set up a size directly in meters use a negative value; i.e. tub -200 vesc $vfac -- will display the tube with a max size of approximately 200 meters.

vfac is calculated like this:  

set hmm [gvar doublebr 489] ;  # get millimeter i x direction

set kmm 200 ; # the tube size in this example

set vfac [expr $kmm / $hmm] ; # the scalar factor in this example

las

Draw the last line back to first point in the cell.

cel

Tube the cells independently.

col [ran]

Tube the cells with color shift (at random).

nsi [number_of_sides]

Specify number_of_sides in the tube.

map

Map the scalars of the tube data.

Examples

Ex.1: Random lines displayed as tubes

No Format
bgColor#eeeeee
borderWidth1
z                            ;# Erase screen
    
   win demo                     ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
 
      spe bgc whi                  ;# Specify background color to white
       
mak ran 6                    ;# Make random points
    
   cur sav nodraw               ;# Generate spline curve
      
 col red                      ;# Red color
        tub 10                       ;# Tube the line

       mak ran 7                    ;# Make random points
        cur sav nodraw               ;# Generate spline curve
   
    col gre                      ;# Green color
        tub 15                       ;# Tube the line
      
 mak ran 5                    ;# Make random points
        cur sav nodraw               ;# Generate spline curve
        col tur                      ;# Turqouise color
 
      tub 23                       ;# Tube the line
{noformat}

The

...

above

...

example

...

produces

...

this

...

image.

...

Image Added
Random lines displayed as tubes

See also

cur - Curve display, dis - Display active dataset, pot - Polygon with tube