Class CoplanarityManager

  • All Implemented Interfaces:
    IGLBindedResource, IGLRenderer, ISortableDraw

    public class CoplanarityManager
    extends Drawable
    implements IGLBindedResource
    This pseudo-drawable will handle drawing outlines (such as polygon border), contour line (lying exactly ON a polygon), or text which position is ON a polygon) that may be coplanar or partially hidden by a collection of polygons. This allows rendering outlines properly and hence deals with Z-fighting artifacts, 2d text crossing 3D contents, etc.
    Author:
    Martin Pernollet
    • Constructor Detail

      • CoplanarityManager

        public CoplanarityManager​(Drawable outline,
                                  Drawable plane)
      • CoplanarityManager

        public CoplanarityManager​(List<? extends Drawable> outlines,
                                  Drawable plane)
    • Method Detail

      • computeBounds

        protected void computeBounds​(List<? extends Drawable> outlines,
                                     Drawable plane)
        Will try to compute bounds if they are available. This should be invoked
        • While building the object
        • While mounting the object, has it may contain resource that have their bounds known after mounting.
        Parameters:
        outlines -
        plane -