Wiki Markup |
---|
{alias:tub}
h2. Name
*tub* — Tube generation
h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*tub* \[_size_] \[*las*] \[*col*] \[*dra*] \[*sav*]
{panel}
h2. Description
Polygon display in tube mode.
h2. Arguments
{indent}No argument. Draw a tube for polydata using default settings.{indent}
_size_
{indent}Apply size of tube, relative to 1.{indent}
*sav*
{indent}Will save the graphics of the tube as a dataset.{indent}
*las*
{indent}Draw the last line back to first point in the cell.{indent}
*cel*
{indent}Tube the cells independently.{indent}
*col* \[*ran*]
{indent}Tube the cells with color shift (at random).{indent}
h2. Examples
h3. Ex.1: Random lines displayed as tubes
{noformat:|borderWidth=1|bgColor=#eeeeee} |
Name
tub — Tube generation
Syntax
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
tub [size] [las] [col] [dra] [sav] |
Description
Polygon display in tube mode.
Arguments
size
sav
las
cel
col [ran]
Examples
Ex.1: Random lines displayed as tubes
No Format | ||||
---|---|---|---|---|
| ||||
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.
...
Random lines displayed as tubes
See also
cur - Curve display, dis - Display active dataset, pot - Polygon with tube