gocad
Synopsis
Imports and scales data from a GOCAD file along the x, y and z axes.
Input Ports
Parameters
| x |
float |
x axis, scaling value |
| y |
float |
y axis, scaling value |
| z |
float |
z axis, scaling value |
| scale |
boolean |
scaling on/off |
| file_name |
string |
GOCAD file name |
Output Ports
| out_mesh |
Xform+Cells+Grid |
Scaled data from GOCAD file |
| out_obj |
DefaultObject |
output for 2D or 3D Uviewer |
Description
gocad is a data import reader module for the GOCAD (ASCII) file format. The
GOCAD application models, edits, and describes 3D geologic structures,
containing horizon surfaces, faults, and wells. The GOCAD application is
authored by a group in Nancy, France. Gocad reads the contents of one GOCAD
file, which can then be sent to a Uviewer for interactive viewing via a UI
Macro.
Input Ports
none
Parameters
x, y and z
Members of the GocadParams parameter block group, these float values are used to
scale the image.
scale
A member of the GocadParams parameter block group, this boolean value is used to
switch scaling on or off.
file_name
A member of the GocadParams parameter block group, this string contains the
input file name. GOCAD files have the extension ".tsurf".
Output Ports
out_mesh
Scaled (if enabled) data from GOCAD file, in the form of Xform+Cells+Grid.
out_obj
Output suitable for use with 2D and 3D Uviewer. This DataObject is generated
from the data present in the out_mesh output.
Utility Macros
The User Macro read_gocad combines the macro Gocad (which uses the low-level
ReadGocad module) with the UI Macro GocadUI via the
common parameter block GocadUI.
Example
An example application ReadGocadEg is provided, which uses the file
worldmap.tsurf, to display a picture of the world.
Files
iac_proj/rdgocad/goc_macs.v contains the Functional Macro Gocad, the User
Macro read_gocad, the UI Macro GocadUI and the Example Application ReadGocadEg.
Other Notes
The GocadMacs library inherits its process. As this library contains no
procedural code, the process is not important. The low-level ReadGOCAD module,
executes under the process specified in its library, not the process defined in
the high-level library.
Authors
AVS5 version
Ian Curington, AVS/UNIRAS Ltd.
Ported to Express by
Justin Greenhalgh
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
UK
M13 9PL
See Also
GocadParams, ReadGOCAD, Gocad and GocadUI.
|