MeshKit  1.0
mw_func.hpp File Reference
#include <iostream>
#include <sstream>
#include <iomanip>
#include <limits>
#include <assert.h>
#include <math.h>
#include <time.h>
#include <vector>
#include "moab/Core.hpp"
#include "MBTagConventions.hpp"
#include "moab/Range.hpp"
#include "moab/Skinner.hpp"
#include "moab/GeomTopoTool.hpp"
#include "gen.hpp"
#include "arc.hpp"
#include "zip.hpp"
#include "cleanup.hpp"
Include dependency graph for mw_func.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mw_func

Functions

void moab_printer (moab::ErrorCode error_code)
moab::ErrorCode delete_all_edges ()
moab::ErrorCode find_degenerate_tris ()
moab::ErrorCode prepare_curves (moab::Range &curve_sets, moab::Tag geom_tag, moab::Tag id_tag, moab::Tag merge_tag, const double FACET_TOL, const bool debug, bool verbose=true)
moab::ErrorCode create_arc_pair (const double FACET_TOL, const moab::EntityHandle surf_set, std::vector< moab::EntityHandle > &skin_loop, std::vector< moab::EntityHandle > &curve_sets, const moab::EntityHandle front_endpt, const bool debug, moab::EntityHandle &curve_set, bool &curve_is_reversed, std::vector< moab::EntityHandle > &curve, std::vector< moab::EntityHandle > &skin_arc)
moab::ErrorCode seal_arc_pair (const bool debug, const double FACET_TOL, const moab::Tag normal_tag, std::vector< moab::EntityHandle > &edge, std::vector< moab::EntityHandle > &skin, const int surf_id)
moab::ErrorCode seal_loop (bool debug, const double FACET_TOL, const moab::Tag normal_tag, const moab::Tag orig_curve_tag, const moab::EntityHandle surf_set, std::vector< moab::EntityHandle > &curve_sets, std::vector< moab::EntityHandle > &skin_loop, bool verbose=false)
moab::ErrorCode prepare_surfaces (moab::Range &surface_sets, moab::Tag geom_tag, moab::Tag id_tag, moab::Tag normal_tag, moab::Tag merge_tag, moab::Tag orig_curve_tag, const double SME_RESABS_TOL, const double FACET_TOL, const bool debug, bool verbose=true)
moab::ErrorCode fix_normals (moab::Range surface_sets, moab::Tag id_tag, moab::Tag normal_tag, const bool debug, const bool verbose)
 re-orients triangles with inverted normal vectors after being sealed
moab::ErrorCode restore_moab_curve_representation (const moab::Range curve_sets)
moab::ErrorCode get_geom_size_before_sealing (const moab::Range geom_sets[], const moab::Tag geom_tag, const moab::Tag size_tag, bool debug, bool verbose)
 prints the size of every entity in geom_sets
moab::ErrorCode get_geom_size_after_sealing (const moab::Range geom_sets[], const moab::Tag geom_tag, const moab::Tag size_tag, const double FACET_TOL, bool debug, bool verbose)
 prints changes in size to the mesh after sealing
moab::ErrorCode delete_merged_curves (moab::Range &existing_curve_sets, moab::Tag merge_tag, bool debug=false)
 deletes all curves with a merge_tag and removes them from the curve sets of the mesh
moab::ErrorCode delete_sealing_tags (moab::Tag normal_tag, moab::Tag merge_tag, moab::Tag size_tag, moab::Tag orig_curve_tag)
 deletes all tags created for use in sealing the model
moab::ErrorCode get_unmerged_curves (moab::EntityHandle surface, std::vector< moab::EntityHandle > &curves, std::vector< moab::EntityHandle > &unmerged_curves, moab::Tag merge_tag, bool verbose, bool debug)
 gets all curve sets an returns them in curves. Places any unmerged curves in unmerged_curves.
moab::ErrorCode create_skin_vert_loops (moab::Range &skin_edges, moab::Range tris, std::vector< std::vector< moab::EntityHandle > > &skin, int surf_id, bool &cont, bool debug)
moab::ErrorCode merge_skin_verts (moab::Range &skin_verts, moab::Range &skin_edges, double SME_RESABS_TOL, int surf_id, bool cont, bool debug)
moab::ErrorCode seal_surface_loops (moab::EntityHandle surf, moab::EntityHandle skin_loops[], std::vector< std::vector< moab::EntityHandle > > skin, std::vector< moab::EntityHandle > curves, moab::Tag normal_tag, moab::Tag orig_curve_tag, double FACET_TOL, int surf_id, bool debug)
 runs the make_watertight algorithm on each set of skin_loops for the surface, surf.
moab::ErrorCode make_mesh_watertight (moab::EntityHandle input_set, double &facet_tol, bool verbose=true)
 takes the mesh in input_set and makes it watertight
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines