tube

Synopsis

converts line and polyline cell_sets to tubes

Input Port

in_field

Mesh

ui_parent

user interface parent object

Parameters

color_flag

UItoggle

selects if tubes should be colored with a node data component

color_comp

UIradioBoxLabel

select which node data component to use for coloring

scale_flag

UItoggle

selects if tubes should be scaled with a node data component

scale_comp

UIradioBoxLabel

select which node data component to use for scaling

facets

UIslider

number of facets on each tube

scale

UIslider

additional scale factor

blend_thresh

UIslider

blend tube segments if their intersection angle is less than this amount

connect

UItoggle

connect line segments

round

UItoggle

insert spheres in unblended joints

Output Port

out_fld

Mesh

out_obj

output renderable object

Description

tube takes a field with line or polyline cell_sets, and generates tubes for the lines, which may be colored and/or scaled using a particular node data component. Each line cell is turned into a tube. All other cell types are ignored.

Input

in_field

Input field with either line or polyline cell sets.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

color_flag

Toggle whether to use the color_comp parameter to color the tubes based on a particular node data component.

color_comp

Color the tubes using this node data component.

scale_flag

Toggle whether to use the scale_comp parameter to scale the tubes base on a particular node data component.

scale_comp

Scale the tubes using this node data component.

facets

Number of facets in each tube. Increase this parameter to give the tubes a smoother look at the expense of rendering speed.

scale

Additional scale factor applied to all the tubes in addition to the scale_comp parameter.

blend_thresh

Blend tube segments if their intersection angle is less than this amount (in degrees).

connect

Flag to connect line segments (turn off for better performance).

round

For unblended tube joints, insert spheres for a rounded look.

Output Port

out_fld

Output field.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.TubeRounded

v/dv_examp/tube_1.v

Libraries.Examples.Visualization.TubeInterp

v/dv_examp/tube_2.v

File

v/modules.v

See also related modules

Not applicable