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] – [As array] 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|}}
  
  
-If you import a PLY file that include both Vertexes and Faces (and/or Lines), GroIMP will create two (or three) point cloud nodes, one per type of object to import from the PLY file.+If you import a PLY file that include both vertices and Faces (and/or Lines), GroIMP will create two (or three) point cloud nodes, one per type of object to import from the PLY file.
 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 vertexes 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//.
  
 Similarly to the point cloud as array, the cloud nodes can be accessed with RGG commands: Similarly to the point cloud as array, the cloud nodes can be accessed with RGG commands:
  
 <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.1731493213.txt.gz · Last modified: 2024/11/13 11:20 by gaetan