Displays the control mesh of a NURBS data object.
Input Ports
Name Type Description nurbs_in nurbs_type (ptr) Takes a pointer to the Nurbs data as input. Parameters
Name Type Description UI Control do int Toggles if the NURBS control mesh is shown or not Toggle Button Output Ports
Name Type Description mesh_out Mesh_Struct+Node_Data Structured mesh for further processing. obj_out DataObject Data object for rendering in 3D viewer.
The module displays the control mesh of the NURBS data. The NURBS data can be obtained using the Load_Nurbs module which generates a suitable input for this module. The Nurbs_to_Mesh module outputs a Structured Mesh which can be used for further processing and also a data object which can be rendered directly using any standared data viewer.
nurbs_inpointer to the Nurbs data which can be obtained from a Nurbs data file using the Load_Nurbs module.
Mesh_Params
doAllows control over the displaying on NURBS data control mesh.
mesh_outStructured mesh + Node data that contains the geometry and attached data values which can be used for further processing.obj_outOuputs a DataObject, which can be rendered directly using the AVS/Express standard 3D viewer.
Nurbs_to_Mesh_func
The Nurbs_to_Mesh_func functional macro uses the low-level nurbs_crtl_to_mesh module. The macro takes as input the pointer to the Nurbs data and the parameter block Mesh_Params. It macro outputs the Structured mesh + Node data that contains the geometry and attached data values.
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/nurbs_mod.v contains the V definitions of the Nurbs_crtl_to_mesh module and the Mesh_Params parameter block.
iac_proj/nurbs/nurbsmacs.v contains the V definitions of the Nurbs_to_Mesh_UI user interface macro, the Nurbs_to_Mesh_func functional macro and the Nurbs_to_Mesh 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