Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
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
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
b
d
e
f
h
i
l
m
n
o
p
s
t
v
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
n
o
p
s
t
u
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
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
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
d
e
f
h
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
meshFromOFF.cpp
Go to the documentation of this file.
1
16
29
30
40
41
43
44
46
#include "DGtal/io/readers/MeshReader.h"
48
49
#include "DGtal/io/Display3D.h"
50
#include "DGtal/io/viewers/PolyscopeViewer.h"
51
52
#include "DGtal/base/Common.h"
53
#include "DGtal/io/Color.h"
54
#include "ConfigExamples.h"
56
using namespace
std
;
57
using namespace
DGtal
;
59
60
int
main
(
int
argc,
char
** argv )
61
{
62
PolyscopeViewer<>
viewer;
63
std::string inputFilename = examplesPath +
"samples/tref.off"
;
64
// Since the input points are not necessary integers we use the PointD3D from Display3D.
65
Mesh<Viewer3D<>::RealPoint
> anImportedMesh;
66
anImportedMesh << inputFilename;
68
trace
.info()<<
"importating done..."
<< endl;
70
viewer << anImportedMesh;
73
viewer.
show
();
74
return
0;
75
}
60
int
main
(
int
argc,
char
** argv ) {
…
}
76
DGtal::Mesh
Aim: This class is defined to represent a surface mesh through a set of vertices and faces....
Definition
Mesh.h:92
DGtal::PolyscopeViewer
Definition
PolyscopeViewer.h:52
DGtal::PolyscopeViewer::show
void show() override
Starts the event loop and display of elements.
Definition
PolyscopeViewer.h:68
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::trace
Trace trace
std
STL namespace.
main
int main()
Definition
testBits.cpp:56
examples
io
meshFromOFF.cpp
Generated on
for DGtal by
1.14.0