home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / graphics / 202 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.1 KB

  1. Path: sparky!uunet!olivea!sgigate!sgi!fido!pauli
  2. From: pauli@sgi.com (Paul Isaacs)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Re: HELP AN IRIS INVENTOR
  5. Keywords: help
  6. Message-ID: <1k22pfINNa6t@fido.asd.sgi.com>
  7. Date: 26 Jan 93 01:05:51 GMT
  8. References: <1993Jan26.003950.5073@sol.ctr.columbia.edu>
  9. Organization: Silicon Graphics
  10. Lines: 47
  11. NNTP-Posting-Host: uniblab.asd.sgi.com
  12.  
  13. In article <1993Jan26.003950.5073@sol.ctr.columbia.edu> csysmw@scs.leeds.ac.uk (S M Wombwell) writes:
  14. >
  15. >
  16. >Hello there,
  17. >    I am trying hard to programme a 3D sculpture package in Iris Inventor
  18. >using the language C++. I have a problem that I need help with:
  19.  
  20. Okay, first of all make sure to read Chapter 8 of the Inventor Programming 
  21. guide. It has general instructions and four examples of how to use 
  22. Inventor NURBS.
  23.  
  24. >   1.    Is there anyway to use the drag pointer with NURB surfaces?
  25.  
  26. Yes. When the SoNurbsSurface node draws, it looks in the current coordinates 
  27. (i.e., the most recent SoCoordinate3 node) for the control points.  See 
  28. Chapter 8 and the man pages to find out which coordinate corresponds to 
  29. which control point.
  30.  
  31. Once you know the control point you want to move, you can attach a dragpoint
  32. manipulator to that point as follows:
  33.  
  34. myDragPoint->attach( pathToCoordinateNode, indexOfPointToEdit );
  35.  
  36. The path should go from the scene root down to the SoCoordinate3 node.
  37. The index should be the index of the control point you need to edit.
  38.  
  39. I haven't tried this exact example, but it should work fine. As you move the
  40. manipulator, the NURB should change to be influenced by the control point.
  41. Let me know if you have a problem. 
  42.  
  43. >   2.    Has anyone got any predefined shapes using NURB surfaces? (ie cones,
  44. >    spheres, cylinders etc)
  45.  
  46. Inventor ships only one NURBS object. It should be installed as 
  47. /usr/data/models/teapot.iv
  48.  
  49.  
  50. >   3.   Is there an easy way to merge two NURB surfaces?    
  51.  
  52. I haven't worked with NURBS myself. As I understand it this is a 
  53. general NURBS question, not an Inventor question. Is that correct?
  54. I think you just have to make sure that their control points match along
  55. a shared edge, but I'm not sure.
  56.  
  57. >Your help is much appreciated
  58. >
  59. >  -= Stephen =-
  60.