Class MarkConicFactory

Object
MarkConicFactory

public class MarkConicFactory extends Object
Factory class for creating conic marks (ellipses and ellipsoids) from points.
  • Method Details

    • createMarkFromPoint

      public static Mark createMarkFromPoint(Point3i point, int size, boolean do3D)
      Creates a mark from an integer 3D point.
      Parameters:
      point - the center point of the mark
      size - the size of the mark (diameter)
      do3D - if true, creates a 3D ellipsoid; if false, creates a 2D ellipse
      Returns:
      a new Mark instance (either Ellipsoid or Ellipse)
    • createMarkFromPoint

      public static Mark createMarkFromPoint(Point3d point, int size, boolean do3D)
      Creates a mark from a double-precision 3D point.
      Parameters:
      point - the center point of the mark
      size - the size of the mark (diameter)
      do3D - if true, creates a 3D ellipsoid; if false, creates a 2D ellipse
      Returns:
      a new Mark instance (either Ellipsoid or Ellipse)
      Throws:
      IllegalArgumentException - if size is not positive or if do3D is false and point.z() is not 0