|
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 -----
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 -----
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.
_______
/ \
/ \
/
\
-----------------------
|