177

Using special-purpose groups
DecalGroup example code

  • Build an underlying surface shape, and decal shapes
    Shape3D underly = new Shape3D( geom0, app0 );
    Shape3D decal_1 = new Shape3D( geom1, app1 );
    Shape3D decal_2 = new Shape3D( geom2, app2 );

  • Add them to a decal group, starting with the underlying surface
    DecalGroup myDecals = new DecalGroup( );
    myDecals.addChild( underly );  // First!
    myDecals.addChild( decal_1 );
    myDecals.addChild( decal_2 );