[MOAB-dev] How to create a polyhedron element

Vijay S. Mahadevan vijay.m at gmail.com
Mon Apr 17 08:43:25 CDT 2017


>> 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