[MOAB-dev] Geometric utilities
Vijay S. Mahadevan
vijay.m at gmail.com
Wed Aug 9 23:07:40 CDT 2017
Guilherme, I don't believe we have any ready code for evaluating areas
of polygons/polyhedra directly. But it should be pretty easy to write
code to tesselate the poly elements and aggregate the area/volume
through integration with quadratures. This could be expensive
depending on how many times you want to do it. However, the operation
is threadable if that is an option, and you only need to reduce the
aggregate area/volume variable.
If you follow the tessellation idea, then you can use the normals on
the face for a LinearTri element [1] to get what you want. I can't
think of anything else for now that would help get you started without
writing more code.
Vijay
[1] ftp://ftp.mcs.anl.gov/pub/fathom/moab-docs/classmoab_1_1LinearTri.html#a3eb0979a65d93d663df57f21a7be03e7
On Wed, Aug 9, 2017 at 9:52 PM, Guilherme Caminha <gpkc at outlook.com> wrote:
> Hi,
>
> I'd like to know if MOAB has support for computing general geometric
> information, such as areas and volumes of polygons and polyhedra, and
> outward face normals (in respect with a given polyhedron), for example.
>
> If not, could someone suggest me a way to compute this kind of information?
More information about the moab-dev
mailing list