Hi All,

I've create a simple robot from cilinders and boxes. Now I want to
create the same robot with surfaces made up of polylines. Therefore I
made my own WireBox class with the following constructor.

     public WireBox(float w, float h, float z){
        allPoints = new Point3f[8];

        allPoints[0] = new Point3f(-w/2,-h/2,-z/2);
        allPoints[1] = new Point3f(w/2,-h/2,-z/2);
        allPoints[2] = new Point3f(w/2,h/2,-z/2);
        allPoints[3] = new Point3f(-w/2,h/2,-z/2);
        allPoints[4] = new Point3f(-w/2,-h/2,z/2);
        allPoints[5] = new Point3f(w/2,-h/2,z/2);
        allPoints[6] = new Point3f(w/2,h/2,z/2);
        allPoints[7] = new Point3f(-w/2,h/2,z/2);

        coordinates = new float[24];
        for(int i=0; i<allPoints.length; i++){
            coordinates[(i*3)+0]=allPoints[i].x;
            coordinates[(i*3)+1]=allPoints[i].y;
            coordinates[(i*3)+2]=allPoints[i].z;
        }
        LineArray line = new LineArray(8, LineArray.COORDINATES);
        line.setCoordinates(0, coordinates);
     }

First I got a compilor error that the class must have a  void
duplicateNode(javax.media.j3d.Node , boolean ) -method so I made :

public void duplicateNode(javax.media.j3d.Node n, boolean b){
        super.duplicateNode(n, b);
    }

After this I got the message
Can't directly invoke abstract method void
duplicateNode(javax.media.j3d.Node , boolean )

How can I solve this problem so I can add instances of this class to a
TransformGroup?

Thanks in advance.

===========================================================================
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".

Reply via email to