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
KennethVanhoey
CGoGN
Commits
968b9c54
Commit
968b9c54
authored
Jul 02, 2014
by
Kenneth Vanhoey
Browse files
moving some lightfield import functions out of CGoGN
parent
e1d0f43b
Changes
2
Show whitespace changes
Inline
Side-by-side
include/Algo/Import/import2tablesSurface.hpp
View file @
968b9c54
...
@@ -71,18 +71,6 @@ bool MeshTablesSurface<PFP>::importMesh(const std::string& filename, std::vector
...
@@ -71,18 +71,6 @@ bool MeshTablesSurface<PFP>::importMesh(const std::string& filename, std::vector
CGoGNout
<<
"TYPE: PLY"
<<
CGoGNendl
;
CGoGNout
<<
"TYPE: PLY"
<<
CGoGNendl
;
return
importPly
(
filename
,
attrNames
);
return
importPly
(
filename
,
attrNames
);
break
;
break
;
/* case PLYPTM:
CGoGNout << "TYPE: PLYPTM" << CGoGNendl;
return importPlyPTM(filename, attrNames);
break;
*/
case
PLYSLFgeneric
:
CGoGNout
<<
"TYPE: PLYSLFgeneric"
<<
CGoGNendl
;
return
importPlySLFgeneric
(
filename
,
attrNames
);
break
;
case
PLYSLFgenericBin
:
CGoGNout
<<
"TYPE: PLYSLFgenericBin"
<<
CGoGNendl
;
return
importPlySLFgenericBin
(
filename
,
attrNames
);
break
;
case
OBJ
:
case
OBJ
:
CGoGNout
<<
"TYPE: OBJ"
<<
CGoGNendl
;
CGoGNout
<<
"TYPE: OBJ"
<<
CGoGNendl
;
return
importObj
(
filename
,
attrNames
);
return
importObj
(
filename
,
attrNames
);
...
@@ -770,7 +758,7 @@ bool MeshTablesSurface<PFP>::importPlySLFgeneric(const std::string& filename, st
...
@@ -770,7 +758,7 @@ bool MeshTablesSurface<PFP>::importPlySLFgeneric(const std::string& filename, st
// Define containers
// Define containers
VertexAttribute
<
VEC3
,
MAP_IMPL
>
positions
=
m_map
.
template
getAttribute
<
VEC3
,
VERTEX
>(
"position"
)
;
VertexAttribute
<
VEC3
,
MAP_IMPL
>
positions
=
m_map
.
template
getAttribute
<
VEC3
,
VERTEX
>(
"position"
)
;
;
if
(
!
positions
.
isValid
())
if
(
!
positions
.
isValid
())
positions
=
m_map
.
template
addAttribute
<
VEC3
,
VERTEX
>(
"position"
)
;
positions
=
m_map
.
template
addAttribute
<
VEC3
,
VERTEX
>(
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
attrNames
.
push_back
(
positions
.
name
())
;
...
...
include/Algo/Import/importFileTypes.h
View file @
968b9c54
...
@@ -48,15 +48,6 @@ namespace Import
...
@@ -48,15 +48,6 @@ namespace Import
if
((
filename
.
rfind
(
".meshbin"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".MESHBIN"
)
!=
std
::
string
::
npos
))
if
((
filename
.
rfind
(
".meshbin"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".MESHBIN"
)
!=
std
::
string
::
npos
))
return
MESHBIN
;
return
MESHBIN
;
/* if ((filename.rfind(".plyptm")!=std::string::npos) || (filename.rfind(".PLYGEN")!=std::string::npos))
return PLYPTM;
*/
if
((
filename
.
rfind
(
".plyPTMextBin"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".plySHrealBin"
)
!=
std
::
string
::
npos
))
return
PLYSLFgenericBin
;
if
((
filename
.
rfind
(
".plyPTMext"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".plySHreal"
)
!=
std
::
string
::
npos
))
return
PLYSLFgeneric
;
if
((
filename
.
rfind
(
".ply"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".PLY"
)
!=
std
::
string
::
npos
))
if
((
filename
.
rfind
(
".ply"
)
!=
std
::
string
::
npos
)
||
(
filename
.
rfind
(
".PLY"
)
!=
std
::
string
::
npos
))
return
PLY
;
return
PLY
;
...
...
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