<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.cloudcompare.org/doc/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Foobarbecue</id>
	<title>CloudCompare wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.cloudcompare.org/doc/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Foobarbecue"/>
	<link rel="alternate" type="text/html" href="https://www.cloudcompare.org/doc/wiki/index.php/Special:Contributions/Foobarbecue"/>
	<updated>2026-04-30T00:57:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.cloudcompare.org/doc/wiki/index.php?title=Command_line_mode&amp;diff=47189</id>
		<title>Command line mode</title>
		<link rel="alternate" type="text/html" href="https://www.cloudcompare.org/doc/wiki/index.php?title=Command_line_mode&amp;diff=47189"/>
		<updated>2019-02-18T21:56:01Z</updated>

		<summary type="html">&lt;p&gt;Foobarbecue: /* Available options (version 2.10.1) */  Add PCV command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Since version 2.3, CloudCompare can be used in &amp;quot;command line&amp;quot; mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, this mode only opens a small console window, applies the requested actions, and eventually saves the result in a file in the same directory(ies) as the input file(s). Commands are applied in the order they are written (like a &#039;&#039;state machine&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
=Available options (version 2.10.1) =&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;10&amp;quot; style=&amp;quot;text-align:left; border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000&amp;quot; &lt;br /&gt;
!style=&amp;quot;border-style: solid; border-width: 1px&amp;quot; ! scope=&amp;quot;col&amp;quot; width=&amp;quot;200&amp;quot; | Command&lt;br /&gt;
!style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SILENT&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;enables silent mode (no console will appear)&#039;&#039;&lt;br /&gt;
Warning: must be first if required.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-O {filename}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;opens a file&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If the file format is ASCII, optional settings are:&lt;br /&gt;
* &amp;lt;code&amp;gt;-SKIP {number of lines to skip}&amp;lt;/code&amp;gt; If set, CC will automatically skip the specified number of lines&lt;br /&gt;
For all formats, optional settings are (version 2.5.6 and above):&lt;br /&gt;
* &amp;lt;code&amp;gt;-GLOBAL_SHIFT {AUTO} or {x y z}&amp;lt;/code&amp;gt; If set, CC will either handle big coordinates automatically (AUTO) or apply the specified Global Shift vector (x,y,z)&lt;br /&gt;
&lt;br /&gt;
Note: file type is automatically guessed from its extension.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-OCTREE_NORMALS {radius}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Computes the [[Normals%5CCompute | normals]] for all loaded clouds with the specified radius.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* for now the local model is &#039;Height Function&#039; and no default orientation is specified&lt;br /&gt;
* if you have files containing structured clouds (e.g. PTX, FARO, DP, etc.), it may be more efficient to use the &#039;COMPUTE_NORMALS&#039; option (see below)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-COMPUTE_NORMALS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;forces CC to compute normals at loading time (which is generally more robust) when importing files containing structured clouds (i.e. PTX, FARO and DP file for now). Normals are not computed by default.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: must be placed before the &#039;-O&#039; option.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CLEAR_NORMALS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Removes all normals from the loaded entities.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-ORIENT_NORMS_MST {number of neighbors}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Normals%5COrient_Normals_With_Minimum_Spanning_Tree | (Re)orient the normals]] of the loaded clouds with a Minimum Spanning Tree.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: Clouds without normals are simply ignored.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-MERGE_CLOUDS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;merges all loaded/generated clouds as one unique cloud.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: result is automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-MERGE_MESHES&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;merges all loaded/generated meshes as one unique mesh.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: result is automatically saved by default (see the AUTO_SAVE command to change this). This option is available since version 2.9.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SS {algorithm} {parameter}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies a [[Edit%5CSubsample | subsampling]] {algorithm} on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
{algorithm} can be RANDOM, SPATIAL or OCTREE. Expected parameter is:&lt;br /&gt;
* RANDOM: number of randomly selected points&lt;br /&gt;
* SPATIAL: minimum distance between two points&lt;br /&gt;
* OCTREE: subdivision level (between 1 and 10 in the standard version)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
* input clouds are now replaced by their subsampled version (since version 2.6.1)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-EXTRACT_CC {octree level} {minimum number of points per component}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;extracts the [[Label_Connected_Components | connected components]] from the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
{octree level} should be between 1 and 21.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* extracted components are automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
* input clouds are replaced by the extracted components&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SAMPLE_MESH {method} {parameter}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Mesh%5CSample_points | samples points]] on the loaded mesh(es).&#039;&#039;&lt;br /&gt;
For each mesh, a cloud will be generated (and will be added to the current loaded cloud set - i.e. further processing can be applied to this cloud).&lt;br /&gt;
&lt;br /&gt;
{method} can be POINTS or DENSITY. Expected parameter is:&lt;br /&gt;
* POINTS: the corresponding number of points&lt;br /&gt;
* DENSITY: the corresponding surface density&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* this cloud can be used as input for cloud-to-cloud or cloud-to-mesh distances computation for instance.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-EXTRACT_VERTICES&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Extract the vertices of all loaded meshes as standalone point clouds. Note that this option is not yet activated! (sorry about that)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* the source mesh is discarded&lt;br /&gt;
* since version 2.10 only&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-C2C_DIST&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes [[Cloud-to-Cloud_Distance | cloud-to-cloud distances]] on the two first loaded/generated clouds (1st = compared / 2nd = reference).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* &amp;lt;code&amp;gt;-SPLIT_XYZ&amp;lt;/code&amp;gt; If set, 3 additional scalar fields will be generated (displacement along the 3 dimensions)&lt;br /&gt;
* &amp;lt;code&amp;gt;-MAX_DIST {value}&amp;lt;/code&amp;gt; to set a max distance above which CC won&#039;t have to search for a nearest neighbor (faster)&lt;br /&gt;
* &amp;lt;code&amp;gt;-OCTREE_LEVEL {value}&amp;lt;/code&amp;gt; to manually set the octree subdivision level at which the computation will be performed&lt;br /&gt;
* &amp;lt;code&amp;gt;-MODEL {local_model_type} {neighborhood_type} {neighborhood_size}&amp;lt;/code&amp;gt; to specify a local model:&lt;br /&gt;
** {local_model_type} = LS / TRI / HF&lt;br /&gt;
** {neighborhood_type} = KNN / SPHERE&lt;br /&gt;
** {neighborhood_size} = neighbor count (if KNN) or sphere radius (if SPHERE)&lt;br /&gt;
* &amp;lt;code&amp;gt;-MAX_TCOUNT {thread count}&amp;lt;/code&amp;gt; to set the maximum number of threads to use&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* see below for more details&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-C2M_DIST&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes [[Cloud-to-Mesh_Distance | Cloud-to-Mesh distances]] between the first loaded/generated cloud (compared) and the first loaded mesh (reference).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* &amp;lt;code&amp;gt;-FLIP_NORMS&amp;lt;/code&amp;gt; to consider that normal vectors point inside the matter and not outside&lt;br /&gt;
* &amp;lt;code&amp;gt;-MAX_DIST {value}&amp;lt;/code&amp;gt; to set a max distance above which CC won&#039;t have to search for a nearest neighbor (faster)&lt;br /&gt;
* &amp;lt;code&amp;gt;-OCTREE_LEVEL {value}&amp;lt;/code&amp;gt; to manually set the octree subdivision level at which the computation will be performed&lt;br /&gt;
* &amp;lt;code&amp;gt;-MAX_TCOUNT {thread count}&amp;lt;/code&amp;gt; to set the maximum number of threads to use&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* see below for more details&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-RASTERIZE -GRID_STEP {value}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Rasterize | Rasterizes]] the loaded clouds by projecting them inside a regular grid.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* &amp;lt;code&amp;gt;-VERT_DIR {0/1/2}&amp;lt;/code&amp;gt; to specify the projection dimension (0=X / 1=Y / 2=Z) - default is 2 (Z)&lt;br /&gt;
* &amp;lt;code&amp;gt;-PROJ {MIN/AVG/MAX}&amp;lt;/code&amp;gt; to specify how the altitude of each cell is computed (minimum, average or maximum altitude of the projected points). Default is AVG (average)&lt;br /&gt;
* &amp;lt;code&amp;gt;-SF_PROJ {MIN/AVG/MAX}&amp;lt;/code&amp;gt; to specify how the SF value(s) of each cell are computed (minimum, average or maximum altitude of the projected points SF value(s)). Default is AVG (average)&lt;br /&gt;
* &amp;lt;code&amp;gt;-EMPTY_FILL {MIN_H/MAX_H/CUSTOM_H/INTERP}&amp;lt;/code&amp;gt; to specify how empty cells should be filled (MIN_H = min height / MAX_H = max height / CUSTOM_H = custom value - see CUSTOM_HEIGHT option below / INTERP = interpolate). Default behavior is &#039;leave cells empty&#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;-CUSTOM_HEIGHT {value}&amp;lt;/code&amp;gt; to define the custom height filling value (if the &#039;CUSTOM_H&#039; strategy is used (see above)&lt;br /&gt;
* &amp;lt;code&amp;gt;-OUTPUT_CLOUD&amp;lt;/code&amp;gt; to output the result as a cloud (this is the default option if no other output format is defined)&lt;br /&gt;
* &amp;lt;code&amp;gt;-OUTPUT_MESH&amp;lt;/code&amp;gt; to output the result as a mesh&lt;br /&gt;
* &amp;lt;code&amp;gt;-OUTPUT_RASTER_Z&amp;lt;/code&amp;gt; to output the result as a geotiff raster (altitudes + all SFs by default, no RGB)&lt;br /&gt;
* &amp;lt;code&amp;gt;-OUTPUT_RASTER_RGB&amp;lt;/code&amp;gt; to output the result as a geotiff raster (RGB)&lt;br /&gt;
Notes:&lt;br /&gt;
* if OUTPUT_CLOUD or OUTPUT_MESH is selected, the resulting entity will replace the original cloud in memory&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-VOLUME -GRID_STEP {grid step}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[2.5D_Volume | 2.5D estimation of the volume]] between two point clouds (the first is the ceiling, the second is the ground by default).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This tool outputs two files:&lt;br /&gt;
* the volume calculation report (named VolumeCalculationReport.txt and saved next to the first file)&lt;br /&gt;
* the 2.5D grid points with the &#039;height difference&#039; as a scalar field and also as RGB colors (colors are generated with the default color scale of CC). The file is saved next to the previous one, and it has the same base name as the first file with &#039;_HEIGHT_DIFFERENCE&#039; appended at the end.&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* &amp;lt;code&amp;gt;-VERT_DIR {0/1/2}&amp;lt;/code&amp;gt; to specify the projection dimension (0=X / 1=Y / 2=Z) - default is 2 (Z)&lt;br /&gt;
* &amp;lt;code&amp;gt;-CONST_HEIGHT {value}&amp;lt;/code&amp;gt; to use a constant height instead of the second cloud&lt;br /&gt;
* &amp;lt;code&amp;gt;-GROUND_IS_FIRST&amp;lt;/code&amp;gt; to invert the clouds order&lt;br /&gt;
* &amp;lt;code&amp;gt;-OUTPUT_MESH&amp;lt;/code&amp;gt; to output a mesh instead of a cloud&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* see below for more details&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-STAT_TEST {distrib} {distrib parameters} {p-value} {neighbors count}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies a [[Local_Statistical_Test | local statistical test]] based on the active scalar field all the of loaded/generated clouds.&#039;&#039;&lt;br /&gt;
{distrib} can be GAUSS or WEIBULL. Expected distribution parameters are:&lt;br /&gt;
* GAUSS: the mean value and sigma&lt;br /&gt;
* WEIBULL: a, b and the shift value&lt;br /&gt;
&lt;br /&gt;
Note: result is automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-COORD_TO_SF {dimension: X, Y or Z}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Scalar_fields%5CExport_coordinate(s)_to_SF(s) | exports the specified coordinate]] (dimension) to a scalar field.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: creates a new scalar field (or overwrite any existing one with the same name) and sets it active.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-FILTER_SF {minVal} {maxVal}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Scalar_fields%5CFilter_by_Value | filters]] all the loaded/generated clouds based on their active scalar field values.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A new cloud is created each time with only the points falling in the [minVal maxVal] interval.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
* input clouds are now replaced by their filteterd version (since version 2.6.1)&lt;br /&gt;
&lt;br /&gt;
You can use special words in place of numbers that CC will replace by the actual SF values:&lt;br /&gt;
* &#039;MIN&#039; = min value&lt;br /&gt;
* &#039;DISP_MIN&#039; = min displayed value&lt;br /&gt;
* &#039;SAT_MIN&#039; = min saturation value&lt;br /&gt;
* &#039;MAX&#039; = max value&lt;br /&gt;
* &#039;DISP_MAX&#039; = max displayed value&lt;br /&gt;
* &#039;SAT_MAX&#039; = max saturation value&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-DENSITY {sphere radius}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes the [[Density | density]] (inside a sphere around each point) on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional setting:&lt;br /&gt;
* -TYPE {density_type}: to specify the type of density to compute. {density_type} can be KNN (nearest neighbors count), SURFACE (surface density) or VOLUME (volume density).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* a new scalar field is created on each cloud&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-APPROX_DENSITY&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes [[Density | approximate density]] on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional setting:&lt;br /&gt;
* -TYPE {density_type}: to specify the type of density to compute. {density_type} can be KNN (nearest neighbors count), SURFACE (surface density) or VOLUME (volume density).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* a new scalar field is created on each cloud.&lt;br /&gt;
* result is automatically saved.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-ROUGH {kernel size}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes the [[Roughness | roughness]] with a given kernel size on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* a new scalar field is created on each cloud&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CURV {type} {kernel size}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes [[Curvature | local curvature]] with a given kernel size on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
{type} can be MEAN, GAUSS or NORMAL_CHANGE (this last option stands for &#039;Normal change rate&#039; and is only available in version 2.10 or later).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* a new scalar field is created on each cloud&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SF_GRAD {euclidian}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes the [[Scalar_fields%5CGradient | gradient]] of the active scalar field (or the first one if none is active) on the currently opened/generated cloud(s).&#039;&#039;&lt;br /&gt;
The {euclidian} option specifies whether the scalar field is &#039;euclidian&#039; (TRUE) - typically like a distance field - or not (FALSE).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* a new scalar field is created on each cloud&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-BEST_FIT_PLANE&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;computes the [[Fit_Plane | best fitting plane]] on all loaded clouds.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -MAKE_HORIZ: will actually transform the loaded cloud(s) so as to make them &#039;horizontal&#039;&lt;br /&gt;
* -KEEP_LOADED: to keep the resulting plane(s) in memory as mesh(es)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* resulting planes are automatically saved&lt;br /&gt;
* if MAKE_HORIZ is defined, result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-APPLY_TRANS {filename}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies a 4x4 transformation matrix on the loaded entities (clouds or meshes). The matrix is read from a simple text file with the matrix rows on each line (4 values per lines, 4 lines).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* each entity will be replaced in memory by its transformed version&lt;br /&gt;
* resulting entities are automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-MATCH_CENTERS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;makes all the (bounding-box) centers of the loaded entities match. All the entities will move relatively to the first one (clouds are always considered first if clouds and meshes are loaded).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: result is automatically saved by default (see the AUTO_SAVE command to change this).&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-DELAUNAY&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Mesh%5CDelaunay_2.5D_(XY_plane) | Triangulates]] the loaded clouds with 2.5D Delaunay triangulation. The triangulation is done in the (XY) plane by default.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -AA: to triangulate the points in the (XY) plane (default behavior).&lt;br /&gt;
* -BEST_FIT: to [[Mesh%5CDelaunay_2.5D_(best_fit_plane) | triangulate the points in their best fit plane]]&lt;br /&gt;
* -MAX_EDGE_LENGTH {length}: to remove the triangles with edges longer than a given threshold&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* the resulting &#039;mesh&#039; entity is automatically saved (see the AUTO_SAVE command to change this).&lt;br /&gt;
* the clouds are automatically removed (from the &#039;loaded clouds&#039; set).&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-ICP&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[ICP | Iterative Closest Point]] registration procedure.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -REFERENCE_IS_FIRST: by default the ICP registration process will take the first loaded entity as &#039;data&#039; and the second as &#039;model&#039; (clouds are always considered first). If you use this option their respective role will be inverted.&lt;br /&gt;
* -MIN_ERROR_DIFF: to specify the min. error difference between two steps (default = 1e-6)&lt;br /&gt;
* -ITER: to specify the number of iterations (in which case the &#039;MIN_ERROR_DIFF&#039; option will be ignored)&lt;br /&gt;
* -OVERLAP: to specify the percentage of (final) overlap (integer number between 10 and 100 - default = 100)&lt;br /&gt;
* -ADJUST_SCALE: to enable the ICP registration with adaptive scale&lt;br /&gt;
* -RANDOM_SAMPLING_LIMIT: to specify the number of points randomly sampled at each iteration (default = 20 000)&lt;br /&gt;
* -FARTHEST_REMOVAL: to enable the &#039;&#039;research&#039;&#039; option that ignores points with the highest distances at each iteration&lt;br /&gt;
* -DATA_SF_AS_WEIGHTS + {SF index}: to use a given scalar field as weights on the &#039;data&#039; entity (index starts from 0 - the &#039;LAST&#039; keyword can be used)&lt;br /&gt;
* -MODEL_SF_AS_WEIGHTS + {SF index}: to use a given scalar field as weights on the &#039;model&#039; entity (index starts from 0 - the &#039;LAST&#039; keyword can be used)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* the &#039;data&#039; entity in its final position is automatically saved (see the AUTO_SAVE command to change this).&lt;br /&gt;
* the corresponding transformation matrix is automatically saved in a separate text file (always).&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CROP {Xmin:Ymin:Zmin:Xmax:Ymax:Zmax}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Crop | Crops]] all loaded clouds inside or outside a given box.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -OUTSIDE: if defined only the points falling outside the input box will be kept (instead of inside by default).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* each cloud will be replaced in memory by its cropped version&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CROP2D {ortho_dim} {n:number of vertices} X1 Y1 X2 Y2 ... Xn Yn&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Crops all loaded clouds inside or outisde a given 2D polyline. Cropping is done in a plane defined by its orthogonal dimension: X, Y or Z (i.e. coordinates along this dimension will be ignored).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -OUTSIDE: if defined only the points falling outside the input polyline will be kept (instead of inside by default).&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
* each cloud will be replaced in memory by its cropped version&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CROSS_SECTION {XML parameters file}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;[[Cross_Section | Extracts one or multiple sections]] from the clouds or meshes.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Either the loaded clouds and/or meshes (see the -O option) can be used otherwise CC can load one or several files from a specified folder (use the &#039;FilePath&#039; key).&lt;br /&gt;
&lt;br /&gt;
See [http://www.cloudcompare.org/doc/cross_section_params.xml] for an example of XML parameter file.&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* output sections for meshes are &#039;clean&#039; (i.e. triangles on the cutting borders are re-meshed)&lt;br /&gt;
* output sections are automatically saved in sub-folders (they are not kept in memory)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SOR {number of neighbors} {sigma multiplier}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies the [[SOR_filter | SOR (Statistical Outlier Removal) filter]] on the loaded cloud(s).&#039;&#039;&lt;br /&gt;
For each cloud, a new one will be generated (and will replace the origin cloud).&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SF_ARITHMETIC {SF index} {operation}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies [[Scalar_fields%5CArithmetic | operations]] on a given scalar field of the loaded cloud/mesh.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SF2 = operation(SF)&lt;br /&gt;
&lt;br /&gt;
The scalar-field index starts from 0. The user can use the keyword &#039;LAST&#039; to designate the last scalar field.&lt;br /&gt;
&lt;br /&gt;
Supported operations are:&lt;br /&gt;
* sqrt (square root)&lt;br /&gt;
* pow2&lt;br /&gt;
* pow3&lt;br /&gt;
* exp&lt;br /&gt;
* log&lt;br /&gt;
* log10&lt;br /&gt;
* cos&lt;br /&gt;
* sin&lt;br /&gt;
* tan&lt;br /&gt;
* acos&lt;br /&gt;
* asin&lt;br /&gt;
* atan&lt;br /&gt;
* int (integer part)&lt;br /&gt;
* inverse&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* the updated cloud/mesh is automatically saved (see the AUTO_SAVE command to change this)&lt;br /&gt;
* a new scalar field is created&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SF_OP {SF index} {operation} {value} &amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;applies an [[Scalar_fields%5CArithmetic | arithmetic operation]] on a given scalar field of the loaded cloud/mesh and with a given scalar value.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
SF = SF (+,-,*,/) VALUE&lt;br /&gt;
&lt;br /&gt;
The scalar-field index starts from 0. The user can use the keyword &#039;LAST&#039; to designate the last scalar field.&lt;br /&gt;
&lt;br /&gt;
Supported operations are:&lt;br /&gt;
* add&lt;br /&gt;
* sub&lt;br /&gt;
* mult&lt;br /&gt;
* div&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* the updated cloud/mesh is automatically saved (see the AUTO_SAVE command to change this)&lt;br /&gt;
* the modification is done in place (i.e. the scalar field is directly modified)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CBANDING {dim} {freq}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Applies [[Colors%5CHeight_Ramp | color banding]] to all loaded entities (clouds and meshes). The user must specify the dimension (dim = X, Y or Z) and the frequency (in Hz, as an integer).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* result is automatically saved by default (see the AUTO_SAVE command to change this)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SF_COLOR_SCALE {filename}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Loads a color scale from a XML file (generated with the [[Scalar_fields%5CColor_Scales_Manager | Color Scales Manager]]). The loaded color scale is then applied to the active scalar field.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* it may be necessary to explicitly set the active scalar field with the SET_ACTIVE_SF command&lt;br /&gt;
* since version 2.10 only&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SF_CONVERT_TO_RGB {TRUE/FALSE}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Converts the active scalar field to RGB colors. The user must explicitly specify whether the previously existing colors (if any) should be mixed with the new ones (TRUE) or overwritten (FALSE).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* it may be necessary to explicitly set the active scalar field with the SET_ACTIVE_SF command&lt;br /&gt;
* since version 2.10 only&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-C_EXPORT_FMT {format}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Specifies the default output format for clouds. Format can be one of the following: ASC, BIN, PLY, LAS, E57, VTK, PCD, SOI, PN, PV.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -PREC [precision]: to specify the numerical output precision (for ASCII files only). &#039;&#039;precision&#039;&#039; is a positive integer (default = 12).&lt;br /&gt;
* -SEP [separator]: to specify the separator character (for ASCII files only). &#039;&#039;separator&#039;&#039; can be one of the following string: SPACE, SEMICOLON, COMMA or TAB (default = SPACE).&lt;br /&gt;
* -ADD_HEADER: to add a header with each column&#039;s name to the saved file (for ASCII files only).&lt;br /&gt;
* -ADD_PTS_COUNT: to add the number of points at the beginning of the saved file (for ASCII files only).&lt;br /&gt;
* -EXT [extension]: to specify the file extension (typically different from the default one for the chosen format)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING: the ADD_HEADER and ADD_PTS_COUNT options are broken in the 2.6.2 version. Use the latest [http://www.cloudcompare.org/release/CloudCompare_v2.6.3.beta_bin_x64.zip 2.6.3 beta version] instead.&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-M_EXPORT_FMT {format}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Specifies the default output format for meshes. Format can be one of the following: BIN, OBJ, PLY, STL, VTK, MA, FBX.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -EXT [extension]: to specify the file extension (typically different from the default one for the chosen format)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-FBX_EXPORT_FMT {format}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Specifies the default output format for FBX meshes. Must be specified in addition to M_EXPORT_FMT if FBX format is chosen. Format can be one of the following: FBX_binary, FBX_ascii, FBX_encrypted, FBX_6.0_binary, FBX_6.0_ascii, FBX_6.0_encrypted.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: if the input format is not supported by the current implementation, a list of available formats will be output in the console.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-PLY_EXPORT_FMT {format}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Specifies the default output format for PLY files. Format can be one of the following: ASCII, BINARY_BE (big endian) or BINARY_LE (little endian).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: default output format is binary (LE/BE depending on the current OS)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-NO_TIMESTAMP&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;to prevent CC from generating an automatic suffix (timestamp) for output file name (warning: this make the name of an output file predictable but if the file already exists it will be overwritten).&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-BUNDLER_IMPORT {filename}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;imports a Snavely&#039;s Bundler file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Bundler import through the command line is mainly meant to generate ortho-rectified versions of input images directly on disk.&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -ALT_KEYPOINTS [filename]: load alternative keypoints from file &#039;&#039;filename&#039;&#039;&lt;br /&gt;
* -SCALE_FACTOR [value]: sets image scale factor that has been used during keypoints generation&lt;br /&gt;
* -COLOR_DTM [vertices count]: generates colored vertices of a pseudo-DTM with approximately &#039;vertices count&#039; elements (in command line mode, vertices are automatically saved to &#039;colored_dtm_vertices.bin&#039; next to ortho-rectified images)&lt;br /&gt;
* -UNDISTORT: enables images undistortion&lt;br /&gt;
&lt;br /&gt;
Note: see below for more details.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-DROP_GLOBAL_SHIFT&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Removes the Global Shift information from all loaded entities.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SET_ACTIVE_SF {index}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Sets the active scalar field index (for all loaded clouds).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* scalar field indexes start at 0 (&#039;-1&#039; means &#039;no SF enabled&#039;)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-REMOVE_ALL_SFS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Removes all scalar fields (from all loaded clouds or meshes).&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* entities are not automatically saved after this command (you can use -SAVE_CLOUDS or -SAVE_MESHES explicitly)&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-REMOVE_SCAN_GRIDS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Removes all scan grids (from all loaded clouds or meshes).&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
* entities are not automatically saved after this command (you can use -SAVE_CLOUDS or -SAVE_MESHES explicitly)&lt;br /&gt;
* available since version 2.10 only&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-AUTO_SAVE {&#039;&#039;ON/OFF&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Enables (&#039;&#039;ON&#039;&#039;) or disables (&#039;&#039;OFF&#039;&#039;) automatic backup of clouds and meshes at each step (you&#039;ll have to manually call &#039;&#039;-SAVE_CLOUDS&#039;&#039; or &#039;&#039;-SAVE_MESHES&#039;&#039; at the right time/position in your command).&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SAVE_CLOUDS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Saves all currently loaded clouds (note that this is not necessary by default as all modified or newly generated cloud are automatically saved).&#039;&#039;&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* ALL_AT_ONCE: saves all clouds in a single file (the current output format must support it!)&lt;br /&gt;
* FILE &amp;quot;file1.xxx file2.yyy ...&amp;quot; : to specify the output filename(s) of the clouds (use quotes if multiple names or names with space characters) [since version 2.10]&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-SAVE_MESHES&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Saves all currently loaded meshes (note that this is not necessary by default as all modified or newly generated meshes are automatically saved).&#039;&#039;&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* ALL_AT_ONCE: saves all meshes in a single file (the current output format must support it!)&lt;br /&gt;
* FILE &amp;quot;file1.xxx file2.yyy ...&amp;quot; : to specify the output filename(s) of the clouds (use quotes if multiple names or names with space characters) [since version 2.10]&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CLEAR&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;closes all currently loaded entities.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CLEAR_CLOUDS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;closes all currently loaded clouds.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-CLEAR_MESHES&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;closes all currently loaded meshes.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-POP_CLOUDS&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;removes the last loaded cloud.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-POP_MESHES&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;removes the last loaded mesh.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-LOG_FILE {filename}&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;logs all command output messages in a given file.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &amp;lt;code&amp;gt;-PCV&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;border-style: solid; border-width: 1px&amp;quot;| &#039;&#039;Runs the [[ ShadeVis (plugin) | PCV plugin]] (also known as ambient occlusion or ShadeVis)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Optional settings are:&lt;br /&gt;
* -N_RAYS [value]: number of rays&lt;br /&gt;
* -IS_CLOSED: Tells PCV that the mesh is watertight. This accelerates processing.&lt;br /&gt;
* -180: Rays only come from the &amp;quot;northern hemisphere&amp;quot; (northern means +Z)&lt;br /&gt;
* -RESOLUTION: OpenGL context resolution&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Example 1=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -O &#039;&#039;myhugecloud.bin&#039;&#039; -SS SPATIAL 0.1&amp;lt;/code&amp;gt;&lt;br /&gt;
This will open file &#039;&#039;myhugecloud.bin&#039;&#039; then apply spatial subsampling with a 0.1 step (e.g. in meters). The output file will be &#039;&#039;myhugecloud_SPATIAL_SUBSAMPLED_YYYY-MM-DD_HHhMM.bin&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=Example 2=&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -O &#039;&#039;myhugecloud1.bin&#039;&#039; -SS SPATIAL 0.1 -O &#039;myhugecloud2.bin&#039; -SS RANDOM 1000000 -CLEAR_ALL -O &#039;myhugecloud3.bin&#039; -SS OCTREE 9&amp;lt;/code&amp;gt;&lt;br /&gt;
This will open file &#039;&#039;myhugecloud1.bin&#039;&#039; then apply spatial subsampling with a 0.1 step (e.g. in meters).&amp;lt;br&amp;gt;&lt;br /&gt;
Then it will open file &#039;&#039;myhugecloud2.bin&#039;&#039; and apply to &#039;&#039;&#039;both files&#039;&#039;&#039; random subsampling (1 000 000 points each).&amp;lt;br&amp;gt;&lt;br /&gt;
Then it will close the two first files.&amp;lt;br&amp;gt;&lt;br /&gt;
Eventually it will open file &#039;&#039;myhugecloud3.bin&#039;&#039; and apply octree based subsampling (level 9).&lt;br /&gt;
&lt;br /&gt;
The output files will be: &#039;&#039;myhugecloud1_SPATIAL_SUBSAMPLED_YYYY-MM-DD_HHhMM.bin&#039;&#039;, &#039;&#039;myhugecloud1_RANDOM_SUBSAMPLED_YYYY-MM-DD_HHhMM.bin&#039;&#039;, &#039;&#039;myhugecloud2_RANDOM_SUBSAMPLED_YYYY-MM-DD_HHhMM.bin&#039;&#039; and &#039;&#039;myhugecloud3_OCTREE_level_9_SUBSAMPLED_YYYY-MM-DD_HHhMM.bin&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Cloud-to-cloud distance=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -o cloud1.bin -o cloud2.asc -c2c_dist -split_xyz -model HF SPHERE 50.0&amp;lt;/code&amp;gt;&lt;br /&gt;
CC will load &#039;&#039;cloud1.bin&#039;&#039; and &#039;&#039;cloud2.asc&#039;&#039;, then compute the distance from cloud1 (&#039;&#039;compared&#039;&#039;) relatively to cloud2 (&#039;&#039;reference&#039;&#039;) with a height function (&#039;&#039;quadric&#039;&#039;) computed on all the neighbors falling in a sphere of radius 50.0 around each point of &#039;&#039;cloud1&#039;&#039;. On output a file &#039;&#039;cloud1_C2C_DIST_YYYY-MM-DD_HHhMM.bin&#039;&#039; will be generated (with the resulting distances as first scalar field and the 3 components of the corresponding displacement vector along X, Y and Z as additional scalar fields).&lt;br /&gt;
&lt;br /&gt;
Note: this cloud stays in memory and can be processed further (with -FILTER_SF for instance).&lt;br /&gt;
&lt;br /&gt;
=Cloud-to-mesh distance=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -o cloud1.bin -o mesh.obj -c2m_dist&amp;lt;/code&amp;gt;&lt;br /&gt;
CC will load &#039;&#039;cloud1.bin&#039;&#039; and &#039;&#039;mesh.obj&#039;&#039;, then compute the distance from cloud1 (&#039;&#039;compared&#039;&#039;) relatively to mesh (&#039;&#039;reference&#039;&#039;). On output a file &#039;&#039;cloud1_C2M_DIST_YYYY-MM-DD_HHhMM.bin&#039;&#039; will be generated (with the resulting distances as scalar field).&lt;br /&gt;
&lt;br /&gt;
Note: this cloud stays in memory and can be processed further (with -FILTER_SF for instance).&lt;br /&gt;
&lt;br /&gt;
=Bundler import=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -BUNDLER_IMPORT bundle.out -COLOR_DTM 1000000&amp;lt;/code&amp;gt;&lt;br /&gt;
This will generate all ortho-rectified versions of the images declared in &#039;bundle.out&#039;, as well as the colored vertices of a pseudo-DTM constructed from the keypoints.&lt;br /&gt;
&lt;br /&gt;
=(Mesh) format conversion=&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;CloudCompare -M_EXPORT_FMT FBX -FBX_EXPORT_FMT FBX_Binary -O Foot.ply -NO_TIMESTAMP -SAVE_MESHES&amp;lt;/code&amp;gt;&lt;br /&gt;
This will open the file named &#039;Foot.ply&#039; then save it in FBX binary format (same base filename, without any decoration: i.e. &#039;&#039;Foot.fbx&#039;&#039;)&lt;/div&gt;</summary>
		<author><name>Foobarbecue</name></author>
	</entry>
</feed>