Salome HOME
Merge branch 'BR_H2018_3' into BR_2018_V8_5
[modules/hydro.git] / doc / salome / tutorial / introCloudCompare.rst
1 ..
2    Copyright (C) 2015-2016 EDF
3
4    This file is part of SALOME HYDRO module.
5
6    SALOME HYDRO module is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    SALOME HYDRO module is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
18
19 #########################################
20 Aide sommaire CloudCompare
21 #########################################
22
23 .. |CloudCompare_01| image:: /_static/CloudCompare_01.png
24    :align: middle
25
26 .. |CloudCompare_02| image:: /_static/CloudCompare_02.png
27    :align: middle
28
29 .. |CloudCompare_03| image:: /_static/CloudCompare_03.png
30    :align: middle
31
32 .. |CloudCompare_04| image:: /_static/CloudCompare_04.png
33    :align: middle
34  
35 .. |CloudCompare_05| image:: /_static/CloudCompare_05.png
36    :align: middle
37   
38 Chargement et visualisation d'un nuage de point
39 ===============================================
40
41 A partir du menu *File / open* de CloudCompare, on peut charger des nuages de points à différents formats dont le format xyz
42 (option *ASCII cloud*, fichier texte ASCII, 3 coordonnées x y z par ligne)
43 et le format asc (option *RASTER grid*, ASCII grille régulière, fournie par l'IGN notamment).
44 Deux exemples sont disponibles dans l'installation de SALOME_HYDRO ::
45
46   <appli_xxx>/bin/salome/test/HYDRO/garonne_point_L93.xyz 
47   
48   <appli_xxx>/bin/salome/test/HYDRO/BDALTIr_2-0_MNT_EXT_0450_6375_LAMB93_IGN69_20110929.asc
49
50 On prend le fichier *garonne_point_L93.xyz*. A l'ouverture du fichier, on peut valider le premier dialogue sans modification (*Apply*) :
51
52   |CloudCompare_01|
53   
54 Le deuxième dialogue propose un changement de repère pour améliorer la précision, que l'on peut accepter tel que (*Yes*) :
55
56   |CloudCompare_02|
57
58 Le nuage de point s'affiche, mais sans coloration selon la cote Z. On sélectionne la ligne *garone_point_L93 - Cloud* :
59
60   |CloudCompare_03|
61
62 Dans le menu *Edit / Scalar fields / Export Coordinate(s) to SF(s)*, on sélectionne la coordonnée Z comme nouveau champ scalaire.
63
64   |CloudCompare_04|
65
66 Le nuage de point devient coloré. On peut mettre une légende en cochant l'option *visible* de la rubrique *Color Scale*.
67
68   |CloudCompare_05|
69
70 .. only:: html
71
72    :ref:`ref_outilsComplementaires`
73