Class CentroidVertexUtils


  • public class CentroidVertexUtils
    extends Object
    Utilities for centroid vertices that do not belong in centroid vertex class itself
    • Constructor Detail

      • CentroidVertexUtils

        public CentroidVertexUtils()
    • Method Detail

      • updateCentroidVertexCentroidMapping

        public static <V extends CentroidVertex,​C extends Centroid> void updateCentroidVertexCentroidMapping​(Iterable<V> centroidVertices,
                                                                                                                   Function<C,​C> centroidToCentroidMapping,
                                                                                                                   boolean removeMissingMappings)
        Update the parent edge of all edge segments based on the mapping provided (if any)
        Type Parameters:
        V - type of centroid vertex
        C - type of centroid
        Parameters:
        centroidVertices - the centroid vertices to use
        centroidToCentroidMapping - to use should contain original centroid as used on current centroid vertex and then the value to replace it
        removeMissingMappings - when true if there is no mapping, the parent centroid is nullified, otherwise it is left in-tact