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 5461]: ellipsoids


  • To: software@geom
  • Subject: Re: [Closed REQ 5461]: ellipsoids
  • From: "Stuart Levy" <slevy>
  • Date: Fri, 23 Jun 1995 15:53:18 -0500

> 1) Can I easily construct an ellipsoid with a major, intermediate, and minor
> axis?  This is for illustrating 3 dimensional, 2nd order tensor quantities.

Yes.  Probably the easiest way to do this is to apply a (non-uniform scaling)
transformation to a sphere.  You can express transformations as 4x4 matrices:

INST transform {
	.5 0 0 0
	0 .8 0 0
	0 0 1.3 0
	0 0 0 1
} geom { < sphere.mesh }
 
Matrices are the transpose of what you'd probably expect, so a translation
component (the sphere's center) appears in the bottom row, rather than
the rightmost column.

For spheres which are smoother though slower to draw you could replace the
{ < sphere.mesh } 
with
{ SPHERE 1 0 0 0 }   # A unit sphere centered on the origin


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