From owner-info-inventor-dev@oss.sgi.com Wed Jul 10 07:00:13 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6AE0DRw031503 for ; Wed, 10 Jul 2002 07:00:13 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6AE0DUT031502 for info-inventor-dev-outgoing; Wed, 10 Jul 2002 07:00:13 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from smtpzilla1.xs4all.nl (smtpzilla1.xs4all.nl [194.109.127.137]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6AE08Rw031499 for ; Wed, 10 Jul 2002 07:00:08 -0700 Received: from node-10-12-100-10.adm.ams.nl.intern (a194-109-230-189.adsl.xs4all.nl [194.109.230.189]) by smtpzilla1.xs4all.nl (8.12.0/8.12.0) with ESMTP id g6AE4b2W097766 for ; Wed, 10 Jul 2002 16:04:37 +0200 (CEST) Date: Wed, 10 Jul 2002 16:05:58 +0200 Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: nurbs surface: circle From: Arthur Clemens To: info-inventor-dev@oss.sgi.com Content-Transfer-Encoding: 7bit Message-Id: <289ACB44-940E-11D6-AFCC-00039366A36E@xs4all.nl> X-Mailer: Apple Mail (2.482) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk I have this code to create a nurbs circle outline: #Inventor V2.1 ascii Coordinate4 { point [ 1 0 0 1, 0.707107 0.707107 0 0.707107, 0 1 0 1, -0.707107 0.707107 0 0.707107, -1 0 0 1, -0.707107 -0.707107 0 0.707107, 0 -1 0 1, 0.707107 -0.707107 0 0.707107, 1 0 0 1, ] } NurbsCurve { numControlPoints 9 knotVector [ 0.00, 0.0, 0.0, 0.25, 0.25, 0.5, 0.5, 0.75, 0.75, 1.0, 1.0, 1.00 ] } ... but I need to have a circle surface, too. The Inventor Mentor is not very helpful to me about nurbs, or I am being stupid. Can anyone help me to convert this code to a NurbsSurface? Arthur Clemens From owner-info-inventor-dev@oss.sgi.com Wed Jul 10 15:08:41 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6AM8fRw021843 for ; Wed, 10 Jul 2002 15:08:41 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6AM8fM9021842 for info-inventor-dev-outgoing; Wed, 10 Jul 2002 15:08:41 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from makosh.usask.ca (makosh.usask.ca [128.233.128.198]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6AM8cRw021839 for ; Wed, 10 Jul 2002 15:08:39 -0700 Received: from localhost (ogd116@localhost) by makosh.usask.ca (8.11.6/8.11.6) with ESMTP id g6AMD9A18218 for ; Wed, 10 Jul 2002 16:13:09 -0600 X-Authentication-Warning: makosh.usask.ca: ogd116 owned process doing -bs Date: Wed, 10 Jul 2002 16:13:09 -0600 (CST) From: Ognen Duzlevski X-X-Sender: ogd116@makosh.usask.ca To: info-inventor-dev@oss.sgi.com Subject: inventor on linux/alpha Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi, has anyone gotten latest inventor to compile on linux/alpha? Is this at all an issue? I had LOTS of problems compiling it but made it in the end. If anyone needs instructions, I could prepare them in a readable form. Thank you, Ognen Duzlevski From owner-info-inventor-dev@oss.sgi.com Thu Jul 11 14:56:40 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6BLueRw017981 for ; Thu, 11 Jul 2002 14:56:40 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6BLueO0017980 for info-inventor-dev-outgoing; Thu, 11 Jul 2002 14:56:40 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from sgi.com (sgi-too.SGI.COM [204.94.211.39]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6BLuSRw017973 for ; Thu, 11 Jul 2002 14:56:28 -0700 Received: from makosh.usask.ca (makosh.usask.ca [128.233.128.198]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id PAA09362 for ; Thu, 11 Jul 2002 15:01:25 -0700 (PDT) mail_from (ogd116@mail.usask.ca) Received: from localhost (ogd116@localhost) by makosh.usask.ca (8.11.6/8.11.6) with ESMTP id g6BLgVD19664 for ; Thu, 11 Jul 2002 15:42:31 -0600 X-Authentication-Warning: makosh.usask.ca: ogd116 owned process doing -bs Date: Thu, 11 Jul 2002 15:42:31 -0600 (CST) From: Ognen Duzlevski X-X-Sender: ogd116@makosh.usask.ca To: info-inventor-dev@oss.sgi.com Subject: inventor on linux/alpha Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi, several people were interested in compiling inventor on linux/alpha - I am hard-pressed by deadlines but here is a really quick breakdown: You will need the freetype2 stuff installed. I also built and installed latest Mesa and lesstif. Then I downloaded a patched libFL from http://www.cc.gatech.edu/~bbb/2001/Inventor/libFL-ben1.tar.gz I think the above package was intended for a NetBSD port of some sort. You need to move this .gz into the inventor directory and then tar -xvzf it so that you get something like /inventor/libFL directory. Move into it and do a make. It will fail probably since it is looking for the freetype.h in the wrong location (at least this was my case). The GNUmakefile in /inventor/libFL/src needs to be changed to reflect the correct location of this header file, which in my case was /usr/include/freetype2/freetype/freetype.h After this a make should be executed which in my case failed miserably with all sorts of complaints about the freetype header files. Now, I did something dumb and actually went into these and changed some of the locations directly. So, for example, if it said that it cant find the ftbuild.h, I would do a "locate ftbuild.h" and then update the failing header file with the "correct" relative location. I understand that this is not the right thing to do (since you need to be root and do this to stuff that is in /usr/include/freetype2/) but I have an experimental linux/alpha machine and I could afford to do it. So far things dont seem broken as far as other software goes. Anyways, after you have done all sorts of mangling the freetype header files you should be able to build the libFL library. Make sure you make install it immediatly. Backing down one level, if you do a make in the /inventor directory, it will fail on the machine.h file in the lib/database/include since there is no definition for a linux/alpha machine. The libFL that comes with inventor is, I think, built for a intel x86 so that wont do but we took care of that in the previous step. Now we need to update the machine.h file - I just did the following: #include #define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN #define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE Now, I have all my life been an x86 person (ok, I admit to owning a Commodore 64 ;) so was not sure if I should use DGL_BIG_IEEE or DGL_NON_IEEE for the Alpha (it's my first alpha!). No time to read docs so just guessed it. There might be a need to provide definitions suitable for Alpha in respect to HTON_ and NTOH_ macros so if anyone could provide those.... After you are done, you will do a make again in the /inventor directory. It should now go fine until you hit the doc/ directory. There will be a bunch of errors reported with the files there. However, what I found was that doing make repeatedly was able to go through them all without breaking the whole process. So, on each error, just do make and eventually you will go through the whole /inventor/doc dirctory. I am not sure as to the function of these files but they didnt look that important ;) at the time. Now, on each break, do a make install since the makefiles in one of the directories was setup to use libInventor or something simmilar built just several steps before and it wasnt in the /usr/lib (or wherever it looked for it) so I just went on did make install or copied the libabries manually when the make failed complaining they werent there. After this the make will fail on the apps/ directory since it looks for dlopen() and related functions but there is no -ldl switch in the makefiles. I didnt have the time to look where this switch would be hidden (I saw Inventor for the first time yesterday and I just made it compile since I wanted the libimage for another software called Raster3d which again is needed by another software called molscript). So, what I did is see what the failing directory was and the g++ comand that failed was and I just did a cd to that directory, copy the failing g++ command, paste it onto the command line and add -ldl to it before hitting enter. I repeated this around 10 times for various directories (demos, converters etc. in /inventor/apps) and that took care of everything. Now, I am sure I skipped a step or two in this description - I wish I kept an exact log of what I did. In any case, if you get some other failing errors in the make process, email me and if I see them I will probably remember what I did). The machine was a stock alpha DS10 with Redhat 7.1 installed on it. Most of the libraries were installed from RPMs and were lacking the header files, thus best to download, compile and install yourself. I dont know if this was the right way to do these things - worked for me so dont bash me if you think it sounds lame, incompetent or utterly stupid. Thanks, Ognen From owner-info-inventor-dev@oss.sgi.com Thu Jul 11 17:21:28 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6C0LSRw027045 for ; Thu, 11 Jul 2002 17:21:28 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6C0LSqg027044 for info-inventor-dev-outgoing; Thu, 11 Jul 2002 17:21:28 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6C0LFRw027033 for ; Thu, 11 Jul 2002 17:21:15 -0700 Received: from riemann.nyongwa.montreal.qc.ca ([24.202.211.97]) by relais.videotron.ca (Videotron-Netscape Messaging Server v4.15 MTA-PRD2) with ESMTP id GZ417200.OHM; Thu, 11 Jul 2002 20:25:50 -0400 Received: from steve by riemann.nyongwa.montreal.qc.ca with local (Exim 3.35 #1 (Debian)) id 17SoFp-0002MX-00; Thu, 11 Jul 2002 20:25:49 -0400 Date: Thu, 11 Jul 2002 20:25:49 -0400 To: Ognen Duzlevski Cc: info-inventor-dev@oss.sgi.com Subject: Re: inventor on linux/alpha Message-ID: <20020712002549.GA9168@nyongwa.montreal.qc.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: "Steve M. Robbins" Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Thu, Jul 11, 2002 at 03:42:31PM -0600, Ognen Duzlevski wrote: > several people were interested in compiling inventor on linux/alpha - Hello. The Debian project has been building inventor on several architectures for some time now. The alpha port succeeds in building libInventor and libInventorXt, but then falls down building man pages :-/ > You will need the freetype2 stuff installed. I also built and installed > latest Mesa and lesstif. Then I downloaded a patched libFL from > http://www.cc.gatech.edu/~bbb/2001/Inventor/libFL-ben1.tar.gz I have found that the "libFL/ang" shipped with inventor also works (without all the hackery you required). It's not clear to me which copy of the library is newer. > Backing down one level, if you do a make in the /inventor directory, it > will fail on the machine.h file in the lib/database/include since there is > no definition for a linux/alpha machine. The libFL that comes with > inventor is, I think, built for a intel x86 so that wont do but we took > care of that in the previous step. Now we need to update the machine.h > file - I just did the following: > > #include > #define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN > #define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE Here is an alternate & more general version of that change that we're using at Debian: Index: lib/database/include/machine.h =================================================================== RCS file: /home/steve/lib/cvs/debian/inventor/lib/database/include/machine.h,v retrieving revision 1.1.1.2 diff -u -b -B -r1.1.1.2 machine.h --- lib/database/include/machine.h 25 Sep 2001 00:45:32 -0000 1.1.1.2 +++ lib/database/include/machine.h 19 Feb 2002 19:11:41 -0000 @@ -164,6 +164,28 @@ #endif +/* Added for Debian by Steve M. Robbins */ +#if !defined(MACHINE_WORD_FORMAT) +# include + +# if __BYTE_ORDER == __BIG_ENDIAN +# define MACHINE_WORD_FORMAT DGL_BIG_ENDIAN +# elif __BYTE_ORDER == __LITTLE_ENDIAN +# define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN +# else +# error Inventor needs to be set up for your CPU type. +# endif + +# if __FLOAT_WORD_ORDER == __BIG_ENDIAN +# define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE +# else +# define MACHINE_FLOAT_FORMAT DGL_NON_IEEE +# endif + +#endif + + + /* * 32/64-bit architecture dependent statements @@ -309,12 +331,10 @@ */ #if MACHINE_FLOAT_FORMAT == DGL_NON_IEEE -#if __i386__ || __ia64__ void mem_hton_float(float *t, float *f); void mem_ntoh_float(float *t, float *f); void mem_hton_double(double *t, double *f); void mem_ntoh_double(double *t, double *f); -#endif /* __i386__ || __ia64__ */ #define DGL_HTON_FLOAT(t,f) mem_hton_float(&t,&f) #define DGL_NTOH_FLOAT(t,f) mem_ntoh_float(&t,&f) #define DGL_HTON_DOUBLE(t,f) mem_hton_double(&t,&f) With this change, the build on linux/alpha proceeds until "ivman" is used to build the manpage SoCenterballDragger.3iv, at which point it apparently coredumps [http://buildd.debian.org/build.php?arch=&pkg=inventor]. I haven't investigated further. However, it builds successfully on several other architectures: arm, i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc. Cheers, -Steve From owner-info-inventor-dev@oss.sgi.com Thu Jul 11 18:18:53 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6C1IqRw031873 for ; Thu, 11 Jul 2002 18:18:52 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6C1IqDA031872 for info-inventor-dev-outgoing; Thu, 11 Jul 2002 18:18:52 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from smtprelay6.dc2.adelphia.net (smtprelay6.dc2.adelphia.net [64.8.50.38]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6C1InRw031856 for ; Thu, 11 Jul 2002 18:18:50 -0700 Received: from kitt ([68.69.147.53]) by smtprelay6.dc2.adelphia.net (Netscape Messaging Server 4.15 smtprelay6 Dec 7 2001 09:58:59) with ESMTP id GZ43UV01.9K5 for ; Thu, 11 Jul 2002 21:23:19 -0400 From: "Kevin M. Young" To: Subject: Solaris 8 or 9 Date: Thu, 11 Jul 2002 21:23:08 -0400 Message-ID: <000001c22942$b4b0c820$35934544@kitt> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk I am currently tasked to come up with a solution to get inventor to work with Solaris 8 or 9 as we are porting our application to SUN. I had incredible success under linux and know linux quite well. I have not used Solaris yet, so this will be new territory - however, much welcomed territory. Any assistance and lessons learned that anyone could share would be great. I'd like to stick with the open source version of inventor and not go the tgs route. Thanks, Kevin From owner-info-inventor-dev@oss.sgi.com Thu Jul 25 09:02:18 2002 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6PG2IRw012481 for ; Thu, 25 Jul 2002 09:02:18 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6PG2Ibq012480 for info-inventor-dev-outgoing; Thu, 25 Jul 2002 09:02:18 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-info-inventor-dev@oss.sgi.com using -f Received: from mail.onego.ru (mail.onego.ru [195.161.136.3]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6PG2ARw012477 for ; Thu, 25 Jul 2002 09:02:11 -0700 Received: from lost (mail.karhakos.onego.ru [213.59.10.183]) by mail.onego.ru (8.10.1/8.10.1) with SMTP id g6PG38f12504 for ; Thu, 25 Jul 2002 20:03:09 +0400 Date: Thu, 25 Jul 2002 20:04:49 +0400 From: "Alexey A. Stepanov" To: info-inventor-dev@oss.sgi.com Subject: Transform Message-Id: <20020725200449.785894c6.saa@spb.org.ru> Organization: TEIA X-Mailer: Sylpheed version 0.7.8 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi, all! My basic task is to construct a tube between two points which consists of the same size segments. I already have a curve between two points and all I need is to transform a cylinder to get it the form of the curve. How can I do this? -- Alexey A. Stepanov