Hi,
    Take a look at the Appearance object.  One of the values of the Appearance is a PolygonAttributes object, and of of its values is a constant which defines how to render the geometry.  Specifically, you want the rendering to to be POLYGON_LINE.  Example:

    Appearance app = new Appearance();
    PolygonAttributes polyAtt = new PolygonAttributes();
 
     if(showWireframe){
        polyAtt.setPolygonMode(PolygonAttributes.POLYGON_LINE);
        polyAtt.setCullFace(PolygonAttributes.CULL_NONE);
     }
     else{
        polyAtt.setCullFace(PolygonAttributes.CULL_BACK);
        polyAtt.setPolygonMode(PolygonAttributes.POLYGON_FILL);
    }
    app.setPolygonAttributes(polyAtt);

                -Gary
 
 

Marina Santana wrote:

Hi all, Sorry if you get this mail twice. How can I render an image in wireframe? Thanks, Marina Santana

Reply via email to