Class SurfaceMesh
Defined in File surface_mesh.h
Class Documentation
-
class SurfaceMesh
Generic surface mesh class. This class facilitates many functions within the mesh environment including logically determining volumes.
Public Functions
-
explicit SurfaceMesh(const InputParameters ¶ms)
-
SurfaceMesh()
-
~SurfaceMesh()
-
int ImportFromOBJFile(const std::string &fileName, bool as_poly = false, const Vector3 &transform = Vector3(0, 0, 0))
Loads a surface mesh from a wavefront .obj file.
-
int ImportFromTriangleFiles(const char *fileName, bool as_poly)
Loads a surface mesh from triangle’s file format.
-
int ImportFromMshFiles(const char *fileName, bool as_poly)
Loads a surface mesh from gmsh’s file format.
-
void UpdateInternalConnectivity()
Runs over the faces of the surfacemesh and determines neighbors. The algorithm first establishes which cells subscribe to each vertex and then loops over faces and edges. For each edge, only the subscribing faces are searched for neighbors. This routine has time complexity O(N).
-
void ComputeLoadBalancing(std::vector<double> &x_cuts, std::vector<double> &y_cuts)
Computes load balancing parameters from a set of predictive cuts. Does not actually perform these cuts.
Public Static Functions
-
static InputParameters GetInputParameters()
-
static std::shared_ptr<SurfaceMesh> Create(const ParameterBlock ¶ms)
Protected Attributes
-
std::vector<int> physical_region_map_
Friends
-
friend std::ostream &operator<<(std::ostream &os, SurfaceMesh &dt)
-
explicit SurfaceMesh(const InputParameters ¶ms)