Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quads_to_tris.hpp
Go to the documentation of this file.
1 // Takes a DagMC-style meshset of quads and converts it to triangles. 2 // It is assumed that quads are only in surface meshsets. Meshset 3 // membership for tris is only preserved for surfaces meshsets of their 4 // parent quads. 5 // 6  7 #include <iostream> 8 #include <cassert> 9 #include "moab/Core.hpp" 10 #include "MBTagConventions.hpp" 11 #include "moab/Range.hpp" 12  13 moab::ErrorCode make_tris_from_quad( moab::Interface* MBI, 14  moab::EntityHandle quad, /* input */ 15  moab::EntityHandle& tri0, /* output */ 16  moab::EntityHandle& tri1 /* output */ ); 17  18 moab::ErrorCode make_tris_from_quads( moab::Interface* MBI, const moab::Range& quads, moab::Range& tris ); 19  20 moab::ErrorCode quads_to_tris( moab::Interface* MBI, moab::EntityHandle input_meshset );