Fork me on GitHub

Show Tessellation

This example adds a layer to the basic globe that shows the tessellation.

The ShowTessellationFragment class extends the BasicGlobeFragment and overrides the createWorldWindow method. Here we simply add an additional ShowTessellationLayer to the globe.

public class ShowTessellationFragment extends BasicGlobeFragment {

     * Creates a new WorldWindow with a additional tessellation layer.
    public WorldWindow createWorldWindow() {
        // Let the super class (BasicGlobeFragment) do the creation
        WorldWindow wwd = super.createWorldWindow();

        // Create a layer that displays the globe's tessellation geometry.
        ShowTessellationLayer layer = new ShowTessellationLayer();

        return wwd;