OpenMD 3.2
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, Vector3d > getBoundingBox ()
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 ()
Mesh & scale (const Vector3d &s)
Mesh & translate (const Vector3d &trans)
Mesh & flipNormal ()
void stlWrite (const std::string &filename, const std::string &name="")
Mesh & operator+= (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 63 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh()

OpenMD::Mesh::Mesh ( )
inline

Definition at line 65 of file Mesh.hpp.

◆ ~Mesh()

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

Definition at line 66 of file Mesh.hpp.

Member Function Documentation

◆ add() [1/3]

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

Definition at line 193 of file Mesh.hpp.

◆ add() [2/3]

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

Definition at line 103 of file Mesh.hpp.

◆ add() [3/3]

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

Definition at line 101 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 109 of file Mesh.hpp.

◆ clear()

void OpenMD::Mesh::clear ( )
inline

Definition at line 115 of file Mesh.hpp.

◆ flipNormal()

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

Definition at line 147 of file Mesh.hpp.

◆ getBoundingBox()

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

Implements OpenMD::Shape.

Definition at line 69 of file Mesh.hpp.

◆ getFacets()

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

Definition at line 200 of file Mesh.hpp.

◆ getHydroProp()

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

Implements OpenMD::Shape.

Definition at line 86 of file Mesh.hpp.

◆ getOrigin()

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

Implements OpenMD::Shape.

Definition at line 96 of file Mesh.hpp.

◆ hasAnalyticalSolution()

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

Implements OpenMD::Shape.

Definition at line 85 of file Mesh.hpp.

◆ isComposite()

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

Implements OpenMD::Shape.

Definition at line 97 of file Mesh.hpp.

◆ isInterior()

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

Implements OpenMD::Shape.

Definition at line 68 of file Mesh.hpp.

◆ isMesh()

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

Implements OpenMD::Shape.

Definition at line 99 of file Mesh.hpp.

◆ isSpherical()

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

Implements OpenMD::Shape.

Definition at line 98 of file Mesh.hpp.

◆ operator+=()

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

Definition at line 188 of file Mesh.hpp.

◆ scale()

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

Definition at line 119 of file Mesh.hpp.

◆ size()

size_t OpenMD::Mesh::size ( )
inline

Definition at line 117 of file Mesh.hpp.

◆ stlWrite()

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

Definition at line 154 of file Mesh.hpp.

◆ translate()

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

Definition at line 136 of file Mesh.hpp.


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