Title: Message
If you look at forums of java.sun.com and Java3d particularly you will notice that someone is talking about j3d.org which pontentially may contain relevant class.
I cannot find anything in j3d.org
----- Original Message -----
From: Allan Ash
Sent: Friday, June 20, 2003 12:58 AM
Subject: Re: [JAVA3D] Cone with 2 radius

Jack,
 
Whew! It took a while to locate that stuff (I'm still a J3D novice)! Is there any documentation about what's in there, or do you just have to crawl around in the source for a while? How would you ever find a thing called "Quadrics"? (not that you could use it, because it's not public).
 
Well, now that I found it, I tried to use it via the various Cone delarators, but there doesn't seem to be a Cone with 2 radii.
 
-Allan Ash
Software Arts, Inc. - the Information Visualization Company
www.infoviz.biz
----- Original Message -----
From: Jack Bowie
Sent: Thursday, June 19, 2003 1:35 PM
Subject: Re: [JAVA3D] Cone with 2 radius

That's where it is. You should be able to decipher the calling sequences from the Cone and Quadrics sources.
 
Jack
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 19, 2003 1:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Cone with 2 radius

Do you mean com.sun.j3d.utils.geometry? Otherwise, what is the correct class? ANd what about the constructor in order to generate the shape.
----- Original Message -----
From: Jack Bowie
Sent: Thursday, June 19, 2003 7:41 PM
Subject: Re: [JAVA3D] Cone with 2 radius

BTW, I've never used it, but there's a Cone primitive (with two radii) in the Quadrics class of the Sun geometry utilities. This is the class called by Cone.
-----Original Message-----
From: Allan Ash [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 19, 2003 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Cone with 2 radius

I'll probably just add a TriangleFanArray to the top and bottom. You can probably do that temporarily until I get around to it.
 
-Allan Ash
Software Arts, Inc. - the Information Visualization Company
www.infoviz.biz
----- Original Message -----
Sent: Thursday, June 19, 2003 10:18 AM
Subject: Re: [JAVA3D] Cone with 2 radius

I would appreciate if you deal with making the frustrum solid.
----- Original Message -----
From: Allan Ash
Sent: Thursday, June 19, 2003 5:12 PM
Subject: Re: [JAVA3D] Cone with 2 radius

Well, actually I just didn't need it for what I was doing. I used two of them to build something that looked like the nozzle of a fire hose for an Information Visualization demo I was doing (see the Emergencies Demo on my web site). If I get a chance, maybe I'll add top and bottom caps as an option.
 
-Allan Ash
Software Arts, Inc. - the Information Visualization Company
www.infoviz.biz
----- Original Message -----
Sent: Thursday, June 19, 2003 3:38 AM
Subject: Re: [JAVA3D] Cone with 2 radius

That's better, but the shape is not solid, why that?
----- Original Message -----
From: Allan Ash
Sent: Thursday, June 19, 2003 4:16 AM
Subject: Re: [JAVA3D] Cone with 2 radius

Oh, sorry. I didn't notice that your 4th parameter (the number of quadrilaterals needed to define the cone) was set to 2, making it flat. Try something like 16 or 32.
 
Also, the comments lie about that parameter defaulting to 16. I forgot to test for a null parameter there.
 
-Allan Ash
Software Arts, Inc. - the Information Visualization Company
 
Sent: Wednesday, June 18, 2003 4:54 PM
Subject: Re: [JAVA3D] Cone with 2 radius

It worked but It's not 3d :(
 
----- Original Message -----
From: Allan Ash
Sent: Wednesday, June 18, 2003 10:17 PM
Subject: Re: [JAVA3D] Cone with 2 radius

The parameter is a  java.awt.Color Color, not a Color3f.
 
Try: AttenuatedCone frustrum=new AttenuatedCone(1.0f,0.5f,1.5f,2,new Color(0.0f, 1.0f, 0.0f),0.5f);
 
-Allan Ash
Software Arts, Inc. - the Information Visualization Company
 
----- Original Message -----
Sent: Wednesday, June 18, 2003 3:56 AM
Subject: Re: [JAVA3D] Cone with 2 radius

I put the following code in my class
 
Create the Frustrum 
 
 AttenuatedCone frustrum=new AttenuatedCone(1.0f,0.5f,1.5f,2,new Color3f(0.0f, 1.0f, 0.0f),0.5f);
 
and i recieved the following errors
 
D:\java\Java3d Project\tests\Hard tests\CallClass.java:24: cannot resolve symbol
symbol  : constructor AttenuatedCone  (float,float,float,int,javax.vecmath.Color3f,float)
location: class AttenuatedCone
 AttenuatedCone frustrum=new AttenuatedCone(1.0f,0.5f,1.5f,2,new Color3f(0.0f, 1.0f, 0.0f),0.5f);
                                ^
1 error
 
 
The AttenuatedCone class in in the same directory with my class
 
----- Original Message -----
From: Allan Ash
Sent: Wednesday, June 18, 2003 6:46 AM
Subject: Re: [JAVA3D] Cone with 2 radius

When I needed one, I did this, and called it AttenuatedCone. It's a set of quadrilaterals arranged around the top and bottom "hoops" like a barrel. I hope the comments explain what I was after.
 
-Allan
----- Original Message -----
Sent: Tuesday, June 17, 2003 2:42 PM
Subject: [JAVA3D] Cone with 2 radius

Is there such a class.
 
                                        _______
                                       /             \
                                      /                \
                                     /                   \
                                    -----------------------

Reply via email to