Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
216ad474
Commit
216ad474
authored
Jul 19, 2011
by
Kenneth Vanhoey
Browse files
correction : export frame dans exportPlyPTMgeneric
parent
7845e0e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Algo/Export/export.hpp
View file @
216ad474
...
...
@@ -259,7 +259,7 @@ bool exportPlyPTMgeneric(typename PFP::MAP& map, const char* filename, const typ
std
::
ofstream
out
(
filename
,
std
::
ios
::
out
)
;
if
(
!
out
.
good
())
{
CGoGNerr
<<
"Unable to open file "
<<
CGoGNendl
;
CGoGNerr
<<
"Unable to open file "
<<
filename
<<
CGoGNendl
;
return
false
;
}
...
...
@@ -345,7 +345,7 @@ bool exportPlyPTMgeneric(typename PFP::MAP& map, const char* filename, const typ
TREAL
errL2
=
map
.
template
getAttribute
<
REAL
>(
VERTEX
,
"errL2"
)
;
TREAL
errLmax
=
map
.
template
getAttribute
<
REAL
>(
VERTEX
,
"errLmax"
)
;
TREAL
stdDev
=
map
.
template
getAttribute
<
REAL
>(
VERTEX
,
"
S
tdDev"
)
;
TREAL
stdDev
=
map
.
template
getAttribute
<
REAL
>(
VERTEX
,
"
s
tdDev"
)
;
if
(
errL2
.
isValid
())
out
<<
"property float errL2"
<<
std
::
endl
;
if
(
errLmax
.
isValid
())
...
...
@@ -360,15 +360,19 @@ bool exportPlyPTMgeneric(typename PFP::MAP& map, const char* filename, const typ
for
(
unsigned
int
i
=
0
;
i
<
vertices
.
size
();
++
i
)
{
unsigned
int
vi
=
vertices
[
i
];
for
(
unsigned
int
coord
=
0
;
coord
<
3
;
++
coord
)
// position
// position
for
(
unsigned
int
coord
=
0
;
coord
<
3
;
++
coord
)
out
<<
position
[
vi
][
coord
]
<<
" "
;
for
(
unsigned
int
coord
=
0
;
coord
<
3
;
++
coord
)
// frame
for
(
unsigned
int
axis
=
0
;
axis
<
3
;
++
axis
)
// frame
for
(
unsigned
int
axis
=
0
;
axis
<
3
;
++
axis
)
for
(
unsigned
int
coord
=
0
;
coord
<
3
;
++
coord
)
out
<<
frame
[
axis
][
vi
][
coord
]
<<
" "
;
for
(
unsigned
int
channel
=
0
;
channel
<
3
;
++
channel
)
// coefficients
// coefficients
for
(
unsigned
int
channel
=
0
;
channel
<
3
;
++
channel
)
for
(
unsigned
int
coefI
=
0
;
coefI
<
nbCoefs
;
++
coefI
)
out
<<
colorPTM
[
coefI
][
vi
][
channel
]
<<
" "
;
if
(
errL2
.
isValid
())
// fitting errors (if any)
// fitting errors (if any)
if
(
errL2
.
isValid
())
out
<<
errL2
[
vi
]
<<
" "
;
if
(
errLmax
.
isValid
())
out
<<
errLmax
[
vi
]
<<
" "
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment