#include </usr1/tp517/Tumble/trunk/src/tumble/meshio.h>
Collaboration diagram for MeshInput:
Public Member Functions | |
MeshInput (BezierMesh *_bezier_mesh, BoundaryMesh *_bdry_mesh) | |
bool | read (const char *filename) |
Private Member Functions | |
int | read_boundary_vertex_data (BoundaryVertexData *data) |
int | read_boundary_edge_data (BoundaryEdgeData *data) |
int | read_boundary_face_data (BoundaryFaceData *data) |
int | read_bezier_edge_data (BezierEdgeData *data) |
int | read_bezier_triangle_data (BezierTriangleData *data) |
Private Attributes | |
FILE * | node_file |
FILE * | ele_file |
FILE * | edge_file |
FILE * | bdry_file |
hashers::hash_map< unsigned, BoundaryVertex * > | bdry_verts |
hashers::hash_map< unsigned, BoundaryEdge * > | bdry_edges |
hashers::hash_map< unsigned, BoundaryFace * > | bdry_faces |
hashers::hash_map< unsigned, BezierVertex * > | bez_verts |
hashers::hash_map< unsigned, BezierEdge * > | bez_edges |
BezierMesh * | bezier_mesh |
BoundaryMesh * | bdry_mesh |
Classes | |
struct | BezierEdgeData |
struct | BezierTriangleData |
struct | BoundaryEdgeData |
struct | BoundaryFaceData |
struct | BoundaryVertexData |
struct | Node |
The text file format specifies a quartet of files with respective extentions of ".bdry",".node",".edge", and ".ele"
See File Formats.
Definition at line 31 of file meshio.h.
MeshInput::MeshInput | ( | BezierMesh * | _bezier_mesh, | |
BoundaryMesh * | _bdry_mesh | |||
) | [inline] |
int MeshInput::read_boundary_vertex_data | ( | BoundaryVertexData * | data | ) | [private] |
Definition at line 230 of file meshio.C.
References bdry_file, FALSE, MeshInput::BoundaryVertexData::idx, MAX_FILE_LINE, MeshInput::BoundaryVertexData::node, and TRUE.
Referenced by read().
int MeshInput::read_boundary_edge_data | ( | BoundaryEdgeData * | data | ) | [private] |
Definition at line 243 of file meshio.C.
References bdry_file, MeshInput::BoundaryEdgeData::closed, MeshInput::BoundaryEdgeData::color, Point2D::coords, MeshInput::BoundaryEdgeData::d, FALSE, MeshInput::BoundaryEdgeData::fixed, MeshInput::BoundaryEdgeData::idx, MeshInput::BoundaryEdgeData::k, MAX_FILE_LINE, MeshInput::BoundaryEdgeData::restlength, TRUE, MeshInput::BoundaryEdgeData::v0, and MeshInput::BoundaryEdgeData::v1.
Referenced by read().
int MeshInput::read_boundary_face_data | ( | BoundaryFaceData * | data | ) | [private] |
Definition at line 305 of file meshio.C.
References bdry_edges, bdry_file, MeshInput::BoundaryFaceData::color, MeshInput::BoundaryFaceData::edges, FALSE, MeshInput::BoundaryFaceData::idx, MAX_FILE_LINE, MeshInput::BoundaryFaceData::min_angle, and TRUE.
Referenced by read().
int MeshInput::read_bezier_edge_data | ( | BezierEdgeData * | data | ) | [private] |
Definition at line 325 of file meshio.C.
References MeshInput::BezierEdgeData::bdry, bzero, edge_file, FALSE, MeshInput::BezierEdgeData::idx, MeshInput::BezierEdgeData::is_bdry, MAX_FILE_LINE, TRUE, MeshInput::BezierEdgeData::u0, MeshInput::BezierEdgeData::u1, MeshInput::BezierEdgeData::v0, MeshInput::BezierEdgeData::v1, and MeshInput::BezierEdgeData::v2.
Referenced by read().
int MeshInput::read_bezier_triangle_data | ( | BezierTriangleData * | data | ) | [private] |
Definition at line 356 of file meshio.C.
References MeshInput::BezierTriangleData::bdry_face, MeshInput::BezierTriangleData::e0, MeshInput::BezierTriangleData::e1, MeshInput::BezierTriangleData::e2, ele_file, FALSE, MeshInput::BezierTriangleData::idx, MeshInput::BezierTriangleData::inverted, MAX_FILE_LINE, and TRUE.
Referenced by read().
bool MeshInput::read | ( | const char * | filename | ) |
Definition at line 26 of file meshio.C.
References BezierMesh::add_bezier_edge(), BezierMesh::add_bezier_triangle(), BezierMesh::add_bezier_vertex(), BoundaryMesh::add_boundary_edge(), BoundaryMesh::add_boundary_face(), BoundaryMesh::add_boundary_vertex(), MeshInput::Node::added, MeshInput::BezierEdgeData::bdry, bdry_edges, MeshInput::BezierTriangleData::bdry_face, bdry_faces, bdry_file, bdry_mesh, bdry_verts, bez_edges, bez_verts, bezier_mesh, bzero, MeshInput::BoundaryFaceData::color, MeshInput::BoundaryEdgeData::color, MeshInput::Node::d, MeshInput::BoundaryEdgeData::d, MeshInput::BezierTriangleData::e0, MeshInput::BezierTriangleData::e1, MeshInput::BezierTriangleData::e2, edge_file, MeshInput::BoundaryFaceData::edges, ele_file, MeshInput::BoundaryEdgeData::fixed, QBSpline::get_edge_cps(), BoundaryEdge::get_spline(), BoundaryEdge::get_vertex(), MeshInput::BezierEdgeData::idx, MeshInput::BoundaryFaceData::idx, MeshInput::BoundaryEdgeData::idx, MeshInput::BoundaryVertexData::idx, MeshInput::BezierEdgeData::is_bdry, MeshInput::BoundaryEdgeData::k, MAX_FILE_LINE, MAX_FILENAME, MeshInput::BoundaryFaceData::min_angle, MeshInput::BoundaryVertexData::node, node_file, MeshInput::Node::p, read_bezier_edge_data(), read_bezier_triangle_data(), read_boundary_edge_data(), read_boundary_face_data(), read_boundary_vertex_data(), MeshInput::BoundaryEdgeData::restlength, BezierEdge::set_bdry(), BezierVertex::set_bdry(), MeshInput::BezierEdgeData::u0, MeshInput::BezierEdgeData::u1, MeshInput::BezierEdgeData::v0, MeshInput::BoundaryEdgeData::v0, MeshInput::BezierEdgeData::v1, MeshInput::BoundaryEdgeData::v1, and MeshInput::BezierEdgeData::v2.
Referenced by Simulation::read_from_text_file().
Here is the call graph for this function:
FILE* MeshInput::node_file [private] |
FILE* MeshInput::ele_file [private] |
FILE* MeshInput::edge_file [private] |
FILE* MeshInput::bdry_file [private] |
Definition at line 36 of file meshio.h.
Referenced by read(), read_boundary_edge_data(), read_boundary_face_data(), and read_boundary_vertex_data().
hashers::hash_map<unsigned, BoundaryVertex*> MeshInput::bdry_verts [private] |
hashers::hash_map<unsigned, BoundaryEdge*> MeshInput::bdry_edges [private] |
hashers::hash_map<unsigned, BoundaryFace*> MeshInput::bdry_faces [private] |
hashers::hash_map<unsigned, BezierVertex*> MeshInput::bez_verts [private] |
hashers::hash_map<unsigned, BezierEdge*> MeshInput::bez_edges [private] |
BezierMesh* MeshInput::bezier_mesh [private] |
BoundaryMesh* MeshInput::bdry_mesh [private] |