MeshKit  1.0
zip Namespace Reference

Classes

struct  triangles

Functions

moab::ErrorCode t_joint (moab::Tag normal_tag, const moab::EntityHandle vert0, const moab::EntityHandle vert1, const moab::EntityHandle vert2, bool debug)
moab::ErrorCode delete_degenerate_tris (moab::EntityHandle tri)
 removes the entitiy handle tri from the loaded mesh
moab::ErrorCode delete_degenerate_tris (moab::Range tris)
moab::ErrorCode delete_adj_degenerate_tris (const moab::EntityHandle adj_vert)
moab::ErrorCode merge_verts (const moab::EntityHandle keep_vert, const moab::EntityHandle delete_vert, std::vector< moab::EntityHandle > &arc0, std::vector< moab::EntityHandle > &arc1)
moab::ErrorCode test_normals (const std::vector< moab::CartVect > norms0, const std::vector< moab::CartVect > norms1, std::vector< int > &inverted_tri_indices)
 test two normal vectors to see if they point in the same direction
moab::ErrorCode test_normals (const moab::CartVect norms0, const moab::CartVect norms1)
moab::ErrorCode remove_inverted_tris (moab::Tag normal_tag, moab::Range tris, const bool debug)
moab::ErrorCode test_zipping (const double FACET_TOL, const std::vector< std::vector< moab::EntityHandle > > arcs)
 tests the watertightness of all arcs in the vector-array of moab entity handles arcs
ErrorCode t_joint (Tag normal_tag, const EntityHandle vert0, const EntityHandle vert1, const EntityHandle vert2, bool debug)
ErrorCode delete_degenerate_tris (EntityHandle tri)
ErrorCode delete_degenerate_tris (Range tris)
ErrorCode delete_adj_degenerate_tris (const EntityHandle adj_vert)
ErrorCode merge_verts (const EntityHandle keep_vert, const EntityHandle delete_vert, std::vector< EntityHandle > &arc0, std::vector< EntityHandle > &arc1)
ErrorCode test_normals (const std::vector< CartVect > norms0, const std::vector< CartVect > norms1, std::vector< int > &inverted_tri_indices)
ErrorCode test_normals (const CartVect norm0, const CartVect norm1)
ErrorCode remove_inverted_tris (Tag normal_tag, Range tris, const bool debug)
ErrorCode test_zipping (const double FACET_TOL, const std::vector< std::vector< EntityHandle > > arcs)

Function Documentation

moab::ErrorCode zip::delete_adj_degenerate_tris ( const moab::EntityHandle  adj_vert)
ErrorCode zip::delete_adj_degenerate_tris ( const EntityHandle  adj_vert)

Definition at line 155 of file zip.cpp.

moab::ErrorCode zip::delete_degenerate_tris ( moab::EntityHandle  tri)

removes the entitiy handle tri from the loaded mesh

moab::ErrorCode zip::delete_degenerate_tris ( moab::Range  tris)

checks that no triangles in the moab::Range tris are degenterate. If degenerate triangles are found, they are deleted from the mesh.

ErrorCode zip::delete_degenerate_tris ( EntityHandle  tri)

Definition at line 132 of file zip.cpp.

ErrorCode zip::delete_degenerate_tris ( Range  tris)

Definition at line 146 of file zip.cpp.

moab::ErrorCode zip::merge_verts ( const moab::EntityHandle  keep_vert,
const moab::EntityHandle  delete_vert,
std::vector< moab::EntityHandle > &  arc0,
std::vector< moab::EntityHandle > &  arc1 
)

merges two vertices by updating the entity handle of the deleted vert to the vert to keep in the correct arc. Uses MOAB function merge_entities to merge the vertices in the database. Also deletes the triangles adjacent to the merged vertices if one becomes degenerate.

ErrorCode zip::merge_verts ( const EntityHandle  keep_vert,
const EntityHandle  delete_vert,
std::vector< EntityHandle > &  arc0,
std::vector< EntityHandle > &  arc1 
)

Definition at line 170 of file zip.cpp.

moab::ErrorCode zip::remove_inverted_tris ( moab::Tag  normal_tag,
moab::Range  tris,
const bool  debug 
)
ErrorCode zip::remove_inverted_tris ( Tag  normal_tag,
Range  tris,
const bool  debug 
)

Definition at line 258 of file zip.cpp.

moab::ErrorCode zip::t_joint ( moab::Tag  normal_tag,
const moab::EntityHandle  vert0,
const moab::EntityHandle  vert1,
const moab::EntityHandle  vert2,
bool  debug 
)
ErrorCode zip::t_joint ( Tag  normal_tag,
const EntityHandle  vert0,
const EntityHandle  vert1,
const EntityHandle  vert2,
bool  debug 
)

Definition at line 18 of file zip.cpp.

moab::ErrorCode zip::test_normals ( const std::vector< moab::CartVect >  norms0,
const std::vector< moab::CartVect >  norms1,
std::vector< int > &  inverted_tri_indices 
)

test two normal vectors to see if they point in the same direction

moab::ErrorCode zip::test_normals ( const moab::CartVect  norms0,
const moab::CartVect  norms1 
)
ErrorCode zip::test_normals ( const std::vector< CartVect >  norms0,
const std::vector< CartVect >  norms1,
std::vector< int > &  inverted_tri_indices 
)

Definition at line 233 of file zip.cpp.

ErrorCode zip::test_normals ( const CartVect  norm0,
const CartVect  norm1 
)

Definition at line 246 of file zip.cpp.

moab::ErrorCode zip::test_zipping ( const double  FACET_TOL,
const std::vector< std::vector< moab::EntityHandle > >  arcs 
)

tests the watertightness of all arcs in the vector-array of moab entity handles arcs

ErrorCode zip::test_zipping ( const double  FACET_TOL,
const std::vector< std::vector< EntityHandle > >  arcs 
)

Definition at line 513 of file zip.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines