DVcreate_line


Synopsis

interactively draw a polylines


group DVcreate_line {
float+Iparam &picked_xyz[3];
GDxform_templ+Iparam &picked_xform;
int+Iparam pick=1;
int+IOparam new=0;
int+nonotify new_cell=0;
Mesh+Node_Data+Oparam out {
nnodes = 0;
nspace = 3;
ncell_sets = 1;
Polyline cell_set;
};
method+notify_val upd_create_line = "create_line";
};

Description

DVcreate_line lets the user interactively draw a polylines over an object in a viewer window.

Input

&picked_xyz[3]

The coordinates of the picked point. This red input port should be connected to a viewer's pick-xform output port.

&picked_xform

The xform of the picked point. This red input port should be connected to a viewer's pick-coordinate output port.

pick

An integer. When not 0, the user is using the left mouse button to select a series of points on the object. Lines are drawn between each point. The default is 1 (on).

new

An integer. When not 0, the user wants to select a new "first" point and begin drawing a new series of lines. When 0, the user is in the middle of drawing a series of lines and any left mouse button click is a line endpoint. The default is 0. This value is also passed as output.

Output

out

The output is a new unstructured mesh of cell type Polyline. Each cell is one line segment in the drawing.

Files

v/dv.v
modules/drw_line.c

Example

Libraries.Main.Mappers.draw_line

See also

Not applicable.