java.lang.Object
de.grogra.pointcloud.utils.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCloudToGraph
(Cloud pc, Node parent, Context context) Adds a point cloud to the current context's graph Obsolete.static Cloud
ensureEditable
(Cloud cloud) If the cloud is non editable, create a new ediable one with the points, and dispose of the old one.static Node[]
fromSourceName
(Graph g, String name) Return the PointCloudBase that have the given source name (i.e. the pointcloud created from a file).static Matrix34d
static boolean
isPointOverPlane
(Cloud.Point point, Plane plane) Returns true if the point is on one side of the given plane and false if it is on the other sidestatic void
Push the local transformation of the PointCloud to its Points.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
pushTransformToPoints
Push the local transformation of the PointCloud to its Points. This enables to apply transformation tools to the pointcloud and then include the transformation on the points for other operations (using tools) -
ensureEditable
If the cloud is non editable, create a new ediable one with the points, and dispose of the old one. -
fromSourceName
Return the PointCloudBase that have the given source name (i.e. the pointcloud created from a file). One file usually create several pointcloudbase objects (one for the points, one for the faces, one for the edges).- Parameters:
name
-- Returns:
-
addCloudToGraph
Adds a point cloud to the current context's graph Obsolete. A Cloud can be added in the graph with XL command [ F ==> F c] with c a cloud. The node is automatically added.- Parameters:
pc
- . Pointcloud which will be addedcontext
- . The current context
-
isPointOverPlane
Returns true if the point is on one side of the given plane and false if it is on the other side- Parameters:
point
- The point to check the position ofplane
- The plane to check whether the point is on the one side or on the other side- Returns:
- true If the point is on one side of the plane and false otherwise
-
getGlobalTransform
-