Nurbs_To_Mesh

Synopsis

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.

Description

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.

Inputs

nurbs_in

pointer to the Nurbs data which can be obtained from a Nurbs data file using the Load_Nurbs module.

Parameters

Mesh_Params

do

Allows control over the displaying on NURBS data control mesh.

Outputs

mesh_out

Structured mesh + Node data that contains the geometry and attached data values which can be used for further processing.

obj_out

Ouputs a DataObject, which can be rendered directly using the AVS/Express standard 3D viewer.

Utility Macros

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.

Example

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.

Files

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.

Author

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    

Modifications

Ian Guthrie
Manchester Visualization Centre

Tobias Schiebeck
International AVS Centre

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also