Home Overview FAQ Documentation Download Mailing List Geomview For Windows? Support Users Development Bug Reporting Contributing Contact Us Sponsors
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Closed REQ 5978]: points and module
> How can I let geomview know that it should display them as dots and > not as coordinates of a surface? The easiest way to display a cloud of points in geomview is to send a VECT object. For example, your C program might write (say to its standard output): (geometry points { VECT 5 5 0 1 1 1 1 1 0 0 0 0 0 .5 0 -1 1 1 0 0 1 .5 0 0 0 .5 1 0 }) (The indentation and arrangement of line breaks is arbitrary.) This would display five colorless points. If you send several such (geometry ... { ... }) commands, geomview's display will change as it receives each one. Instead of a module, your program could still write to stdout but be used as: yourprogram | togeomview Here "togeomview" is a program which starts a copy of geomview and pipes its input to geomview. This would make it easy to give command-line arguments to your program, or to have it read from the terminal. Alternatively, you could write the VECT data alone (without "(geometry ... {" and "})" header and trailer) to each of a series of files, then use geomview's Animator module to display them in sequence. Note: if you write your own module, be sure to fflush(stdout) as you finish each command to ensure geomview receives it all!
|
||
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
site hosted by |