[JAVA3D] GeometryInfo

2003-12-05 Thread Chris Fenton
I have some code that generates a 'rounded stick' like object I use for creating molecular stick models. The GeometryInfo class interests me and looks like it could save me a lot of work. That is if I could get it to work. Case 1: def createNormals(self): gi = GeometryInfo(GeometryInfo.TRIANGLE_

Re: [JAVA3D] GeometryInfo

2003-12-05 Thread Michael Pfeiffer
It looks like there is a inconsistency within your vertices-array self.verts (e.g. a triangle which consists only of three points). But by the way, why don't you use a Cylinder for this kind of "rounded stick"? On Fri, 5 Dec 2003 02:19:39 -0700, Chris Fenton <[EMAIL PROTECTED]> wrote: I have some c

Re: [JAVA3D] GeometryInfo

2003-12-05 Thread Michael Pfeiffer
On Fri, 5 Dec 2003 10:35:38 +0100, Michael Pfeiffer <[EMAIL PROTECTED]> wrote: It looks like there is a inconsistency within your vertices-array self.verts (e.g. a triangle which consists only of three points). Sorry, I meant a triangle which consists only of TWO points, not three ;-) But by the w

Re: [JAVA3D] GeometryInfo

2003-12-05 Thread Chris Fenton
Michael Pfeiffer wrote: On Fri, 5 Dec 2003 10:35:38 +0100, Michael Pfeiffer <[EMAIL PROTECTED]> wrote: It looks like there is a inconsistency within your vertices-array self.verts (e.g. a triangle which consists only of three points). Sorry, I meant a triangle which consists only of TWO points,

Re: [JAVA3D] GeometryInfo

2003-12-05 Thread Chris Fenton
Michael Pfeiffer wrote: Doesn't work Case 1: def createNormals(self): gi = GeometryInfo(GeometryInfo.TRIANGLE_ARRAY| LineArray.COLOR_3) gi.setCoordinates(self.verts) nm = NormalGenerator() nm.generateNormals(gi) si = Stripifier() si.stripify(gi) return gi.getGeometryArray(1,0,0) Result:

[JAVA3D] Center of gravity of a polygon

2003-12-05 Thread Shyam Prakash
Hello,     I have a polygon represented by a set of points. Can somebody tell me how can I calculate the center of gravity of this polygon.   Thanks Shyam === To unsubscribe, send email to [EMAIL PROTE

Re: [JAVA3D] Center of gravity of a polygon

2003-12-05 Thread Dennis Wagner
Shyam Prakash wrote: Hello, I have a polygon represented by a set of points. Can somebody tell me how can I calculate the center of gravity of this polygon. Thanks Shyam === To unsubscribe, send email to [EMAI

Re: [JAVA3D] Center of gravity of a polygon

2003-12-05 Thread Martin Wood
this is a good start : http://www.exaflop.org/docs/cgafaq/cga2.html check out 2.02 : How can the centroid of a polygon be computed? Shyam Prakash wrote: Hello, I have a polygon represented by a set of points. Can somebody tell me how can I calculate the center of gravity of this pol

[JAVA3D] Intel 82815 Chipset support for Java3D/OPenGL ?

2003-12-05 Thread Jean-Robert D'Amore
Hi, I have tested my Java3D/OpenGL application OK with NVidia GeForce 4, FX500 and ATI Rage 128 video cards. But it does not work with an integrated chipset Intel 82815 : just a grey panel... Does anyone knows why? Thanks JR -- D'Amore Jean-Robert IT Systems Bell Geospace Ltd. Unit 5A

Re: [JAVA3D] Center of gravity of a polygon

2003-12-05 Thread Jean-Robert D'Amore
if you've got a solid shape of n points, each points Pi being affected of the mass mi, then the center of the polygon G is defined by the equation: [Sum(i=0, i<=n) mi ] G = Sum(i=0,i<=n) mi*Pi     ( if Sum(i=0,i<=n) mi != 0) Dennis Wagner wrote: Shyam Prakash wrote: Hello,    

Re: [JAVA3D] Intel 82815 Chipset support for Java3D/OPenGL ?

2003-12-05 Thread Alessandro Borges
Hi, I am not sure if this is your case, but some vcard makers implements OpenGL ICD as a emulation over DirectX. So you must install DirectX (8.1a or 9b) to get OpenGL support. But you can also try Java3D Direct3D JRE. Java3D 1.3.x Direct3D requires DirectX 8.1 Alessandro --- Jean-Robert D'A

Re: [JAVA3D] Intel 82815 Chipset support for Java3D/OPenGL ?

2003-12-05 Thread Jean-Robert D'Amore
Thank you Allessandro, I magically solved the problem by setting the hardware acceleration to "None" in the display settings. I have no clue why it had to be set in this fashion. Any info welcome... Otherwise my application targets win32 platforms, do you think I should use Java3D/DirectX inste

Re: [JAVA3D] Intel 82815 Chipset support for Java3D/OPenGL ?

2003-12-05 Thread Alessandro Borges
Good news, Jean-Robert! I recomend OpenGL. Java3D Direct3D needs DirectX 8.1 or higher, and it means ~32mb of download, if not already installed. And some old video cards becames very slow with current DirectX 9b. And Java3D OpenGL will use, at least, the default OpenGL 1.1 present in all Wind