[MOAB-dev] How to create a polyhedron element

Grindeanu, Iulian R. iulian at mcs.anl.gov
Mon Apr 17 17:30:16 CDT 2017


Yes, the ExtrudePoly example shows how to create polyhedra by extrusion from polygons in a plane; there is no check on the correctness / closure of the volume enclosed by the set of faces ; it is the user's responsibility ; 

There is also a test in MBTest that checks the creation of a polyhedron


On Apr 17, 2017, at 4:43 PM, Vijay S. Mahadevan <vijay.m at gmail.com> wrote:

>>> I want to create some polyhedron elements in moab, but I can't find any
>>> example to show how to do it. Can anyone show me an example?
> 
> You can also take a look at our unit test to get some ideas.
> test/MBTest.cpp has a routine (mb_poly_test) for polyhedral element
> creation. The extrusion example I mentioned previously is
> example/ExtrudePoly.cpp.
> 
> Vijay
> 
> On Mon, Apr 17, 2017 at 8:35 AM, Vijay S. Mahadevan <vijay.m at gmail.com> wrote:
>>> I want to create some polyhedron elements in moab, but I can't find any
>>> example to show how to do it. Can anyone show me an example? Thanks very
>>> much.
>> 
>> I don't think we have an example in the repo that shows creation of
>> polyhedral elements. But this should be easy to do. There is an
>> example that extrudes a polygonal mesh (in 2-D) to get a polyhedral
>> mesh. This may or not serve your purpose. If you can specify what you
>> are looking for, we can help you write an example for it.
>> 
>> Remember that the connectivity of a polyhedron represents faces rather
>> than vertices (which is the case for regular elements like HEX or
>> TET).
>> 
>> Vijay
>> 
>>> On Sun, Apr 16, 2017 at 5:49 PM, weihuayi <weihuayi at xtu.edu.cn> wrote:
>>> Hi, There,
>>> 
>>> I want to create some polyhedron elements in moab, but I can't find any
>>> example to show how to do it. Can anyone show me an example? Thanks very
>>> much.
>>> 
>>> Best
>>> 
>>> Huayi
>>> 
>>> 
>>> 


More information about the moab-dev mailing list