MeshKit  1.0
gen.cpp File Reference
#include <iostream>
#include <iomanip>
#include <limits>
#include <assert.h>
#include <math.h>
#include <time.h>
#include <vector>
#include "moab/GeomTopoTool.hpp"
#include "moab/FileOptions.hpp"
#include "moab/Core.hpp"
#include "meshkit/gen.hpp"
#include "meshkit/zip.hpp"
#include "moab/Skinner.hpp"
Include dependency graph for gen.cpp:

Go to the source code of this file.

Namespaces

namespace  gen

Functions

bool error (const bool error_has_occured, const std::string message)
void moab_printer (ErrorCode error_code)
void print_vertex_cubit (const EntityHandle vertex)
void print_vertex_coords (const EntityHandle vertex)
void print_triangles (const Range tris)
void print_triangle (const EntityHandle tri, bool print_edges)
void print_edge (const EntityHandle edge)
void print_range (const Range range)
void print_range_of_edges (const Range range)
void print_vertex_count (const EntityHandle input_meshset)
void print_arcs (const std::vector< std::vector< EntityHandle > > arcs)
void print_arc_of_edges (const std::vector< EntityHandle > arc_of_edges)
void print_loop (const std::vector< EntityHandle > loop_of_verts)
ErrorCode find_closest_vert (const EntityHandle reference_vert, const std::vector< EntityHandle > arc_of_verts, unsigned &position, const double dist_limit)
ErrorCode find_closest_vert (const double tol, const EntityHandle reference_vert, const std::vector< EntityHandle > loop_of_verts, std::vector< unsigned > &positions, std::vector< double > &dists)
ErrorCode merge_vertices (Range verts, const double tol)
ErrorCode squared_dist_between_verts (const EntityHandle v0, const EntityHandle v1, double &d)
double dist_between_verts (const CartVect v0, const CartVect v1)
ErrorCode dist_between_verts (const EntityHandle v0, const EntityHandle v1, double &d)
double dist_between_verts (double coords0[], double coords1[])
double dist_between_verts (EntityHandle vert0, EntityHandle vert1)
double length (std::vector< EntityHandle > edges)
unsigned int n_adj_edges (EntityHandle vert, Range edges)
bool edges_adjacent (EntityHandle edge0, EntityHandle edge1)
ErrorCode get_direction (const EntityHandle from_vert, const EntityHandle to_vert, CartVect &dir)
double edge_point_dist (const CartVect a, const CartVect b, const CartVect c)
double edge_point_dist (const EntityHandle endpt0, const EntityHandle endpt1, const EntityHandle pt)
double edge_point_dist (const EntityHandle edge, const EntityHandle pt)
double triangle_area (const CartVect a, const CartVect b, const CartVect c)
ErrorCode triangle_area (const EntityHandle conn[], double &area)
ErrorCode triangle_area (const EntityHandle tri, double &area)
double triangle_area (const Range tris)
bool triangle_degenerate (const EntityHandle tri)
bool triangle_degenerate (const EntityHandle v0, const EntityHandle v1, const EntityHandle v2)
ErrorCode triangle_normals (const Range tris, std::vector< CartVect > &normals)
ErrorCode triangle_normal (const EntityHandle tri, CartVect &normal)
ErrorCode triangle_normal (const EntityHandle v0, const EntityHandle v1, const EntityHandle v2, CartVect &normal)
ErrorCode triangle_normal (const CartVect coords0, const CartVect coords1, const CartVect coords2, CartVect &normal)
ErrorCode line_point_dist (const EntityHandle line_pt1, const EntityHandle line_pt2, const EntityHandle pt0, double &dist)
ErrorCode point_line_projection (const EntityHandle line_pt1, const EntityHandle line_pt2, const EntityHandle pt0)
ErrorCode point_line_projection (const EntityHandle line_pt1, const EntityHandle line_pt2, const EntityHandle pt0, CartVect &projected_coords, double &parameter)
ErrorCode point_line_projection (const EntityHandle line_pt1, const EntityHandle line_pt2, const EntityHandle pt0, double &dist_along_edge)
double area2 (const EntityHandle pt_a, const EntityHandle pt_b, const EntityHandle pt_c, const CartVect plane_normal)
bool left (const EntityHandle a, const EntityHandle b, const EntityHandle c, const CartVect n)
bool left_on (const EntityHandle a, const EntityHandle b, const EntityHandle c, const CartVect n)
bool collinear (const EntityHandle a, const EntityHandle b, const EntityHandle c, const CartVect n)
bool logical_xor (const bool x, const bool y)
bool intersect_prop (const EntityHandle a, const EntityHandle b, const EntityHandle c, const EntityHandle d, const CartVect n)
bool between (const EntityHandle pt_a, const EntityHandle pt_b, const EntityHandle pt_c, const CartVect n)
bool intersect (const EntityHandle a, const EntityHandle b, const EntityHandle c, const EntityHandle d, const CartVect n)
bool diagonalie (const EntityHandle a, const EntityHandle b, const CartVect n, const std::vector< EntityHandle > verts)
bool in_cone (const EntityHandle a, const EntityHandle b, const CartVect n, const std::vector< EntityHandle > verts)
bool diagonal (const EntityHandle a, const EntityHandle b, const CartVect n, const std::vector< EntityHandle > verts)
ErrorCode ear_init (const std::vector< EntityHandle > verts, const CartVect n, std::vector< bool > &is_ear)
ErrorCode ear_clip_polygon (std::vector< EntityHandle > verts, CartVect n, Range &new_tris)
int geom_id_by_handle (const EntityHandle set)
ErrorCode save_normals (Range tris, Tag normal_tag)
ErrorCode flip (const EntityHandle tri, const EntityHandle vert0, const EntityHandle vert2, const EntityHandle surf_set)
ErrorCode ordered_verts_from_ordered_edges (const std::vector< EntityHandle > ordered_edges, std::vector< EntityHandle > &ordered_verts)
ErrorCode dist_between_arcs (bool debug, const std::vector< EntityHandle > arc0, const std::vector< EntityHandle > arc1, double &dist)
int compare_edge (const void *a, const void *b)
ErrorCode find_skin (Range tris, const int dim, Range &skin_edges, const bool temp_bool)
ErrorCode measure_volume (const EntityHandle volume, double &result, bool debug, bool verbose)
ErrorCode get_signed_volume (const EntityHandle surf_set, double &signed_volume)
ErrorCode measure (const EntityHandle set, const Tag geom_tag, double &size, bool debug, bool verbose)
ErrorCode get_curve_surf_sense (const EntityHandle surf_set, const EntityHandle curve_set, int &sense, bool debug)
 gets the surface sense with respect to the curve and returns the value to sense
