Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:pot}
h2. Name

*pot* — Polygon with tube

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*pot* \[_size_ ] \[*las*] \[*col*] \[*dra*] \[*sav*]

{panel}

h2. Description

Polygon display in tube mode. 

h2. Arguments

_size_ 
{indent}Size of tube.{indent} 
*las* 
{indent}Display also the last line in the cell connecting it back to the first point.{indent} 
*col* \[*ran*] 
{indent}Draw the cells with color shift \[at random].{indent} 
*sav* 
{indent}Save the diplayed version as active data.{indent} 

h2. Examples

h3. Ex.1: Draw polygon tubes

{noformat:|borderWidth=1|bgColor=#eeeeee}
        z                        ;# Erase screen
        win demo                 ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
        spe bgc whi              ;# Specify background color to white
        mak ran 11               ;# Make 11 random points
        lin poi sav              ;# Draw rods and save
        pot 5                    ;# Polygon tube              
        dra win                  ;# Draw window frame
{noformat}

The above example produces this image. 

!att:_img_ref^cmd_pot.png!
_Draw polygon tubes_

h2. See also

[cur - Curve display], [dis - Display active dataset], [tub - Tube generation]
{pagebreak}