com.orsoncharts.graphics3d

## Class StandardFaceSorter

- java.lang.Object
- - com.orsoncharts.graphics3d.StandardFaceSorter

- All Implemented Interfaces:
    FaceSorter, java.io.Serializable

      public class StandardFaceSorter
      extends java.lang.Object
      implements FaceSorter, java.io.Serializable

  A face sorter that orders the faces by z-value.
  Since:
    1.3
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StandardFaceSorter()` Creates a new instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<Face>` | `sort(java.util.List<Face> faces, Point3D[] eyePts)` Returns a list of faces in the order that they should be painted.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StandardFaceSorter

          public StandardFaceSorter()

      Creates a new instance.

  - ### Method Detail

    - #### sort

          public java.util.List<Face> sort(java.util.List<Face> faces,
                                           Point3D[] eyePts)

      Description copied from interface: `FaceSorter`
      Returns a list of faces in the order that they should be painted.
      Specified by:
        `sort` in interface `FaceSorter`
      Parameters:
        `faces` - the faces before sorting (`null` not permitted).
        `eyePts` - the points in 3D space relative to the viewing position.
      Returns:
        An ordered list (note that the result may be the same list passed in via the `faces` argument).