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


Instead why not just create a box with a polygon mode of line:

        Appearance wireApp = new Appearance();
        PolygonAttributes wirePgonAttr = new PolygonAttributes();
        wirePgonAttr.setPolygonMode(PolygonAttributes.POLYGON_LINE);
        wireApp.setPolygonAttributes(wirePgonAttr);
        Box wireBox = new Box(1.0f, 1.0f, 1.0f, 0, wireApp);


>
> 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?

What is the complete class definition?  Does your class extend any Java 3D
classes?  There isn't enough information here to tell what is going on.

Dan Petersen
Java 3D Team
Sun Microsystems

** Look for the new newsgroup: comp.lang.java.3d **

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