Module pointcloud

Class Tools

java.lang.Object
de.grogra.pointcloud.tools.Tools

public class Tools extends Object
  • Constructor Details

    • Tools

      public Tools()
  • Method Details

    • merge

      public static Cloud merge(Aggregate a, CloudContext value)
    • allCastableTo

      public static boolean allCastableTo(Class from, Iterable<Object> list)
    • merge

      public static Cloud merge(Object[] cs)
      How ugly this is :o. But according to java specification MET51-J, the ambiguity should be solved at compile time.
    • findSmallestDimesionCloud

      public static int findSmallestDimesionCloud(Cloud[] cs)
      find the index of the cloud whose point have the smallest dimension. e.g. if Cloud[] contains : a cloud of point(x,y,z) and a cloud of meshes(x,y,z *3) the return is the index of the first cloud.
    • merge

      public static Cloud merge(Cloud[] cs)
      Default merge on Cloud.
    • merge

      public static Cloud merge(Cloud c1, Cloud[] cs)
    • merge

      public static Cloud merge(Cloud c1, Cloud c2)
      Merges the leaf nodes of the specified point cloud into the current point cloud. c2 is deleted.
    • merge

      public static Cloud merge(CloudArray[] cs)
      Merge specifically CloudArrays, the arrays of points are copied with System.arraycopy
    • merge

      public static Cloud merge(CloudArray c1, CloudArray[] cs)
    • merge

      public static Cloud merge(CloudArray c1, CloudArray c2)
    • merge

      public static Cloud merge(CloudList[] cs)
      Merge specifically Cloud List. The List of points are merged.
    • merge

      public static Cloud merge(CloudList c1, CloudList[] cs)
    • merge

      public static Cloud merge(CloudList c1, CloudList c2)
    • merge

      public static Cloud merge(CloudGraphBase[] cs)
      Merge specifically Cloud Graphs. The first children (Nodes) are simply moved from one PointCloud Parent to another.
    • merge

      public static Cloud merge(CloudGraphBase c1, CloudGraphBase[] cs)
    • merge

      public static Cloud merge(CloudGraphBase c1, CloudGraphBase c2)
      This breaks the pointcloud management. The points are not monitored when their are removed or added ...
    • split

      public static Cloud[] split(Cloud.Point[] nodes, Cloud cloud)
      Split the could into two based on the selection of nodes. If some nodes do not belong to the cloud, they are ignored. The return array is [oldcloud, newcloud]
    • split

      public static Cloud[] split(Aggregate a, Cloud.Point p, Cloud parent)
    • split

      public static Cloud[] split(Plane plane, Cloud cloud)
      Split the cloud based on a plane. A new Cloud is created to have the discarded Points. The plane is pushed to the inverse of the global tranformation of the cloud to be in the same relative coordinate. Return [oldcloud, newcloud]
    • convert

      public static Cloud convert(Cloud old, Class newtype)