U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » Anboto/Surface updated
Anboto/Surface updated [message #60466] Thu, 15 February 2024 15:52
koldo is currently offline  koldo
Messages: 3458
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
Previous Topic: Controls4U updated
Next Topic: GraphDraw/GraphCtrl
Goto Forum:
  


Current Time: Tue May 05 02:11:00 GMT+2 2026

Total time taken to generate the page: 0.00462 seconds