Class CFaceSize

  • All Implemented Interfaces:
    Comparable<Constraint<?>>

    public class CFaceSize
    extends Constraint<AFace>
    Ensure faces are large enougth. Too small faces are deleted, aggregated of scaled.
    Author:
    julien Gaffuri
    • Constructor Detail

      • CFaceSize

        public CFaceSize​(AFace agent,
                         double minSizeDel,
                         double minSizeDelHole,
                         double minSize,
                         boolean preserveAllUnits,
                         boolean preserveIfPointsInIt)
        Parameters:
        agent -
        minSizeDel - Below this size, the face is always deleted. Above, it is enlarged to minSize or deleted if not possible
        minSizeDelHole - Below this size, the hole always is deleted. Above, it is enlarged to minSize or deleted if not possible
        minSize - The minimum size of a face
        preserveAllUnits - Ensure that no unit disappear. At least one face of a unit is preserved.
        preserveIfPointsInIt - Ensure that the face is not deleted if it has points in it.