DESCRIPTION:

The Surf container provides methods to generate surfaces. They can be specified by adding triangles, polygons or meshes to the surface.

NEO CREATION:

VTK render engine name:
The unit name of the corresponding Render unit to use as a render engine for the surface.
PolyData name:
The unit name of the PolyData unit to use as the underlaying dataset

EXECUTION:

Execution of the created unit does nothing. However, execution of any of its named subunits (via use_named or use_method) invokes the corresponding C++ class method. The interface of each named subunit provides inputs and outputs for the corresponding method.

INTERFACES AND DESCRIPTION of named subunits:

Set:Wires:
Render surface with wireframes
Set:Surface:
Render surface with solid surface
Set:Opacity:
Input field 0:
(float 1) opacity value
Sets opacity of surface (0 makes it completey transparent, 1 completey nontransparent)
Set:Ambient:
Input field 0:
(float 1) ambience value
Set:Diffuse:
Input field 0:
(float 1) diffusion value
Set:Specular:
Input field 0:
(float 1) specular value
Set:Pickable:
Input field 0:
(float 1) boolean value (0=false, 1=true)
If true, the corresponding surface is pickable, otherwise not.
Set:PickedCB:
Input field 0:
(string) callback name
The string specifies (a comma seperated) list of callbacks. Units with the corresponding names get called, when the surface is picked.
Add:Triangle:
Input field 0:
(int 3) 3 point ids
Adds the triangle to the surface defined by the 3 points referenced by the 3 point ids in the list.
Add:Polygon:
Input field 0:
(dynamic int) point ids
Adds the polygon defined by the points referenced by the list of point ids.
Add:Mesh:
Input field 0:
(float 2) mesh dimensions iDimX iDimY
Adds iDimX x iDimY squares to the surface. If PolyData set is organized in a image-like manner (i.e. first point in the lower left, last in the upper right), then Add:Mesh is a simple way to add a rectangular gridded surface.
Add:Meshes:
Input field 0:
(dynamic int of even dimension) list of k mesh dims (nx0 ny0 nx1 ny1 ... nxk nyk)
Adds k meshes to the surface
Get:Picked:
Output field 0:
(float 1) number of picked cell
Output field 1:
(dynamic int) point ids of picked cell
Gets the number of the last picked cell. Additionally, the point ids of the corresponding cell vertices are returned. This method is usefull in a callback routine to determine which part of the surface was actually picked by the user.
Color:ConstNST:
Input field 0:
(float 1) NST color code
Choose constant color for the surface according to NST color scheme.
Color:ConstRGB:
Input field 0:
(float 3) RGB values
Choose constant color for the surface according to RGB values (in [0...1])
Color:PolyData:
Color surface according to data attributes of the PolyData set. The actual attributes are choosen with a suitable PolyData member function.

FILE

nst_vtk.cc