Yes, strip is a set of points conforming a surface, such that
contiguous points form "somehow" a face. That's the traditional concept
of strip, and in the case of TriangleFans, the stripCount refers to the
fans.
Carlos
Andy wrote:
>Thank you very much, here is my new code which works.
>
>private BranchGroup createCone(){
> BranchGroup root = new BranchGroup();
>
> // CREATE ALL TRIANGLES //
> TriangleFanArray tfa;
> int s = 8;
> int v = s + 1;
> int totalV = v + 1;
> Point3f coords[] = new Point3f[v+1];
> int stripCounts[] = {10};
> float r = 0.5f;
> float x, y;
> double angle = 360 / s;
>
> coords[0] = new Point3f(0.0f, 0.0f, 0.0f);
>
> for(int a = 1, n = 0; a <= s; a++, n++){
> x = r * EngMath.cos(n*angle);
> y = r * EngMath.sin(n*angle);
>
> coords[a] = new Point3f(x, y, 0.0f);
> }
>
> coords[9] = coords[1];
>
> tfa = new TriangleFanArray(10, TriangleFanArray.COORDINATES,
>stripCounts);
> tfa.setCoordinates(0, coords);
> root.addChild(new Shape3D(tfa));
> return root;
> }
>
>O....one more question, strip you said is referring to the Fan, not to the
>line between two points?
>
>Sincerely,
>
>Andy
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".