MeshKit
1.0
|
#include <Mesh.hpp>
Public Member Functions | |
Mesh () | |
~Mesh () | |
void | objects_from_pool (size_t n, NodeSequence &objects) |
void | objects_from_pool (size_t n, FaceSequence &objects) |
void | setName (const string &s) |
string | getName () const |
void | reserve (size_t nSize, int entity) |
bool | hasDual () const |
void | setDual (bool d) |
int | remove_nodes_attribute (const string &s) |
int | remove_edges_attribute (const string &s) |
int | remove_faces_attribute (const string &s) |
int | isHomogeneous () const |
int | hasConvexCells () |
size_t | count_convex_faces () |
size_t | count_concave_faces () |
size_t | count_inverted_faces () |
size_t | count_irregular_nodes (int regdef) |
Mesh * | deep_copy () |
Mesh * | shallow_copy () |
BoundingBox | getBoundingBox () const |
int | getNumComponents (bool stop_at_interface=0) |
Mesh * | getComponent (int id) |
int | readFromFile (const string &f) |
bool | getAdjTable (int i, int j) const |
Mesh * | load (const string &fname, Mesh *m) |
Mesh * | getPartMesh (int p) |
int | getNumPartitions (int e) |
int | getEulerCharacteristic () |
Vertex * | nearest_neighbour (const Vertex *v, double &d) |
size_t | getSize (int d) |
size_t | getCapacity (int d) |
void | setBoundaryKnown (bool v) |
bool | isBoundaryKnown () const |
bool | isSimple () |
bool | is_consistently_oriented () |
void | make_consistently_oriented () |
int | getNumConnectedComponents () |
size_t | getBoundarySize (int d) |
void | addNode (PNode v) |
void | addNodes (const NodeSequence &vnodes) |
void | addNodes (NodeList &nlist) |
int | remove (PNode v) |
int | deactivate (PNode v) |
int | reactivate (PNode v) |
const PNode & | getNodeAt (size_t id) const |
int | getNodes (NodeSequence &seq) const |
int | getNodes (NodeList &l) const |
int | getFaces (FaceList &l) const |
int | get_irregular_nodes (NodeSequence &seq, int regular_count, int where=0) |
const PEdge & | getEdgeAt (size_t id) const |
int | get_sharp_edges (EdgeSequence &e, double angle) |
void | addFeatureEdge (PEdge e) |
bool | hasFeatureEdge (const Edge &query_edge) const |
int | addFace (PFace f) |
int | remove (PFace f) |
int | deactivate (PFace f) |
int | reactivate (PFace f) |
void | addFaces (FaceSequence &vfaces) |
void | addFaces (FaceList &flist) |
const PFace & | getFaceAt (size_t id) const |
bool | contains (const Vertex *v) const |
bool | contains (const Face *f) const |
void | prune () |
bool | isPruned () const |
void | enumerate (int etype) |
int | search_boundary () |
int | build_relations (int src, int dst, bool rebuild=0) |
void | normalize () |
void | clear_relations (int src, int dst) |
int | getEdges (EdgeSequence &seq, int directed=0) |
EdgeSequence | getDualEdges () const |
EdgeSequence | getMatchingDuals () const |
FaceSequence | filter (int facetype) const |
int | saveAs (const string &s) |
void | emptyAll () |
void | deleteNodes () |
void | deleteEdges () |
void | deleteFaces () |
void | deleteAll () |
void | reverse () |
vector< int > | get_topological_statistics (int entity=0, bool sorted=1) |
int | get_depth_first_ordered_nodes (NodeSequence &seq, Vertex *v=NULL, MeshFilter *mf=NULL) |
int | get_depth_first_ordered_faces (FaceSequence &seq, Face *f=NULL) |
int | get_breadth_first_ordered_nodes (NodeSequence &seq, Vertex *f=NULL, MeshFilter *mf=NULL) |
int | get_breadth_first_ordered_faces (FaceSequence &seq, Face *f=NULL) |
int | setWavefront (int ofwhat) |
size_t | setNodeWavefront (int layerid) |
size_t | setFaceWavefront (int layerid) |
int | verify_front_ordering (int ofwhat) |
NodeSet | get_nearest_neighbors (const Point3D &p, int n=1) |
NodeSet | get_topological_neighbors (const NodeSequence &n, int k=1) |
int | remove_unreferenced_nodes () |
void | get_quad_strips (Face *rootface, FaceSequence &strip1, FaceSequence &strip2) |
void | set_strip_markers () |
int | get_bound_nodes (NodeSequence &seq) |
int | get_bound_faces (FaceSequence &seq, int bound_what=1) |
vector< double > | getAspectRatio (bool sorted=1) |
double | getSurfaceArea () |
int | check_convexity () |
int | get_quality_statistics (const string &s) |
int | getCoordsArray (vector< double > &a, vector< size_t > &l2g) |
int | getNodesArray (vector< size_t > &a, vector< int > &topo) |
int | setCoordsArray (const vector< double > &v, const vector< size_t > &l2g) |
int | hasDuplicates (int what) |
void | getMinMaxVertexDegrees (int &mind, int &maxd) |
void | getMinMaxFaceArea (double &mind, double &maxd) |
void | setNormals () |
int | refine_tri_edge (Vertex *v0, Vertex *v1, int n, NodeSequence &newnodes, FaceSequence &newfaces) |
int | collapse_tri_edge (Vertex *v0, Vertex *v1) |
int | refine_quads14 () |
int | refine_quads15 () |
int | refine_quad14 (Face *f) |
int | refine_quad15 (Face *f) |
void | collect_garbage () |
int | search_quad_patches () |
void | build_edges () |
Static Public Member Functions | |
static NodeSequence | generate_nodes (size_t n) |
static FaceSequence | generate_faces (size_t n) |
static int | getRelations112 (const PNode v0, const PNode v1, FaceSequence &seq) |
static int | getRelations102 (const PNode v0, const PNode v1, FaceSequence &seq) |
static int | make_chain (vector< Edge > &edges) |
static int | is_closed_chain (const vector< Edge > &edges) |
static int | is_closeable_chain (const vector< Edge > &edges) |
static int | rotate_chain (vector< Edge > &edges, Vertex *start_vertex) |
static NodeSequence | boundary_chain_nodes (Vertex *v0, Vertex *v1) |
static NodeSequence | chain_nodes (const vector< Edge > &e) |
Private Member Functions | |
size_t | count_edges () |
double | getLength (int dir) const |
int | build_relations00 (bool rebuild=0) |
int | build_relations01 (bool rebuild=0) |
int | build_relations02 (bool rebuild=0) |
int | build_relations12 (bool rebuild=0) |
int | setNodeWavefront () |
int | setFaceWavefront () |
Private Attributes | |
volatile char | adjTable [4][4] |
string | meshname |
double | normalize_factor |
bool | hasdual |
bool | boundary_known |
NodeSequence | nodes |
EdgeSequence | edges |
FaceSequence | faces |
NodeSequence | feature_nodes |
EdgeSequence | feature_edges |
FaceSequence | feature_faces |
NodeList | garbageNodes |
EdgeList | garbageEdges |
FaceList | garbageFaces |
void addFaces | ( | FaceSequence & | vfaces | ) | [inline] |
void addFeatureEdge | ( | PEdge | e | ) | [inline] |
void addNodes | ( | const NodeSequence & | vnodes | ) | [inline] |
Jaal::NodeSequence boundary_chain_nodes | ( | Vertex * | v0, |
Vertex * | v1 | ||
) | [static] |
void build_edges | ( | ) |
int build_relations | ( | int | src, |
int | dst, | ||
bool | rebuild = 0 |
||
) | [inline] |
int build_relations00 | ( | bool | rebuild = 0 | ) | [private] |
int build_relations01 | ( | bool | rebuild = 0 | ) | [private] |
int build_relations02 | ( | bool | rebuild = 0 | ) | [private] |
int build_relations12 | ( | bool | rebuild = 0 | ) | [private] |
NodeSequence chain_nodes | ( | const vector< Edge > & | e | ) | [static] |
int check_convexity | ( | ) |
void clear_relations | ( | int | src, |
int | dst | ||
) |
int collapse_tri_edge | ( | Vertex * | v0, |
Vertex * | v1 | ||
) |
void collect_garbage | ( | ) |
size_t count_concave_faces | ( | ) |
size_t count_convex_faces | ( | ) |
size_t count_edges | ( | ) | [private] |
size_t count_inverted_faces | ( | ) |
size_t count_irregular_nodes | ( | int | regdef | ) |
int deactivate | ( | PNode | v | ) | [inline] |
int deactivate | ( | PFace | f | ) | [inline] |
void deleteEdges | ( | ) |
void deleteFaces | ( | ) |
void deleteNodes | ( | ) |
Jaal::FaceSequence filter | ( | int | facetype | ) | const |
FaceSequence generate_faces | ( | size_t | n | ) | [inline, static] |
NodeSequence generate_nodes | ( | size_t | n | ) | [inline, static] |
int get_bound_faces | ( | FaceSequence & | seq, |
int | bound_what = 1 |
||
) |
int get_bound_nodes | ( | NodeSequence & | seq | ) |
int get_breadth_first_ordered_faces | ( | FaceSequence & | seq, |
Face * | f = NULL |
||
) |
int get_breadth_first_ordered_nodes | ( | NodeSequence & | seq, |
Vertex * | f = NULL , |
||
MeshFilter * | mf = NULL |
||
) |
int get_depth_first_ordered_faces | ( | FaceSequence & | seq, |
Face * | f = NULL |
||
) |
int get_depth_first_ordered_nodes | ( | NodeSequence & | seq, |
Vertex * | v = NULL , |
||
MeshFilter * | mf = NULL |
||
) |
int get_irregular_nodes | ( | NodeSequence & | seq, |
int | regular_count, | ||
int | where = 0 |
||
) |
NodeSet get_nearest_neighbors | ( | const Point3D & | p, |
int | n = 1 |
||
) |
void get_quad_strips | ( | Face * | rootface, |
FaceSequence & | strip1, | ||
FaceSequence & | strip2 | ||
) |
int get_quality_statistics | ( | const string & | s | ) |
int get_sharp_edges | ( | EdgeSequence & | e, |
double | angle | ||
) |
NodeSet get_topological_neighbors | ( | const NodeSequence & | n, |
int | k = 1 |
||
) |
vector< int > get_topological_statistics | ( | int | entity = 0 , |
bool | sorted = 1 |
||
) |
bool getAdjTable | ( | int | i, |
int | j | ||
) | const [inline] |
vector< double > getAspectRatio | ( | bool | sorted = 1 | ) |
size_t getBoundarySize | ( | int | d | ) |
BoundingBox getBoundingBox | ( | ) | const |
size_t getCapacity | ( | int | d | ) | [inline] |
Mesh * getComponent | ( | int | id | ) |
int getCoordsArray | ( | vector< double > & | a, |
vector< size_t > & | l2g | ||
) |
EdgeSequence getDualEdges | ( | ) | const |
int getEdges | ( | EdgeSequence & | seq, |
int | directed = 0 |
||
) | [inline] |
int getEulerCharacteristic | ( | ) |
EdgeSequence getMatchingDuals | ( | ) | const |
void getMinMaxFaceArea | ( | double & | mind, |
double & | maxd | ||
) |
void getMinMaxVertexDegrees | ( | int & | mind, |
int & | maxd | ||
) |
int getNodes | ( | NodeSequence & | seq | ) | const [inline] |
int getNodesArray | ( | vector< size_t > & | a, |
vector< int > & | topo | ||
) |
int getNumComponents | ( | bool | stop_at_interface = 0 | ) |
int getNumConnectedComponents | ( | ) |
int getNumPartitions | ( | int | e | ) |
Mesh * getPartMesh | ( | int | p | ) |
int getRelations102 | ( | const PNode | v0, |
const PNode | v1, | ||
FaceSequence & | seq | ||
) | [static] |
int getRelations112 | ( | const PNode | v0, |
const PNode | v1, | ||
FaceSequence & | seq | ||
) | [static] |
double getSurfaceArea | ( | ) |
int hasConvexCells | ( | ) |
int hasDuplicates | ( | int | what | ) |
bool hasFeatureEdge | ( | const Edge & | query_edge | ) | const [inline] |
int is_closeable_chain | ( | const vector< Edge > & | edges | ) | [static] |
int is_closed_chain | ( | const vector< Edge > & | edges | ) | [static] |
bool is_consistently_oriented | ( | ) |
bool isBoundaryKnown | ( | ) | const [inline] |
int isHomogeneous | ( | ) | const |
int make_chain | ( | vector< Edge > & | edges | ) | [static] |
void make_consistently_oriented | ( | ) |
Vertex * nearest_neighbour | ( | const Vertex * | v, |
double & | d | ||
) |
void objects_from_pool | ( | size_t | n, |
NodeSequence & | objects | ||
) |
void objects_from_pool | ( | size_t | n, |
FaceSequence & | objects | ||
) |
int reactivate | ( | PNode | v | ) | [inline] |
int reactivate | ( | PFace | f | ) | [inline] |
int readFromFile | ( | const string & | f | ) |
Definition at line 167 of file mesh_io.cpp.
int refine_quad14 | ( | Face * | f | ) |
int refine_quad15 | ( | Face * | f | ) |
int refine_quads14 | ( | ) |
int refine_quads15 | ( | ) |
int refine_tri_edge | ( | Vertex * | v0, |
Vertex * | v1, | ||
int | n, | ||
NodeSequence & | newnodes, | ||
FaceSequence & | newfaces | ||
) |
int remove_edges_attribute | ( | const string & | s | ) |
int remove_faces_attribute | ( | const string & | s | ) |
int remove_nodes_attribute | ( | const string & | s | ) |
int remove_unreferenced_nodes | ( | ) |
int rotate_chain | ( | vector< Edge > & | edges, |
Vertex * | start_vertex | ||
) | [static] |
int search_boundary | ( | ) |
int search_quad_patches | ( | ) |
Definition at line 393 of file QuadPatches.cpp.
void set_strip_markers | ( | ) |
void setBoundaryKnown | ( | bool | v | ) | [inline] |
int setCoordsArray | ( | const vector< double > & | v, |
const vector< size_t > & | l2g | ||
) |
size_t setFaceWavefront | ( | int | layerid | ) |
int setFaceWavefront | ( | ) | [private] |
size_t setNodeWavefront | ( | int | layerid | ) |
int setNodeWavefront | ( | ) | [private] |
void setNormals | ( | ) |
int setWavefront | ( | int | ofwhat | ) |
Mesh* shallow_copy | ( | ) |
int verify_front_ordering | ( | int | ofwhat | ) |
bool boundary_known [private] |
EdgeSequence edges [private] |
FaceSequence faces [private] |
EdgeSequence feature_edges [private] |
FaceSequence feature_faces [private] |
NodeSequence feature_nodes [private] |
EdgeList garbageEdges [private] |
FaceList garbageFaces [private] |
NodeList garbageNodes [private] |
NodeSequence nodes [private] |
double normalize_factor [private] |