Definition of center-points of 2D Polygons (facet)

Feel free to ask any question here
Post Reply
Michael123
Posts: 13
Joined: Wed Aug 26, 2020 1:51 pm

Definition of center-points of 2D Polygons (facet)

Post by Michael123 »

Hello,

I generated different cross-sections along a cave-system with the segmentation tool and recieved different polylines. Based on those polylines I created surfaces by using the fit--> 2D Polygon (facet) Algorithm. For each surface the software calculates a center point and shows the coordinates of that point. My question is how CC determines these center points?
At the beginning I thought this point represents the center of mass of the geometry and this seemed plausible in some cases, at least by optical evaluation. But in some cases this point did not seem to be a real center point. I attached an image with one of those bad results (center point in "red").

I hope you can help me out.
Best regards
Michael
Attachments
Crosssection_Center-Point.PNG
Crosssection_Center-Point.PNG (20.2 KiB) Viewed 1243 times
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Definition of center-points of 2D Polygons (facet)

Post by daniel »

The 'center' of a facet entity is indeed the barycenter of the input points that were used to create it. Therefore it might be different than the barycenter of the contour points (there might be more points used to create the facet).

If you want to know where the barycenter of the contour is, you can select the polyline vertices (below the contour polyline entity in the DB tree) and use the 'Edit > Batch export > Export cloud info' tool (it will create a file with some various info).
Daniel, CloudCompare admin
Post Reply