5 Face::Face(vector<Vector3D>
const& vert,
size_t neighbor1,
size_t neighbor2):
6 vertices(vert),neighbors(neighbor1,neighbor2) {}
27 for(
size_t i=0;i<
vertices.size()-2;++i)
35 for(
size_t i=0;i<face.
vertices.size()-2;++i)
double z
Component in the z direction.
Vector3D CrossProduct(Vector3D const &v1, Vector3D const &v2)
Returns the cross product of two vectors.
std::pair< size_t, size_t > neighbors
Neighboring cells.
std::vector< Vector3D > vertices
Points at the ends of the edge.
double y
Component in the y direction.
Vector3D calc_centroid(const Face &face)
Calculates the centroid of aa face.
double GetArea(void) const
Returns the area of the face.
Face & operator=(const Face &other)
Copy operator.
double abs(Vector3D const &v)
Norm of a vector.
double x
Component in the x direction.
Interface between two cells.
Face(vector< Vector3D > const &vert, size_t neighbor1, size_t neighbor2)
Class constructor.