User Tools

Site Tools


02_user_tutorials:pointclouds:04_using-mesh-clouds-as-organ

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
02_user_tutorials:pointclouds:04_using-mesh-clouds-as-organ [2025/12/10 13:14] – ↷ Page moved from 02_new_tutorials:pointclouds:04_using-mesh-clouds-as-organ to 02_user_tutorials:pointclouds:04_using-mesh-clouds-as-organ gaetan02_user_tutorials:pointclouds:04_using-mesh-clouds-as-organ [2025/12/12 13:09] (current) – [Loading cloud] groimp
Line 18: Line 18:
  
 In order to proper ship this project, the used point cloud is added as a file to the GroIMP file explorer.{{ :tutorials:file_dialog_all_files.png?direct&200|}}  In order to proper ship this project, the used point cloud is added as a file to the GroIMP file explorer.{{ :tutorials:file_dialog_all_files.png?direct&200|}} 
-Therefore we first need to add the ply file to the [[01_user_documentation:user-guide:common_panels#file_explorer|file explorer]]. With clicking on Objects/new/Add file in this explorer, a file dialog is opened. In this dialog  +Therefore we first need to add the ply file to the [[01_user_documentation:03_interacting_with_groimp:02_panels:02_explorers:01_file_explorer|file explorer]]. With clicking on Objects/new/Add file in this explorer, a file dialog is opened. In this dialog  
 select "All files" as type, to show files that can be edited in the text editor(see image).  select "All files" as type, to show files that can be edited in the text editor(see image). 
-After load the ply file, it can now be loaded in RGG as an input Stream with the function ''getInputStreamFromProject("leaf.ply")'' and this stream can be used in the ''loadNodeFromStream'' function to interpret the file according to the given mime type (explained in  [[02_new_tutorials:pointclouds:01_pointcloud-io|I/O Point Cloud]]). This interpretation will then provide you the root of the created graph structure as a node. The so created node can be used like all other nodes in GroIMP, for instance in a rewriting query as shown below:+After load the ply file, it can now be loaded in RGG as an input Stream with the function ''getInputStreamFromProject("leaf.ply")'' and this stream can be used in the ''loadNodeFromStream'' function to interpret the file according to the given mime type (explained in  [[02_user_tutorials:pointclouds:01_pointcloud-io|I/O Point Cloud]]). This interpretation will then provide you the root of the created graph structure as a node. The so created node can be used like all other nodes in GroIMP, for instance in a rewriting query as shown below:
  
  
Line 52: Line 52:
 </code> </code>
  
-Even so this code moves the points to the right position, this is not enough for this tutorial. We need to move the connected meshes as well. To do so we use the structure of the imported CollectionCloud ([[02_new_tutorials:pointclouds:01_pointcloud-io#as_graph|as described here]]). Following this structure we know that each mesh is connected to three points by decomposition edges and since we already moved the points we can use there information to create a new mesh. +Even so this code moves the points to the right position, this is not enough for this tutorial. We need to move the connected meshes as well. To do so we use the structure of the imported CollectionCloud ([[02_user_tutorials:pointclouds:01_pointcloud-io#as_graph|as described here]]). Following this structure we know that each mesh is connected to three points by decomposition edges and since we already moved the points we can use there information to create a new mesh. 
 <code java> <code java>
 void redraw_Mesh()[ void redraw_Mesh()[
02_user_tutorials/pointclouds/04_using-mesh-clouds-as-organ.1765368852.txt.gz · Last modified: 2025/12/10 13:14 by gaetan