home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!sgi!fido!paris.asd.sgi.com!alain
- From: alain@paris.asd.sgi.com (Alain Dumesny)
- Newsgroups: comp.sys.sgi.graphics
- Subject: Re: Q: Cylinders in Inventor vs. Explorer...
- Keywords: Inventor Explorer cylinders rotations
- Message-ID: <1k2gvhINNh9a@fido.asd.sgi.com>
- Date: 26 Jan 93 05:08:01 GMT
- References: <1993Jan12.231214.24518@uc.msc.edu>
- Reply-To: alain@sgi.com
- Distribution: usa
- Organization: Silicon Graphics Inc.
- Lines: 18
- NNTP-Posting-Host: paris.asd.sgi.com
-
- In article <1993Jan12.231214.24518@uc.msc.edu>, danw@uh.msc.edu (Dan Waylonis) writes:
- |> Hi,
- |>
- |> In Explorer, a cylinder is defined by a beginning point, an ending point,
- |> and a radius.
- |>
- |> In Inventor, only the height and radius are specified.
- |>
- |> How do I emulate the action of the Explorer function call via Inventor?
- |> SoTransform with a translation and a rotation?
- |>
-
- Yes. The translation will be the midpoint (center of cylinder) and for the
- rotation use SbRotation(fromVec, toVec) where fromVec = (0,1,0) and toVec =
- ending - beginning point.
-
- -------------------------------------------------------------------------
- Alain Dumesny alain@sgi.com (415)390-5250 Silicon Graphics Inc.
-