Show Tessellation
This example adds a layer to the basic globe that shows the tessellation.
ShowTessellationFragement.java
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.
*/
@Override
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();
wwd.getLayers().addLayer(layer);
return wwd;
}
}