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
David Cazier
CGoGN
Commits
e446d582
Commit
e446d582
authored
Mar 12, 2012
by
Kenneth Vanhoey
Browse files
binary import/export for SLF
parent
bc185e45
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Algo/Import/import2tablesSurface.hpp
View file @
e446d582
...
@@ -813,10 +813,12 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
...
@@ -813,10 +813,12 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
fp
.
read
(
headerTab
,
CHNum
)
;
fp
.
read
(
headerTab
,
CHNum
)
;
std
::
stringstream
header
(
headerTab
)
;
std
::
stringstream
header
(
headerTab
)
;
std
::
cout
<<
header
.
str
()
<<
std
::
endl
;
// Read quantities : #vertices, #faces, #properties, degree of polynomials
// Read quantities : #vertices, #faces, #properties, degree of polynomials
std
::
string
tag
;
std
::
string
tag
;
header
>>
tag
;
header
>>
tag
;
if
(
tag
!=
std
::
string
(
"ply"
))
// verify file type
if
(
tag
!=
std
::
string
(
"ply"
))
// verify file type
{
{
CGoGNerr
<<
filename
<<
" is not a ply file !"
<<
CGoGNout
;
CGoGNerr
<<
filename
<<
" is not a ply file !"
<<
CGoGNout
;
...
@@ -864,8 +866,6 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
...
@@ -864,8 +866,6 @@ bool MeshTablesSurface<PFP>::importPlySLFgenericBin(const std::string& filename,
header
>>
tag
;
header
>>
tag
;
}
while
(
tag
!=
std
::
string
(
"end_header"
))
;
}
while
(
tag
!=
std
::
string
(
"end_header"
))
;
std
::
cout
<<
header
.
str
()
<<
std
::
endl
;
/*
/*
// Define containers
// Define containers
AttributeHandler<typename PFP::VEC3> positions = m_map.template getAttribute<typename PFP::VEC3>(VERTEX, "position") ;
AttributeHandler<typename PFP::VEC3> positions = m_map.template getAttribute<typename PFP::VEC3>(VERTEX, "position") ;
...
...
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