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: [Closed REQ 5317]:


  • To: software@geom
  • Subject: Re: [Closed REQ 5317]:
  • From: "Tamara Munzner" <munzner>
  • Date: Mon, 20 Mar 1995 01:48:17 -0600


Anything in curly braces "{}" is OOGL. Anything in parentheses "()" is
GCL (Geomview Command Language). OOGL is a subset of GCL. GCL is *not*
allowed inside of OOGL. 

The "geometry" command is GCL. It lets you load some OOGL geometry,
which you can manipulate as a separate object inside of Geomview. The
second argument ("greensphere" in my example) is the *name* of the
geometry. You need to use a different name for each object! You also
can't wrap up a GCL command inside of an OOGL wrapper, so something
that looks like {LIST (geometry ...)} will not work.

The Geomview manual goes into detail about GCL and OOGL. Try reading
it to understand how the "geometry" command works. The manual comes
with the Geomview distribution. If you can't find it, you can always
get it via anonymous ftp from geom.umn.edu in the file
pub/software/geomview/manual.tar.Z. You can read it on the Web at
http://www.geom.umn.edu/software/geomview/docs/geomview_toc.html.
There is also a Geomview Frequently Asked Questions document at
http://www.geom.umn.edu/software/geomview/docs/FAQ.html.

Here's an answer to your specific question. 

A file like this will give you two spheres which you can move around
independently:

(progn
(dice allgeoms 5)
(geometry redsphere { 
  appearance { material {diffuse 1 0 0}}
  {SPHERE 
	10 0 20 0
	} 
 }
)
(geometry grsphere { 
  appearance { material {diffuse 0 1 0}}
  {SPHERE 
	10 20 0 0
	} 
 }
)
)

A file like this gives you two spheres which cannot be moved with
respect to each other:

(progn
(dice allgeoms 5)
(geometry spheres {   LIST
  { appearance { material {diffuse 1 0 0}}
  {SPHERE 
	10 0 20 0
	} 
 }
 { appearance { material {diffuse 0 1 0}}
  {SPHERE 
	10 20 0 0
	} 
 }
})
)


-Tamara


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