gecos-lab / PZero

GNU Affero General Public License v3.0
22 stars 2 forks source link

polygons in cross sections, map and DOMs #53

Open andrea-bistacchi opened 1 year ago

andrea-bistacchi commented 1 year ago

It would be nice to be able to show polygons in map and cross sections, and also to carry out areal interpretation on DOMs.

This can be useful:

How to triangulate polygon with holes?

gbene commented 1 year ago

Is this not already implemented? Since the switch to pyvista for 2D windows if there are polygons in the project they should be plotted without any problem.

I have tried vtkContourTriangulator and it works wonderfully.

andrea-bistacchi commented 1 year ago

We do not have class for polygons

gbene commented 1 year ago

True but aren't polygons at the end represented as triangulated surfaces (using vtkContourTriangulator)? Should we then make a class distinction between Polygons and TriSurfs?

andrea-bistacchi commented 1 year ago

We might think about this. They'll have different functions in modelling and different methods perhaps.