Thread View: comp.sys.sgi.graphics
3 messages
3 total messages
Started by Dan Waylonis
Tue, 12 Jan 1993 23:12
Q: Cylinders in Inventor vs. Explorer...
Author: Dan Waylonis
Date: Tue, 12 Jan 1993 23:12
Date: Tue, 12 Jan 1993 23:12
17 lines
1144 bytes
1144 bytes
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? Thanks, Dan -- |Dan Waylonis | Home |||||||||||||||||||||| Minn. Supercomputer Ctr, Inc.| |Graphics and | 5707 Highway 7, #425 |||||| 1200 Washington Ave South |||| |Visualization| St Louis Pk MN 55416-5204 | Minneapolis MN 55415 ||||||||| ||||||||||||||| (612) 922-1145 |||||||||||| (612) 626-0340 |||||||||||||||
Re: Q: Cylinders in Inventor vs. Explorer...
Author: 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.
Re: Q: Cylinders in Inventor vs. Explorer...
Author: Alain Dumesny
Date: Tue, 26 Jan 1993 05:19
Date: Tue, 26 Jan 1993 05:19
35 lines
1961 bytes
1961 bytes
In article <1993Jan15.011923.10776@uc.msc.edu>, danw@uh.msc.edu (Dan Waylonis) writes: |> |> |> And one more question: If my 'root' for the SceneGraph looks like: |> |> SoSep |> (root) |> | |> __________|__________ |> | | |> SoSep SoSep |> (A) (B) |> _______|_______ _______|_______ |> | | | | | | | | |> Node ... ... Node Node ... ... Node |> |> Is there a way to just "replace" the "A" or "B" separators without |> having to reset the view (as in: root->addChild(A), root->addChild(B), |> SoXtExaminerViewer::setSceneGraph(root)) ? |> Sure. You can make any changes you want to the scene graph even after giving it to the viewer. By default the viewer only insert a camera (if it doesn't find one) and possibly other stuff outside of the scene graph root that you supply, so your scene graph topology shouldn't change. When you change the scene (say replace sepA with something else) a redraw will later happen, but the camera will not change position. |> BTW, Inventor is really cool. |> Glad you like it.... ------------------------------------------------------------------------- Alain Dumesny alain@sgi.com (415)390-5250 Silicon Graphics Inc.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads