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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Etienne Schmitt
CGoGN
Commits
e17b71cb
Commit
e17b71cb
authored
Feb 21, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import MRDAT add comments
parent
3dd929f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
include/Algo/Import/importMRDAT.hpp
include/Algo/Import/importMRDAT.hpp
+19
-1
No files found.
include/Algo/Import/importMRDAT.hpp
View file @
e17b71cb
...
...
@@ -77,7 +77,8 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
oss
>>
s
;
oss
>>
depth
;
}
std
::
cout
<<
"MR depth -> "
<<
depth
<<
std
::
endl
;
std
::
cout
<<
" MR depth -> "
<<
depth
<<
std
::
endl
;
// read vertices
nextNonEmptyLine
(
fp
,
line
)
;
...
...
@@ -88,6 +89,8 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
return
false
;
}
std
::
cout
<<
" Read vertices.."
<<
std
::
flush
;
std
::
vector
<
unsigned
int
>
verticesID
;
nextNonEmptyLine
(
fp
,
line
)
;
...
...
@@ -111,6 +114,9 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
nextNonEmptyLine
(
fp
,
line
)
;
}
std
::
cout
<<
"..done"
<<
std
::
endl
;
std
::
cout
<<
" Read triangles (build quadtree).."
<<
std
::
flush
;
QuadTree
<
PFP
>
qt
;
QuadTreeNode
<
PFP
>*
current
=
NULL
;
unsigned
int
prevNum
=
-
1
;
...
...
@@ -170,8 +176,12 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
nextNonEmptyLine
(
fp
,
line
)
;
}
std
::
cout
<<
"..done"
<<
std
::
endl
;
fp
.
close
()
;
std
::
cout
<<
" Create base level mesh.."
<<
std
::
flush
;
AutoAttributeHandler
<
NoMathIONameAttribute
<
std
::
vector
<
Dart
>
>
>
vecDartsPerVertex
(
map
,
VERTEX
,
"incidents"
)
;
DartMarkerNoUnmark
m
(
map
)
;
...
...
@@ -233,9 +243,15 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
return
false
;
}
std
::
cout
<<
"..done"
<<
std
::
endl
;
std
::
cout
<<
" Create finer resolution levels.."
<<
std
::
flush
;
for
(
unsigned
int
i
=
0
;
i
<
depth
;
++
i
)
map
.
addNewLevel
(
false
)
;
std
::
cout
<<
"..done"
<<
std
::
endl
;
std
::
cout
<<
" Embed finer resolution levels.."
<<
std
::
flush
;
map
.
setCurrentLevel
(
0
)
;
qt
.
embed
(
map
,
verticesID
)
;
map
.
setCurrentLevel
(
map
.
getMaxLevel
())
;
...
...
@@ -258,6 +274,8 @@ bool importMRDAT(typename PFP::MAP& map, const std::string& filename, std::vecto
}
}
std
::
cout
<<
"..done"
<<
std
::
endl
;
return
true
;
}
...
...
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