Purpose:
|
Read a GRASP surface file (.srf) and create a modified
mesh object with colors at each vertex. This object replaces the
need of using a conversion utility to
import a GRASP surface into POV-Ray. It's also faster and usually
requires much less memory when using huge surfaces. Any of the surface
properties contained in the GRASP file might be selected for display.
Several properties can be shown on copies of the same surface ("template")
with reduced memory requirements.
* Examples and benchmarks
* See also the tutorial section
|
Syntax:
grasp_surface
{
"FILENAME.srf" // GRASP surface file, e.g. "surface.srf"
[ with OBJECT_IDENTIFIER ] // template (another grasp_surface object)
[ colored_by PROPERTY_NAME ] // see below for syntax
[ gradient <COLOR1>,<COLOR2>,<COLOR3> ] // color gradient
[ colors_file "FILENAME.dat" ] // GRASP colors file, e.g. "defcol.dat"
[ filter FLOAT ] // filtering transparency
[ transmit FLOAT ] // transmitting transparency
[ range <VECTOR> ] // for color gradient
[ precision INTEGER ] // for decimal numbers (default = 0 = full)
[ verbose [BOOL] ] // verbose mode (default = off)
[ smooth [BOOL] ] // smooth surface (default = on)
[ preview [LEVEL] ] // preview mode, level in 1..4 range
[ persistent [BOOL] ] // parse surface data only once (animation)
[ ... ] // any valid mesh object option
}
Property names (mutually exclusive) and equivalences:
potentials potential
curvatures curvature
distances distance
gproperty1 property1
gproperty2 property2
discretecolors discretecolours discretecolor discretecolour vertexcolor
Other equivalences:
colored_by coloured_by
gradient with
color_file colors_file colour_file colours_file with
persistent persist
Notes:
* Options which are not relevant to the specified property are
simply ignored, and thus won't generate an error.
* For any of the properties, the defaults for color range or
vertex colors are those that GRASP uses (e.g red,white,blue for potentials).
Limitations:
* Reads only GRASP file format=2 (the newest)
* Reads only the first surface of merged GRASP files, i.e.
that contains several headers.
* Persistent objects are not supported in CSG or when defined
as variables.
|