NAME
keyboard_to_mesh - create a mesh structure from the keyboard
SYNOPSIS
#include "mesh.h"
struct mesh *keyboard_to_mesh();
PATH
$CVIPHOME/GEOMETRY/warp.c
DESCRIPTION
The keyboard_to_mesh() reads data from the keyboard and
create a mesh structure. The first 2 integers are the
numbers of columns and rows in the mesh. And then the coor-
dinates of each node in the mesh is input from the keyboard
node by node from the left to the right and row by row from
the top to the bottom.
TYPES AND CONSTANTS
struct mesh_node {
int x;
int y;
};
struct mesh {
int width;
int height;
struct mesh_node** nodes;
};
struct float_pair {
float x;
float y;
};
RETURN VALUES
The keyboard_to_mesh() returns a pointer to the mesh struc-
ture just created.
EXAMPLE
#include "mesh.h"
#include <CVIPio.h>
void main()
{
struct mesh *inmesh;
inmesh = keyboard_to_mesh();
}
BUGS
None at this time
SEE ALSO
file_to_mesh(), mesh_to_file()
AUTHOR
Copyright (C) 1995 SIUE - by Scott Umbaugh and Jianxin Tan.