private void computeCosts() {
        collapseCostSet.clear();
        
        for (Vertex vertex : vertexList) {
            
            if (!vertex.edges.isEmpty()) {
                computeVertexCollapseCost(vertex);
            } else {
                logger.log(Level.FINE, "Found isolated vertex {0} It will be excluded from LOD calculations.", vertex);
            }
        }
//        assert (vertexList.size() == collapseCostSet.size());
//        assert (checkCosts());
    }
Constructs an LodGenerator for the given Geometry.

@param geom the geometry for which to generate LODs.
jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java