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
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
David Cazier
CGoGN
Commits
01a2ded0
Commit
01a2ded0
authored
Jan 30, 2011
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug getContainer a faire apres Handler sinon
assert orbit not embedded
parent
b52d52d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
include/Algo/Import/import2tablesSurface.hpp
include/Algo/Import/import2tablesSurface.hpp
+14
-7
No files found.
include/Algo/Import/import2tablesSurface.hpp
View file @
01a2ded0
...
...
@@ -116,10 +116,11 @@ bool MeshTablesSurface<PFP>::importMesh(const std::string& filename, std::vector
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importTrian
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
// open file
std
::
ifstream
fp
(
filename
.
c_str
(),
std
::
ios
::
in
);
if
(
!
fp
.
good
())
...
...
@@ -178,10 +179,11 @@ bool MeshTablesSurface<PFP>::importTrian(const std::string& filename, std::vecto
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importTrianBinGz
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
// open file
igzstream
fs
(
filename
.
c_str
(),
std
::
ios
::
in
|
std
::
ios
::
binary
);
...
...
@@ -243,10 +245,11 @@ bool MeshTablesSurface<PFP>::importTrianBinGz(const std::string& filename, std::
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importOff
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
// open file
std
::
ifstream
fp
(
filename
.
c_str
(),
std
::
ios
::
in
);
if
(
!
fp
.
good
())
...
...
@@ -337,10 +340,11 @@ bool MeshTablesSurface<PFP>::importOff(const std::string& filename, std::vector<
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importObj
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
// open file
std
::
ifstream
fp
(
filename
.
c_str
(),
std
::
ios
::
binary
);
if
(
!
fp
.
good
())
...
...
@@ -455,10 +459,11 @@ bool MeshTablesSurface<PFP>::importObj(const std::string& filename, std::vector<
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importPly
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
PlyImportData
pid
;
if
(
!
pid
.
read_file
(
filename
)
)
...
...
@@ -505,7 +510,6 @@ bool MeshTablesSurface<PFP>::importPly(const std::string& filename, std::vector<
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importPlyPTM
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttributeHandler
<
typename
PFP
::
MATRIX33
>
Frame
=
m_map
.
template
addAttribute
<
typename
PFP
::
MATRIX33
>(
VERTEX_ORBIT
,
"Frame"
)
;
...
...
@@ -513,6 +517,8 @@ bool MeshTablesSurface<PFP>::importPlyPTM(const std::string& filename, std::vect
AttributeHandler
<
typename
PFP
::
MATRIX36
>
RGBfunctions
=
m_map
.
template
addAttribute
<
typename
PFP
::
MATRIX36
>(
VERTEX_ORBIT
,
"RGBfunctions"
)
;
attrNames
.
push_back
(
RGBfunctions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
std
::
ifstream
fp
(
filename
.
c_str
(),
std
::
ios
::
binary
);
if
(
!
fp
.
good
())
{
...
...
@@ -612,10 +618,11 @@ bool MeshTablesSurface<PFP>::importPlyPTM(const std::string& filename, std::vect
template
<
typename
PFP
>
bool
MeshTablesSurface
<
PFP
>::
importCTM
(
const
std
::
string
&
filename
,
std
::
vector
<
std
::
string
>&
attrNames
)
{
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
AttributeHandler
<
typename
PFP
::
VEC3
>
positions
=
m_map
.
template
addAttribute
<
typename
PFP
::
VEC3
>(
VERTEX_ORBIT
,
"position"
)
;
attrNames
.
push_back
(
positions
.
name
())
;
AttribContainer
&
container
=
m_map
.
getAttributeContainer
(
VERTEX_CELL
)
;
// Load the file using the OpenCTM API
CTMimporter
ctm
;
// Load the file
...
...
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