Package org.geotools.renderer3d.terrainblock

Examples of org.geotools.renderer3d.terrainblock.TerrainBlock


    }


    private void checkNode( QuadTreeNode<TerrainBlock> node, final Vector3f currentCameraPosition )
    {
        final TerrainBlock terrainBlock = node.getNodeData();

        if ( terrainBlock != null )
        {
            // Calculate size/distance
            final double size = node.getBounds().getSizeAveraged();
            final double squaredSize = size * size;
            final double squaredDistance = terrainBlock.getCenter().distanceSquared( currentCameraPosition );
            final double comparsionFactor = squaredSize / squaredDistance;

            // Expand if needed, and if the node is larger than the minimum node size
            if ( comparsionFactor > EXPANSION_THRESHOLD && size > MINIMUM_NODE_SIZE_M )
            {
View Full Code Here

TOP

Related Classes of org.geotools.renderer3d.terrainblock.TerrainBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.