Skip to content

Draw Basic Commands

jf--- edited this page Oct 8, 2014 · 1 revision

Some basic draw commands that can be used to test an installation and 3rd party libs

pload ALL
# launch a 3D viewer
vinit
# create a simple shape (e.g. a box)
box b 10 20 30
# ... or load it from a BRep file into a named variable
restore myfile.brep b
# display shape in the 3D view
vdisplay b
# set shading
vsetdispmode b 1
# scale objects to fit on the window
vfit

Now to test advanced features:

# this will draw a color scale which internally uses fonts
# so it will touch ftgl and hence FreeType
vcolorscale 

# export uses gl2ps, extensions can be PS, PDF, SVG, ...
vexport myfile.pdf PDF

# dump image to disk to test FreeImage
vdump myfile.png

# AVI output available only on MS Windows, see
# ViewerTest_Avicommands.cxx for details on usage
vrecord <parameters>

For any command one can type:

help <command> (e.g. help vexport)
Clone this wiki locally