Loading [MathJax]/extensions/tex2jax.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-352-gf10a2b326e source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
Applications
►
ApplicationsLib
►
CLI
►
DataExplorer
►
DataHolderLib
▼
FileIO
►
FEFLOW
▼
Gmsh
GMSHAdaptiveMeshDensity.cpp
►
GMSHAdaptiveMeshDensity.h
GMSHFixedMeshDensity.cpp
►
GMSHFixedMeshDensity.h
►
GMSHInterface.cpp
►
GMSHInterface.h
GMSHLine.cpp
►
GMSHLine.h
GMSHLineLoop.cpp
►
GMSHLineLoop.h
►
GMSHMeshDensityStrategy.h
►
GMSHPoint.cpp
►
GMSHPoint.h
GMSHPolygonTree.cpp
►
GMSHPolygonTree.h
►
GmshReader.cpp
►
GmshReader.h
►
GocadIO
►
Legacy
►
SWMM
►
XmlIO
CsvInterface.cpp
►
CsvInterface.h
►
GMSInterface.cpp
►
GMSInterface.h
►
PetrelInterface.cpp
►
PetrelInterface.h
►
readGeometryFromFile.cpp
►
readGeometryFromFile.h
SHPInterface.cpp
►
SHPInterface.h
►
TetGenInterface.cpp
►
TetGenInterface.h
►
writeGeometryToFile.cpp
►
writeGeometryToFile.h
►
InSituLib
►
Python
►
Utils
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
GMSHPoint.cpp
Go to the documentation of this file.
1
12
#include "
GMSHPoint.h
"
13
14
#include <cmath>
15
#include <limits>
16
17
namespace
FileIO
18
{
19
namespace
GMSH
20
{
21
GMSHPoint::GMSHPoint
(
GeoLib::Point
const
& pnt, std::size_t
id
,
22
double
mesh_density)
23
:
GeoLib
::Point(pnt, id), _mesh_density(mesh_density)
24
{
25
}
21
GMSHPoint::GMSHPoint
(
GeoLib::Point
const
& pnt, std::size_t
id
, {
…
}
26
27
void
GMSHPoint::write
(std::ostream& os)
const
28
{
29
os <<
"Point("
<<
getID
() <<
") = {"
<< (*this)[0] <<
", "
<< (*this)[1]
30
<<
", "
<< (*this)[2];
31
if
(fabs(
_mesh_density
) > std::numeric_limits<double>::epsilon())
32
{
33
os <<
", "
<<
_mesh_density
<<
"};"
;
34
}
35
else
36
{
37
os <<
"};"
;
38
}
39
}
27
void
GMSHPoint::write
(std::ostream& os)
const
{
…
}
40
41
std::ostream&
operator<<
(std::ostream& os,
GMSHPoint
const
& p)
42
{
43
p.write(os);
44
return
os;
45
}
41
std::ostream&
operator<<
(std::ostream& os,
GMSHPoint
const
& p) {
…
}
46
47
}
// end namespace GMSH
48
}
// end namespace FileIO
GMSHPoint.h
FileIO::GMSH::GMSHPoint
Definition
GMSHPoint.h:22
FileIO::GMSH::GMSHPoint::GMSHPoint
GMSHPoint(GeoLib::Point const &pnt, std::size_t id, double mesh_density)
Definition
GMSHPoint.cpp:21
FileIO::GMSH::GMSHPoint::_mesh_density
double _mesh_density
Definition
GMSHPoint.h:28
FileIO::GMSH::GMSHPoint::write
void write(std::ostream &os) const
Definition
GMSHPoint.cpp:27
GeoLib::Point
Definition
Point.h:31
MathLib::Point3dWithID::getID
std::size_t getID() const
Definition
Point3dWithID.h:62
FileIO::GMSH::operator<<
static std::ostream & operator<<(std::ostream &os, std::vector< GMSHPoint * > const &points)
Definition
GMSHInterface.cpp:37
FileIO
Definition
SHPImportDialog.h:19
GeoLib
Definition
ProjectData.h:36
Applications
FileIO
Gmsh
GMSHPoint.cpp
Generated by
1.11.0