Revolve
Synopsis
This Module takes a function specified by an array of 2D points and revolves it around the X axis. The result is the revolution surface of this function.
Input Ports
| Name |
Type |
Description |
|
| in |
float[][] |
An array of 2D points describing the function to revolve |
|
Parameters
| Name |
Type |
Description |
UI Control |
|
| Resolution |
int |
The resolution of the revolution surface (from 3 to 120) |
Slider |
| Smooth |
boolean |
Specifies whether or not the revolution surface should be smoothed |
Toggle |
|
Output Ports
| Name |
Type |
Description |
|
| out |
Mesh+Quad+NodeData |
output surface. |
| obj |
DataObject |
A directly renderable object for UViewer3D. |
|
Description
Revolve generates a surface of revolution around the X axis, for a function
provided in the form of an array of 2D points.
Inputs
in
is an array of 2D points defining the function to revolve.
Parameters
Resolution
defines the quality of the Surface of the resulting object. The range for this is between 3 and 120. This parameter defines the number of points used on each circle perpendicular to the X axis to define the revolution surface.
Smooth
If toggled on, the surface is smoothed.
Outputs
out
The output surface as a mesh.
obj
The output surface as a directly renderable object.
Utility Modules
The User Macro revolve makes use of the Functional Macro RevolveFunc and the UI
Macro RevolveUI.
Example
An example application RevolveEg is provided. It uses an array of ten integer values which defines five 2D points of a function, to generate the revolution surface.
Files
iac_proj/revolve/rev_mods.v contains the V definitions of the RevolveParams parameter block and the revolve module.
iac_proj/revolve/rev_macs.v contains the V definitions of the
RevolveFunc Functional Macro, the RevolveUI User Interface Macro, and the revolve User Macro.
iac_proj/revolve/rev_apps.v contains the V definition of the example application RevolveEg.
Author
anonymous
Modifications
Alexander Korban
Manchester Visualization Centre
Contact
International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL
|