User Tools

Site Tools


tutorials:pointcloud-io

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:pointcloud-io [2024/11/13 11:20] gaetantutorials:pointcloud-io [2024/12/06 12:09] (current) – [As array] gaetan
Line 59: Line 59:
  
 <code java> <code java>
-import de.grogra.pointcloud.groimp.PointCloud; 
 [pc:PointCloud ::> println(pc.getCloud()); ] [pc:PointCloud ::> println(pc.getCloud()); ]
 [pc:PointCloud ::> println(pc.getCloud().pointsToFloat()); ] [pc:PointCloud ::> println(pc.getCloud().pointsToFloat()); ]
Line 85: Line 84:
 The given example import a XYZ file, which only contains Points. So the graph created is of the structure: The given example import a XYZ file, which only contains Points. So the graph created is of the structure:
  
-{{:groimp-platform:graph2d_pcgraph_point.png?400|}}+{{:tutorials:graph2d_pcgraph_point.png?400|}}
  
  
Line 91: Line 90:
 Each of these point cloud nodes are added under a //CollectionCloud// node: Each of these point cloud nodes are added under a //CollectionCloud// node:
  
-{{:groimp-platform:graph2d_pcgraph_meshes.png?400|}}+{{:tutorials:graph2d_pcgraph_meshes.png?400|}}
  
 This very simple example of a PLY file with 3 vertices and one face show that the face is imported as a LeafMeshImpl (which extends MeshNode - the default mesh node of GroIMP). The LeafMesh is linked to the points that defines it by //Refinement Edges//. This very simple example of a PLY file with 3 vertices and one face show that the face is imported as a LeafMeshImpl (which extends MeshNode - the default mesh node of GroIMP). The LeafMesh is linked to the points that defines it by //Refinement Edges//.
Line 98: Line 97:
  
 <code java> <code java>
-import de.grogra.pointcloud.groimp.PointCloud; 
 [pc:PointCloud ::> println(pc.getCloud()); ] // print the CloudGraph node for each point cloud (2 here) [pc:PointCloud ::> println(pc.getCloud()); ] // print the CloudGraph node for each point cloud (2 here)
 [pc:PointCloud ::> println(pc.getCloud().pointsToFloat()); ] // print the float array representation of all nodes (in this example it print two float array that contains the same values [pc:PointCloud ::> println(pc.getCloud().pointsToFloat()); ] // print the float array representation of all nodes (in this example it print two float array that contains the same values
tutorials/pointcloud-io.1731493233.txt.gz · Last modified: 2024/11/13 11:20 by gaetan