extrude_cells


Synopsis

produce a mesh with cells extruded in the Z direction based on their cell data values and optionally shrunk relative to their geometric centers

Input Ports

in_field

Mesh + Cell_Data

ui_parent

user interface parent object

 

Parameters

height data

UIradioBoxLabel

select data component for height

height scale

UIslider

scale factor for height

shrink cells

UItoggle

extrude shrunk cells

scalefactor

UIslider

scale factor for shrinking

draw skirts

UItoggle

draws sides of extruded cells

color skirts

UItoggle

colors sides of extruded cells

 

Output Ports

out_fld

Mesh + Cell_Data

out_obj

output renderable object

 

Description

extrude_cells creates a new mesh, each cell of which is extruded in Z direction based on the selected height data (cell data) component. Optionally, cells can be shrunk relative to their geometric center (which is a point computed by averaging coordinates for all nodes in a cell). The height of extrusion is controlled by the height scale parameter. Shrink option and shrink scale is controlled by the shrink cells and shrink factor parameters. The sides of an extruded cell can optionally be created and colored based on the draw skirts and color skirts parameters.

Input Ports

in_field

The input must contain any type of mesh plus Cell_Data.

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

height data

UIradioBoxLabel. Radio buttons to pick which input Cell_Data component to use as a height value for each cell. The default is the first (0th) component. If cell data labels are present, they are displayed.

height scale

UIslider. A float slider to adjust the height of extruded cells. The default is 1.0.

shrink

UItoggle. If on, the module computes new coordinates for the extruded cell's nodes based on the shrink factor value that specifies the scale relative to the geometric centers of each cell. The default is off.

scale_factor

UIslider. A float slider that adjusts the factor by which cells are scaled. The value of scale factor specifies scale relative to the geometric centers of each cell and can vary from 0 to 1, a value of 0 producing totally shrunken cells, and a value of 1 producing full size cells. The default is 0.8. The range is 0.0 to 1.0.

draw skirts

UItoggle. If on, the sides (skirts) of extruded cells are created. The default is on.

color skirts

UItoggle. If on, the sides (skirts) of extruded cells are colored. The default is
off.

Output Ports

out_fld

The output field contains a new mesh that is created by extruding and optionally shrinking cells in the input field. It also contains a Cell_Data that was present in the input field.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.Extrude_Cells
examples/extrude.v

File

v/modules.v

See also