Home » Developing U++ » UppHub » Anboto/Surface updated
Anboto/Surface updated [message #60466] |
Thu, 15 February 2024 15:52 |
![](https://www.ultimatepp.org/forums/images/custom_avatars/648.jpg) |
koldo
Messages: 3387 Registered: August 2008
|
Senior Veteran |
|
|
New functions have been added to handle 2D and 3D flat polygons.
They can be concave and convex, with any order (clockwise, counter-clockwise).
Main functions are ContainsPoint(), Area() and Centroid().
ContainsPoly() is based on Geom/polyalg/ContainsPoly(), but extended to 3D and with improved detection of the point inside the boundary.
Demo and test are in Surface_demo_test_cl package.
In addition, Surface::AddPolygonalPanel() has been very improved to mesh concave and convex polygons, at different scales. It uses Geom/Delaunay.
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:06:20 CEST 2024
Total time taken to generate the page: 0.00413 seconds
|