go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Update REQ 6975]: Geomview question


  • To: software@geom.umn.edu
  • Subject: Re: [Update REQ 6975]: Geomview question
  • From: daemons <daemon>
  • Date: Thu, 2 Mar 2000 17:24:01 -0600 (CST)


--------------A3382449DE8CDD5DC8154AAC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Tamara,

Thanks for your promt response,

I am having difficulty in loading the OFF file that I have generated. Is it
expecting a different format?

Thanks,

Ertugrul


munzner at cs.stanford.edu wrote:

> From: Tamara Munzner <munzner at cs.stanford.edu>
> Message-ID: <14526.57423.90212.926880 at weevil.Stanford.EDU>
> Date: Thu, 2 Mar 2000 13:42:39 -0800 (PST)
> To: software@geom.umn.edu
> Subject: [ REQ 6975]: Geomview question
>
> > I have been using geomview for a while and I was wondering if it is
> > possible to save a camera as a PS file from the command line without
> > using menu navigation. I am trying to integrate geomview in a tool flow
> > and I would like to get the snapshot saved. Well, OK, here is what I
> > would like to do:
> >
> > Run geomview in batch mode, orient the picture in a certain direction
> > and save it as a PS file. All this has to be done in batch mode, no
> > camera on screen.
>
> You can do it by starting up Geomview with the right GCL (Geomview
> command language) file. Here's an example file, which I called
> "doit.gcl":
>
> ----------
> (progn
> (load hdodec.off geometry)
> (camera c0 {
> camtoworld transform {
>    -0.89896667    0.16900851   -0.40410414             0
>     0.43307546    0.48121688   -0.76215452             0
>      0.0656505   -0.86015731   -0.50578946             0
>      1.2306064    -16.264462    -9.6162682             1
>
> }
>         perspective 1  stereo 0
>         fov 40
>         frameaspect 1
>         focus 3
>         near 0.07
>         far 100
> }
> )
> (redraw c0)
> (draw c0)
> (snapshot c0 /tmp/foo.ps ps)
> (exit)
> )
> ----------
>
> You can see that I loaded some geometry and a camera which has a
> specific viewpoint, then I tell Geomview to draw the camera and take a
> PostScript snapshot. Finally, the script tells Geomview to exit.
>
> Then just type at the command prompt
>
> % geomview -c doit.gcl
>
> a window flashes up on the screen, the snapshot happens, and Geomview
> exits.
>
> The way I got the camera specification was by interactively moving the
> camera to the position I wanted it in a previous session, then saving
> the camera specification, including it in the GCL file, and inserting
> the camera id "c0" in between "(camera " and the rest of the
> specification. (You can save the camera spec by hitting ">" in an
> interactive session, changing the default "Commands" to "Camera",
> change "World" to "targetcam", and give a filename in the browser or
> "-" to print it to stdout on your shell.
>
> Hope this helps,
> Tamara
>



--
Ertugrul Demircan
Interconnect Modeling Group             Motorola, MD:K20
Advanced System Research Laboratory     3501 Ed Bluestein Blvd.
ra6847 at email.sps.mot.com                Austin, TX 78721
http://img.sps.mot.com/                 Phone: ((555) 555-5555



--------------A3382449DE8CDD5DC8154AAC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Tamara,
<p>Thanks for your promt response,
<p>I am having difficulty in loading the OFF file that I have generated.
Is it expecting a different format?
<p>Thanks,
<p>Ertugrul
<br>&nbsp;
<p>munzner at cs.stanford.edu wrote:
<blockquote TYPE=CITE>From: Tamara Munzner &lt;munzner at cs.stanford.edu>
<br>Message-ID: &lt;14526.57423.90212.926880 at weevil.Stanford.EDU>
<br>Date: Thu, 2 Mar 2000 13:42:39 -0800 (PST)
<br>To: software@geom.umn.edu
<br>Subject: [ REQ 6975]: Geomview question
<p>> I have been using geomview for a while and I was wondering if it is
<br>> possible to save a camera as a PS file from the command line without
<br>> using menu navigation. I am trying to integrate geomview in a tool
flow
<br>> and I would like to get the snapshot saved. Well, OK, here is what
I
<br>> would like to do:
<br>>
<br>> Run geomview in batch mode, orient the picture in a certain direction
<br>> and save it as a PS file. All this has to be done in batch mode,
no
<br>> camera on screen.
<p>You can do it by starting up Geomview with the right GCL (Geomview
<br>command language) file. Here's an example file, which I called
<br>"doit.gcl":
<p>----------
<br>(progn
<br>(load hdodec.off geometry)
<br>(camera c0 {
<br>camtoworld transform {
<br>&nbsp;&nbsp; -0.89896667&nbsp;&nbsp;&nbsp; 0.16900851&nbsp;&nbsp; -0.40410414&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0
<br>&nbsp;&nbsp;&nbsp; 0.43307546&nbsp;&nbsp;&nbsp; 0.48121688&nbsp;&nbsp;
-0.76215452&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0
<br>&nbsp;&nbsp;&nbsp;&nbsp; 0.0656505&nbsp;&nbsp; -0.86015731&nbsp;&nbsp;
-0.50578946&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0
<br>&nbsp;&nbsp;&nbsp;&nbsp; 1.2306064&nbsp;&nbsp;&nbsp; -16.264462&nbsp;&nbsp;&nbsp;
-9.6162682&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1
<p>}
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; perspective 1&nbsp; stereo
0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fov 40
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frameaspect 1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; focus 3
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; near 0.07
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; far 100
<br>}
<br>)
<br>(redraw c0)
<br>(draw c0)
<br>(snapshot c0 /tmp/foo.ps ps)
<br>(exit)
<br>)
<br>----------
<p>You can see that I loaded some geometry and a camera which has a
<br>specific viewpoint, then I tell Geomview to draw the camera and take
a
<br>PostScript snapshot. Finally, the script tells Geomview to exit.
<p>Then just type at the command prompt
<p>% geomview -c doit.gcl
<p>a window flashes up on the screen, the snapshot happens, and Geomview
<br>exits.
<p>The way I got the camera specification was by interactively moving the
<br>camera to the position I wanted it in a previous session, then saving
<br>the camera specification, including it in the GCL file, and inserting
<br>the camera id "c0" in between "(camera " and the rest of the
<br>specification. (You can save the camera spec by hitting ">" in an
<br>interactive session, changing the default "Commands" to "Camera",
<br>change "World" to "targetcam", and give a filename in the browser or
<br>"-" to print it to stdout on your shell.
<p>Hope this helps,
<br>Tamara
<p>[Request&nbsp;&nbsp; State&nbsp;&nbsp; Assigned&nbsp;&nbsp; Due by&nbsp;
Originator]
<br>[ 6975&nbsp;&nbsp;&nbsp;&nbsp; open&nbsp;&nbsp;&nbsp; nobody&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp; &lt;ra6847 at email.sps.mot.com>]
<br>[78 lines of previous history; see software -v 6975.]</blockquote>

<br>&nbsp;
<pre>--&nbsp;
Ertugrul Demircan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Interconnect Modeling Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Motorola, MD:K20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Advanced System Research Laboratory&nbsp;&nbsp;&nbsp;&nbsp; 3501 Ed Bluestein Blvd.&nbsp;
ra6847 at email.sps.mot.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Austin, TX 78721&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="http://img.sps.mot.com/">http://img.sps.mot.com/</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phone: ((555) 555-5555</pre>
&nbsp;</html>

--------------A3382449DE8CDD5DC8154AAC--


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo