<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.cloudcompare.org/doc/wiki/index.php?action=history&amp;feed=atom&amp;title=Fit_2D_Polygon</id>
	<title>Fit 2D Polygon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.cloudcompare.org/doc/wiki/index.php?action=history&amp;feed=atom&amp;title=Fit_2D_Polygon"/>
	<link rel="alternate" type="text/html" href="https://www.cloudcompare.org/doc/wiki/index.php?title=Fit_2D_Polygon&amp;action=history"/>
	<updated>2026-04-29T19:13:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.cloudcompare.org/doc/wiki/index.php?title=Fit_2D_Polygon&amp;diff=46708&amp;oldid=prev</id>
		<title>Daniel: /* Procedure */</title>
		<link rel="alternate" type="text/html" href="https://www.cloudcompare.org/doc/wiki/index.php?title=Fit_2D_Polygon&amp;diff=46708&amp;oldid=prev"/>
		<updated>2015-02-20T13:19:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Procedure&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Menu =&lt;br /&gt;
&lt;br /&gt;
This tool is accessible via the &amp;#039;Tools &amp;gt; Fit &amp;gt; 2D Polygon (facet)&amp;#039; menu.&lt;br /&gt;
&lt;br /&gt;
= Description =&lt;br /&gt;
&lt;br /&gt;
This tool fits a 2D polygon on a point cloud. It&amp;#039;s very similar to the &amp;#039;Tools &amp;gt; Fit &amp;gt; [[Fit Plane | Plane]]&amp;#039; method but the extents of the fitted plane follows the cloud contour (in 2D).&lt;br /&gt;
&lt;br /&gt;
= Procedure =&lt;br /&gt;
&lt;br /&gt;
Select one or several point clouds then launch this tool.&lt;br /&gt;
&lt;br /&gt;
For each cloud CloudCompare will first fit a plane and then extract the contour (in 2D).&lt;br /&gt;
&lt;br /&gt;
CloudCompare will therefore ask for the &amp;#039;max edge length&amp;#039; of the contour:&lt;br /&gt;
[[Image:Cc_fit_facet_dialog.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is the same parameter used for contour extraction in the [[Cross Section]] tool. If zero, the extracted contour will be the cloud convex hull. Otherwise, the smaller the max edge length is, the tighter the contour will be.&lt;br /&gt;
&lt;br /&gt;
[[Image:Cc_fit_facet_example.jpg|frame|center|Fitted &amp;#039;facet&amp;#039; (2D polygon)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the console the following pieces of information will be output:&lt;br /&gt;
* plane fitting [http://en.wikipedia.org/wiki/Root_mean_square RMS]&lt;br /&gt;
* plane normal vector (with a positive Z coordinate by default)&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Strike_and_dip dip and dip direction]&lt;br /&gt;
* a 4x4x transformation matrix that would make this plane horizontal (see the &amp;#039;Edit &amp;gt; [[Apply Transformation]]&amp;#039; method to use it for instance)&lt;br /&gt;
&lt;br /&gt;
Note: the fitted facet is added to the DB tree as a child of the cloud&lt;br /&gt;
&lt;br /&gt;
= About facets =&lt;br /&gt;
&lt;br /&gt;
[[Image:Cc_facet_db.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
The facet entity is a composite entity:&lt;br /&gt;
* the base &amp;#039;Facet&amp;#039; entity holds some meta-data (the polygon surface, center and normal as well as the fitting RMS)&lt;br /&gt;
* it has a point cloud as child (the contour points)&lt;br /&gt;
* this contour point cloud has itself two children:&lt;br /&gt;
** the contour (as a polyline)&lt;br /&gt;
** the polygon (as a mesh)&lt;/div&gt;</summary>
		<author><name>Daniel</name></author>
	</entry>
</feed>