At 07:36 AM 5/25/99 +0100, dave frost wrote:
>
>For the modelling i will be using java 3d.  One of the first question i
>need to address is what to use to model these planes.  I was thinking of
>some kind  ***StripArray, buti not only need to have wire frame, i will
>need smooth surfaces also, could i do this using some of the
>capabilities within the appearance object of my plane, to go from a wire
>frame to a smooth plane.

I had to do something like you're describing recently and here's how I did
it. If wireframe is not selected the geometry is drawn solid. If it is
selected, then the wireframe is drawn. I hope this helps...

    Appearance base_color = new Appearance();
    base_color.setMaterial(base_mat);

    if (wireframe)
    {
      PolygonAttributes polyDraw = new PolygonAttributes();
      polyDraw.setPolygonMode(PolygonAttributes.POLYGON_LINE);
      base_color.setPolygonAttributes(polyDraw);
    }

Cindy

          __________________________________________
         |                                          |
         |             Cindy Ballreich              |
     |\  |  Technical Director - 3D Visualization   |
   _/ .`-|  Computer Associates International, Inc. |    ,
   \ .4  |        [EMAIL PROTECTED]         |\__//
    `--'\|           [EMAIL PROTECTED]            |`--'
        C|__________________________________________|

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to