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 6204]: spheres


  • To: software@geom.umn.edu
  • Subject: Re: [Closed REQ 6204]: spheres
  • From: daemon
  • Date: Wed, 4 Jun 1997 10:46:52 -0500 (CDT)

You can use the "appearance" prefix to specify properties of objects
in general; to color the surface of something, say a sphere, you'd
use the "material { diffuse R G B }" field, as in

appearance { shading smooth }
{
LIST

{
  appearance { material { diffuse 1 0 0 } }
  SPHERE  .5  -1 -1 -1
}

{
  appearance { material { diffuse 0 1 0 } }
  SPHERE  .5  -1 1 1
}

{
  appearance { material { diffuse 0 0 1 } }
  SPHERE  .5  1 -1 1
}

{
  appearance { material { diffuse 1 1 1 } }
  SPHERE  .5  1 1 -1
}

} # end of list


Note the initial "appearance { shading smooth }", which applies to all
the spheres, and makes them look smooth, hiding their polygonal facets.


There's more about appearances in the geomview manual, or in the
manual page "man 5 oogl".


  Stuart Levy


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