Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
quads_to_tris.hpp
Go to the documentation of this file.
00001 // Takes a DagMC-style meshset of quads and converts it to triangles.
00002 // It is assumed that quads are only in surface meshsets. Meshset
00003 // membership for tris is only preserved for surfaces meshsets of their
00004 // parent quads.
00005 //
00006 
00007 #include <iostream>
00008 #include <cassert>
00009 #include "moab/Core.hpp"
00010 #include "MBTagConventions.hpp"
00011 #include "moab/Range.hpp"
00012 
00013 moab::ErrorCode make_tris_from_quad( moab::Interface* MBI,
00014                                      moab::EntityHandle quad,  /* input  */
00015                                      moab::EntityHandle& tri0, /* output */
00016                                      moab::EntityHandle& tri1 /* output */ );
00017 
00018 moab::ErrorCode make_tris_from_quads( moab::Interface* MBI, const moab::Range& quads, moab::Range& tris );
00019 
00020 moab::ErrorCode quads_to_tris( moab::Interface* MBI, moab::EntityHandle input_meshset );
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines