EditMesh


Synopsis

Edit a 2D unstructured mesh

Note: This object has superceded a previous version of an object with the same name. Please note that the older version's template is VIEW.Viewers.EditMesh, and this version's template is GDM.Viewers.EditMesh. The render_view input port present in the old template is no longer necessary when used with the new Uviewers.

V name

GDM.EditMesh

Input Ports

view_in

GDview_templ

Description

EditMesh edits the coordinates in 2D unstructured meshes. Typically, the mesh is the output from the ClickSketch or ContinuousSketch modules, but any mesh of the proper type can be edited. EditMesh is a macro that combines the following:

•      a reference to a UItwoPoint interactor for providing the XY screen space coordinates to control the edit operation

•      GDedit_mesh to actually perform the highlight of the selected primitive, the edit itself and the update of the mesh

•      a user interface, which you access through the Module Panel provided by the DataViewer or ModuleStack (as appropriate)

Input Ports

view_in

A connection to a view.

Parameters

mode

UIradioBox. This parameter controls if the point, primitive, or cell is edited when the mesh is selected: 0 means point; 1 means primitive;, and 2 means cell.

highlight red
highlight green
highlight blue

UIsliders. Float sliders to set the red/green/blue color while editing the mesh. Values are in the range 0-1.

delete

UIbutton. This parameter when set causes the currently selected point, primitive, or cell to be deleted.

immed

UItoggle. This parameter controls whether the edit causes the mesh to be immediately updated: 1 means yes; 0 means no. When the value is 0, you must press the Done button to cause the edit to update the mesh.

done

UIbutton. This parameter when set causes the mesh to be updated to reflect the edit. This is used when the immed parameter has a value of 0.

Example

Libraries.Examples.Graphics_Display.EditMesh
Libraries.Examples.Graphics_Display.RegionCrop2D
Libraries.Examples.Graphics_Display.ROIdraw

File

v/view.v

See also