albiremo / dualGPy

Python library to generate the dual graph of a generic mesh
MIT License
2 stars 0 forks source link

Add default constructor for circular and spherical meshes #26

Closed RiMillo closed 1 year ago

RiMillo commented 1 year ago

Add a default mesh constructor to build and mesh arcs of rings or spherical shells.

The image below shows two meshes obtained using Mesh3D(8, 20,25, 0,90, 20,90) (left) and Mesh2D(8, 20,25, 0,20) (right).

circ_mesh

The structure relies on the one of the Cartesian case.

So far, no anisotropic building has been considered

RiMillo commented 1 year ago

CAVEAT: So far, we are not able to correctly compute surfaces (resp. volumes) of these trapezoids (pyramid bases) in 2D (3D)

RiMillo commented 1 year ago

For 2D shapes, the python library shapely seems to be quite used out there. Possibly scipy.spatial hull could be of interest as well in 3D