OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Mesh Class Reference
+ Inheritance diagram for OpenMD::Mesh:

Public Member Functions

virtual bool isInterior (Vector3d pos)
 
virtual std::pair< Vector3d, Vector3dgetBoundingBox ()
 
virtual bool hasAnalyticalSolution ()
 
virtual HydroPropgetHydroProp (RealType viscosity)
 
virtual Vector3d getOrigin ()
 
virtual bool isComposite ()
 
virtual bool isSpherical ()
 
virtual bool isMesh ()
 
void add (Triangle t)
 
void add (const Vector3d &vertex1, const Vector3d &vertex2, const Vector3d &vertex3)
 
void addQuadrilateral (const Vector3d &p1, const Vector3d &p2, const Vector3d &p3, const Vector3d &p4)
 
void clear ()
 
size_t size ()
 
Meshscale (const Vector3d &s)
 
Meshtranslate (const Vector3d &trans)
 
MeshflipNormal ()
 
void stlWrite (const std::string &filename, const std::string &name="")
 
Meshoperator+= (const Mesh &m)
 
void add (const Mesh &m1, const Mesh &m2)
 
std::vector< TrianglegetFacets ()
 
- Public Member Functions inherited from OpenMD::Shape
std::string getName ()
 
void setName (const std::string name)
 

Detailed Description

Definition at line 60 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh()

OpenMD::Mesh::Mesh ( )
inline

Definition at line 62 of file Mesh.hpp.

◆ ~Mesh()

virtual OpenMD::Mesh::~Mesh ( )
inlinevirtual

Definition at line 63 of file Mesh.hpp.

Member Function Documentation

◆ add() [1/3]

void OpenMD::Mesh::add ( const Mesh & m1,
const Mesh & m2 )
inline

Definition at line 190 of file Mesh.hpp.

◆ add() [2/3]

void OpenMD::Mesh::add ( const Vector3d & vertex1,
const Vector3d & vertex2,
const Vector3d & vertex3 )
inline

Definition at line 100 of file Mesh.hpp.

◆ add() [3/3]

void OpenMD::Mesh::add ( Triangle t)
inline

Definition at line 98 of file Mesh.hpp.

◆ addQuadrilateral()

void OpenMD::Mesh::addQuadrilateral ( const Vector3d & p1,
const Vector3d & p2,
const Vector3d & p3,
const Vector3d & p4 )
inline

Definition at line 106 of file Mesh.hpp.

◆ clear()

void OpenMD::Mesh::clear ( )
inline

Definition at line 112 of file Mesh.hpp.

◆ flipNormal()

Mesh & OpenMD::Mesh::flipNormal ( )
inline

Definition at line 144 of file Mesh.hpp.

◆ getBoundingBox()

virtual std::pair< Vector3d, Vector3d > OpenMD::Mesh::getBoundingBox ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 66 of file Mesh.hpp.

◆ getFacets()

std::vector< Triangle > OpenMD::Mesh::getFacets ( )
inline

Definition at line 197 of file Mesh.hpp.

◆ getHydroProp()

virtual HydroProp * OpenMD::Mesh::getHydroProp ( RealType viscosity)
inlinevirtual

Implements OpenMD::Shape.

Definition at line 83 of file Mesh.hpp.

◆ getOrigin()

virtual Vector3d OpenMD::Mesh::getOrigin ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 93 of file Mesh.hpp.

◆ hasAnalyticalSolution()

virtual bool OpenMD::Mesh::hasAnalyticalSolution ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 82 of file Mesh.hpp.

◆ isComposite()

virtual bool OpenMD::Mesh::isComposite ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 94 of file Mesh.hpp.

◆ isInterior()

virtual bool OpenMD::Mesh::isInterior ( Vector3d pos)
inlinevirtual

Implements OpenMD::Shape.

Definition at line 65 of file Mesh.hpp.

◆ isMesh()

virtual bool OpenMD::Mesh::isMesh ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 96 of file Mesh.hpp.

◆ isSpherical()

virtual bool OpenMD::Mesh::isSpherical ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 95 of file Mesh.hpp.

◆ operator+=()

Mesh & OpenMD::Mesh::operator+= ( const Mesh & m)
inline

Definition at line 185 of file Mesh.hpp.

◆ scale()

Mesh & OpenMD::Mesh::scale ( const Vector3d & s)
inline

Definition at line 116 of file Mesh.hpp.

◆ size()

size_t OpenMD::Mesh::size ( )
inline

Definition at line 114 of file Mesh.hpp.

◆ stlWrite()

void OpenMD::Mesh::stlWrite ( const std::string & filename,
const std::string & name = "" )
inline

Definition at line 151 of file Mesh.hpp.

◆ translate()

Mesh & OpenMD::Mesh::translate ( const Vector3d & trans)
inline

Definition at line 133 of file Mesh.hpp.


The documentation for this class was generated from the following file: