Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Unknown macro: {alias}

Name

gen — Generate grid

Syntax

gen [inc] | [nx ny [nz]] [gse] [gre] - generate grid

gen xbo - generate extra border

gen gpl nx ny [step] - generate grid plane

gen ori - generate origin of grid

Description

Generate an empty grid within the graphical window, either surface grid or cube. A quick way to establish a grid that afterwards can be given values and used in various ways.

Arguments

inc xinc yinc

inc sav

inc ret

inc spa xinc yinc

inc calc

nx ny

inc xinc yinc zinc

nx ny nz

gse

gre workspacename

xbo

gpl nx ny [step]

ori lo | hi | min | max | zero | cur | z zvalue | x y z

Examples

Ex.1: Generate grid and cube

# generate a dummy grid and fill it with random scalar values
gen 100 100 ; # generate a grid with 100 x 100 elements in rows and columns
mak ras ; # mak random scalars into the grid
# generate a dummy cube and fill it with random scalar values
win 450000 460000 6450000 6460000 1000 5000 ; # specify the grid window
gen 100 100 50 ; # generate a grid with 100 x 100 x 50 elements in rows, columns and layers
mak ras ; # mak random scalars into the cube
dis ; # display the cube

The above example produces this image of the generated cube.


Result of the gen command

See also

grp - Grid points and lines, gr3 - Grid data into 3D cube

  • No labels