java.lang.Object
de.grogra.pointcloud.tools.Tools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
allCastableTo
(Class from, Iterable<Object> list) static Cloud
static int
find the index of the cloud whose point have the smallest dimension.static Cloud
Default merge on Cloud.static Cloud
merge
(CloudArray[] cs) Merge specifically CloudArrays, the arrays of points are copied with System.arraycopystatic Cloud
merge
(CloudArray c1, CloudArray c2) static Cloud
merge
(CloudArray c1, CloudArray[] cs) static Cloud
Merges the leaf nodes of the specified point cloud into the current point cloud.static Cloud
static Cloud
merge
(CloudGraphBase[] cs) Merge specifically Cloud Graphs.static Cloud
merge
(CloudGraphBase c1, CloudGraphBase c2) This breaks the pointcloud management.static Cloud
merge
(CloudGraphBase c1, CloudGraphBase[] cs) static Cloud
Merge specifically Cloud List.static Cloud
static Cloud
static Cloud
merge
(Aggregate a, CloudContext value) static Cloud
How ugly this is :o.static Cloud[]
split
(Cloud.Point[] nodes, Cloud cloud) Split the could into two based on the selection of nodes.static Cloud[]
Split the cloud based on a plane.static Cloud[]
split
(Aggregate a, Cloud.Point p, Cloud parent)
-
Constructor Details
-
Tools
public Tools()
-
-
Method Details
-
merge
-
allCastableTo
-
merge
How ugly this is :o. But according to java specification MET51-J, the ambiguity should be solved at compile time. -
findSmallestDimesionCloud
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
Default merge on Cloud. -
merge
-
merge
Merges the leaf nodes of the specified point cloud into the current point cloud. c2 is deleted. -
merge
Merge specifically CloudArrays, the arrays of points are copied with System.arraycopy -
merge
-
merge
-
merge
Merge specifically Cloud List. The List of points are merged. -
merge
-
merge
-
merge
Merge specifically Cloud Graphs. The first children (Nodes) are simply moved from one PointCloud Parent to another. -
merge
-
merge
This breaks the pointcloud management. The points are not monitored when their are removed or added ... -
split
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
-
split
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
-