225

Using texture coordinates
Texture scaling example code

  • Create TextureAttributes
    TextureAttributes myTA = new TextureAttributes( );

  • Create a scaling transform
    Transform3D myTrans = new Transform3D( );
    myTrans.set( 4.0 );
    myTA.setTextureTransform( myTrans );

  • Set the texture attributes on an Appearance
    Appearance myAppear = new Appearance( );
    myAppear.setTextureAttributes( myTA );

  • Assemble the shape
    Shape3D myShape = new Shape3D( myText, myAppear );