Class PointListFactory

Object
PointListFactory

public class PointListFactory extends Object
A factory for creating PointList objects from various types of point collections.
  • Method Details

    • create

      public static PointList create(List<Point3d> points)
      Creates a PointList from a list of Point3d objects.
      Parameters:
      points - the list of Point3d objects
      Returns:
      a new PointList containing the given points
    • create

      public static PointList create(List<Point3d> points, int id)
      Creates a PointList from a list of Point3d objects with a specified ID.
      Parameters:
      points - the list of Point3d objects
      id - the ID to assign to the PointList
      Returns:
      a new PointList containing the given points and ID
    • createMarkFromPoints3f

      public static PointList createMarkFromPoints3f(List<Point3f> points)
      Creates a PointList from a list of Point3f objects.
      Parameters:
      points - the list of Point3f objects
      Returns:
      a new PointList containing the given points converted to Point3d
    • createMarkFromPoints3i

      public static PointList createMarkFromPoints3i(List<Point3i> points)
      Creates a PointList from a list of Point3i objects.
      Parameters:
      points - the list of Point3i objects
      Returns:
      a new PointList containing the given points converted to Point3d