Enum Class ELcdSimplificationStrategy

java.lang.Object
java.lang.Enum<ELcdSimplificationStrategy>
com.luciad.meshup.ELcdSimplificationStrategy
All Implemented Interfaces:
Serializable, Comparable<ELcdSimplificationStrategy>, Constable

public enum ELcdSimplificationStrategy extends Enum<ELcdSimplificationStrategy>
3D mesh simplification strategies.
Since:
2020.0
  • Enum Constant Details

    • QUADRIC_EDGE_COLLAPSE

      public static final ELcdSimplificationStrategy QUADRIC_EDGE_COLLAPSE
      Simplification based on a iterative edge collapse.

      This is the default strategy, as it gives the best all-around results. It can be used for both "reality meshes" or CAD like meshes. In cases where the input dataset is made up of extremely simple shapes (e.g.: cubes), the results can be rather displeasing because the meshes cannot be simplified without changing the topology significantly. in such cases DROP_SMALL_PARTS should be used.

    • CLUSTERING

      public static final ELcdSimplificationStrategy CLUSTERING
      Simplification based on vertex clustering.

      This strategy gives comparable results to QUADRIC_EDGE_COLLAPSE with slightly faster performance and slightly worse visual results. This strategy tends to preserve the edges of the dataset better for "reality meshes".

    • DROP_SMALL_PARTS

      public static final ELcdSimplificationStrategy DROP_SMALL_PARTS
      Simplification by dropping small objects.

      Removes small independent pieces. This works best when the original shapes are very simple (like blocks) and cannot be simplified without changing the topology of the mesh significantly. This strategy should not be used with "reality meshes" since those are usually one solid piece.

  • Method Details

    • values

      public static ELcdSimplificationStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ELcdSimplificationStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null