Article View: comp.sys.sgi.graphics
Article #137Re: Q: Cylinders in Inventor vs. Explorer...
From: Alain Dumesny
Date: Tue, 26 Jan 1993 05:08
Date: Tue, 26 Jan 1993 05:08
18 lines
1237 bytes
1237 bytes
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.
Technical Details
Message-ID:
<1k2gvhINNh9a@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!fido!paris.asd.sgi.com!alainReferences:
<1993Jan12.231214.24518@uc.msc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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