Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hurstel
CGoGN
Commits
216ad474
Commit
216ad474
authored
Jul 19, 2011
by
Kenneth Vanhoey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction : export frame dans exportPlyPTMgeneric
parent
7845e0e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
include/Algo/Export/export.hpp
include/Algo/Export/export.hpp
+11
-7
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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