Reads Nurbs data files and outputs a pointer to the Nurbs data.
Name | Type | Description | UI Control |
Filename | string | Filename to load | File Dialog |
Name | Type | Description |
out | nurbs_type (ptr) | Outputs a pointer to the Nurbs data. |
This module reads a NURBS data file and outputs a pointer to the Nurbs data. This pointer can be used with the Nurbs_To_Field and Nurbs_To_Mesh modules.
filename
String parameter that specifies which Nurbs data file should be read. The filename string should contain the full path name of the file.
out
Pointer to the NURBS data.
The Load_Nurbs_func functional macro uses the low-level rd_nurbs module. The macro takes a file name as an input from the Load_Params paramerter block. The macro outputs the data read from the NURBS data file as a pointer to the NURBS-data.
The Load_Nurbs_func functional macro and the Load_Nurbs_UI user interface macro are both used by the Load_Nurbs user macro. All of these macros use the Load_Params parameter block to communicate.
The output from this module cannot directly be viewed in the 3D viewer.
The project includes an example application that demonstrates the use of the NURBS marcos. The application contains the nurbs file loader (Load_Nurbs) plus the Nurbs_To_Mesh and the Nurbs_To_Field modules. These allow the viewing of the supplied NURBS data files in the 3D viewer.
iac_proj/nurbs/nurbsmod.v contains the V definitions of the rd_nurbs, nurbs_to_field, nurbs_ctrl_to_mesh, and the nurbs_utilities module. It also contains the parameter blocks Load_Params, Field_Params, and Mesh_Params.
iac_proj/nurbs/nurbsmac.v contains the V definitions of the Load_Nurbs_UI user interface macro, the Load_Nurbs_func functional macro and the Load_Nurbs user macro.
Contact: Fenqiang Lin, W T Hewitt Computer Graphics Unit Manchester Computing University of Manchester Manchester M13 9PL eMail: cgu-info@mcc.ac.uk tel: 0161 275 6095 fax: 0161 275 6040
Ian Guthrie Manchester Visualization Centre Tobias Schiebeck International AVS Centre
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL