Create polygon with list of points

Feel free to ask any question here
Post Reply
oscariglesias
Posts: 2
Joined: Wed Jul 08, 2015 3:57 pm

Create polygon with list of points

Post by oscariglesias »

Hi,

i wish to know if there is a way to create a 2D polygon with a ordered point cloud?
I mean i would like to define a polyline with the ordered points i have in a ascii file and then create the polygon linking this points.

Thank for your attention.

Óscar Iglesias
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Create polygon with list of points

Post by daniel »

Well, if your polygon is convex, then you can simply open the (border) points as a point cloud and use 'Delaunay 2.5D' to create the polygon (mesh).
Daniel, CloudCompare admin
oscariglesias
Posts: 2
Joined: Wed Jul 08, 2015 3:57 pm

Re: Create polygon with list of points

Post by oscariglesias »

Tnx for answering daniel, but that´s the problem. The polygon i am working with it has not to be convex, so i don´t think that the triangulation is the best solution.

Anyways i am going to try it.

Thank you.

Óscar
pwhelley
Posts: 1
Joined: Tue Jun 05, 2018 2:15 pm

Re: Create polygon with list of points

Post by pwhelley »

If make a polyline in CC then open it in a GIS (QGIS for example) then convert it to a shape file (.shp) it will be flat.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Create polygon with list of points

Post by daniel »

Are you converting the polyline to a shape file in CloudCompare or in QGis? (not sure to understand).

And how do you create your polyline?

CC will export a 3D polyline as a SHP_POLYLINE_Z (i.e. 3D 'Shape' polyline) and as a SHP_POLYLINE otherwise (2D).
Daniel, CloudCompare admin
Post Reply