NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

points in 3D space

Hello,

I want to show only data points in 3D space. I have used the following code to do that:

Irregular3DSet testset = new Irregular3DSet(xyz,testsamples);

        DataReferenceImpl points_ref = new DataReferenceImpl("points_ref");
        points_ref.setData((Set)testset);

        ConstantMap[] pointsCMap = { new ConstantMap( 1.0f, Display.Red ),
                             new ConstantMap( 0.0f, Display.Green ),
                             new ConstantMap( 0.0f, Display.Blue ),
                             new ConstantMap( 5.50f, Display.PointSize )  };

        display.addReference( points_ref, pointsCMap );

However, this method is very slow. Is there another function or better method to accomplish this?

thanks,
john


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: