Class PointListFactory
Object
org.anchoranalysis.mpp.mark.points.PointListFactory
public class PointListFactory extends Object
A factory for creating PointList objects from various types of point collections.
-
Method Summary
Modifier and Type Method Description static PointListcreate(List<org.anchoranalysis.spatial.point.Point3d> points)Creates a PointList from a list of Point3d objects.static PointListcreate(List<org.anchoranalysis.spatial.point.Point3d> points, int id)Creates a PointList from a list of Point3d objects with a specified ID.static PointListcreateMarkFromPoints3f(List<org.anchoranalysis.spatial.point.Point3f> points)Creates a PointList from a list of Point3f objects.static PointListcreateMarkFromPoints3i(List<org.anchoranalysis.spatial.point.Point3i> points)Creates a PointList from a list of Point3i objects.
-
Method Details
-
create
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
Creates a PointList from a list of Point3d objects with a specified ID.- Parameters:
points- the list of Point3d objectsid- the ID to assign to the PointList- Returns:
- a new PointList containing the given points and ID
-
createMarkFromPoints3f
public static PointList createMarkFromPoints3f(List<org.anchoranalysis.spatial.point.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<org.anchoranalysis.spatial.point.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
-