<div>Thanks very much, I will check it. -- Huayi </div><div><includetail><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Grindeanu, Iulian R."<iulian@mcs.anl.gov>;</div><div><b>Date: </b> Tue, Apr 18, 2017 06:30 AM</div><div><b>To: </b> "Vijay S. Mahadevan"<vijay.m@gmail.com>; <wbr></div><div><b>Cc: </b> "魏华祎"<weihuayi@xtu.edu.cn>; "MOAB Dev"<moab-dev@mcs.anl.gov>; <wbr></div><div><b>Subject: </b> Re: [MOAB-dev] How to create a polyhedron element</div></div><div> </div>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 ; <br><br>There is also a test in MBTest that checks the creation of a polyhedron<br><br><br>On Apr 17, 2017, at 4:43 PM, Vijay S. Mahadevan <vijay.m@gmail.com> wrote:<br><br>>>> I want to create some polyhedron elements in moab, but I can't find any<br>>>> example to show how to do it. Can anyone show me an example?<br>> <br>> You can also take a look at our unit test to get some ideas.<br>> test/MBTest.cpp has a routine (mb_poly_test) for polyhedral element<br>> creation. The extrusion example I mentioned previously is<br>> example/ExtrudePoly.cpp.<br>> <br>> Vijay<br>> <br>> On Mon, Apr 17, 2017 at 8:35 AM, Vijay S. Mahadevan <vijay.m@gmail.com> wrote:<br>>>> I want to create some polyhedron elements in moab, but I can't find any<br>>>> example to show how to do it. Can anyone show me an example? Thanks very<br>>>> much.<br>>> <br>>> I don't think we have an example in the repo that shows creation of<br>>> polyhedral elements. But this should be easy to do. There is an<br>>> example that extrudes a polygonal mesh (in 2-D) to get a polyhedral<br>>> mesh. This may or not serve your purpose. If you can specify what you<br>>> are looking for, we can help you write an example for it.<br>>> <br>>> Remember that the connectivity of a polyhedron represents faces rather<br>>> than vertices (which is the case for regular elements like HEX or<br>>> TET).<br>>> <br>>> Vijay<br>>> <br>>>> On Sun, Apr 16, 2017 at 5:49 PM, weihuayi <weihuayi@xtu.edu.cn> wrote:<br>>>> Hi, There,<br>>>> <br>>>> I want to create some polyhedron elements in moab, but I can't find any<br>>>> example to show how to do it. Can anyone show me an example? Thanks very<br>>>> much.<br>>>> <br>>>> Best<br>>>> <br>>>> Huayi<br>>>> <br>>>> <br>>>> </div><!--<![endif]--></includetail></div>