127

Controlling appearance
PointAttributes example code

  • Create PointAttributes to set the point size and anti-aliasing
    PointAttributes myPA = new PointAttributes( );
    myPA.setPointSize( 10.0f );
    myPA.setPointAntialiasingEnable( true );
  • Create Appearance, set the point attributes, and assemble the shape
    Appearance myAppear = new Appearance( );
    myAppear.setPointAttributes( myPA );
    Shape3D myShape = new Shape3D( myGeom, myAppear );