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 5786]: data format for elipsoid?
You can wrap an INST around a sphere to produce an ellipsoid. The INST object type includes a transformation, specified as a 4x4 matrix, and another object to which the transformation should apply. So: INST transform .7 0 0 0 0 1.5 0 0 0 0 2 0 5 -7.5 4 1 geom { SPHERE 1 0 0 0 } takes a unit sphere, and applies a transformation to convert it into an ellipsoid with axes .7, 1.5, and 2 aligned with X, Y and Z axes respectively, and centered on (5, -7.5, 4). As described in the geomview manual or in "man 5 oogl", transformation matrices for geomview are written assuming they'll be multipled on the left by points (x,y,z,1) written as row vectors, i.e. p*T = p'; this is the transpose of the usual mathematical convention where points are column vectors multiplied on the right, T*p = p'. Hope this is what you need.
|
||
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
site hosted by |