ErrorCode surface_sense (EntityHandle volume, int num_surfaces, const EntityHandle *surfaces, int *senses_out)
ErrorCode surface_sense (EntityHandle volume, EntityHandle surface, int &sense_out)
 get sense of surface(s) wrt volume
Tag get_tag (const char *name, int size, TagType store, DataType type, const void *def_value, bool create_if_missing)
ErrorCode delete_surface (EntityHandle surf, Tag geom_tag, Range tris, int id, bool debug, bool verbose)
ErrorCode remove_surf_sense_data (EntityHandle del_surf, bool debug)
 removes sense data from all curves associated with the surface given to the function
ErrorCode combine_merged_curve_senses (std::vector< EntityHandle > &curves, Tag merge_tag, bool debug)
 combines the senses of any curves tagged as merged in the vector curves
ErrorCode get_sealing_mesh_tags (double &facet_tol, double &sme_resabs_tol, Tag &geom_tag, Tag &id_tag, Tag &normal_tag, Tag &merge_tag, Tag &faceting_tol_tag, Tag &geometry_resabs_tag, Tag &size_tag, Tag &orig_curve_tag)
ErrorCode get_geometry_meshsets (Range geometry_sets[], Tag geom_tag, bool verbose)
ErrorCode check_for_geometry_sets (Tag geom_tag, bool verbose)
Interface * MBI ()

Variables

const char GEOM_SENSE_2_TAG_NAME [] = "GEOM_SENSE_2"
const char GEOM_SENSE_N_ENTS_TAG_NAME [] = "GEOM_SENSE_N_ENTS"
const char GEOM_SENSE_N_SENSES_TAG_NAME [] = "GEOM_SENSE_N_SENSES"

Function Documentation

Interface * MBI ( )

Definition at line 2235 of file gen.cpp.


Variable Documentation

const char GEOM_SENSE_2_TAG_NAME[] = "GEOM_SENSE_2"

Definition at line 18 of file gen.cpp.

const char GEOM_SENSE_N_ENTS_TAG_NAME[] = "GEOM_SENSE_N_ENTS"

Definition at line 19 of file gen.cpp.

const char GEOM_SENSE_N_SENSES_TAG_NAME[] = "GEOM_SENSE_N_SENSES"

Definition at line 20 of file gen.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines