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
KennethVanhoey
CGoGN
Commits
09aaaf4e
Commit
09aaaf4e
authored
Dec 03, 2014
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve bug of leaving markers after removing darts
parent
51206dcd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
1 deletion
+36
-1
include/Container/attributeContainer.h
include/Container/attributeContainer.h
+5
-0
include/Container/attributeContainer.hpp
include/Container/attributeContainer.hpp
+10
-0
include/Container/attributeMultiVector.h
include/Container/attributeMultiVector.h
+4
-0
include/Container/attributeMultiVector.hpp
include/Container/attributeMultiVector.hpp
+5
-0
include/Container/attributeMultiVectorBool.hpp
include/Container/attributeMultiVectorBool.hpp
+6
-0
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+6
-1
No files found.
include/Container/attributeContainer.h
View file @
09aaaf4e
...
...
@@ -378,6 +378,11 @@ public:
*/
void
initLine
(
unsigned
int
index
);
/**
* initialize all markers of a line of the container
*/
void
initMarkersOfLine
(
unsigned
int
index
);
/**
* copy the content of line src in line dst
*/
...
...
include/Container/attributeContainer.hpp
View file @
09aaaf4e
...
...
@@ -338,6 +338,16 @@ inline void AttributeContainer::initLine(unsigned int index)
}
}
inline
void
AttributeContainer
::
initMarkersOfLine
(
unsigned
int
index
)
{
for
(
unsigned
int
i
=
0
;
i
<
m_tableAttribs
.
size
();
++
i
)
{
if
((
m_tableAttribs
[
i
]
!=
NULL
)
&&
(
m_tableAttribs
[
i
]
->
isMarkerBool
()))
m_tableAttribs
[
i
]
->
initElt
(
index
);
}
}
inline
void
AttributeContainer
::
copyLine
(
unsigned
int
dstIndex
,
unsigned
int
srcIndex
)
{
for
(
unsigned
int
i
=
0
;
i
<
m_tableAttribs
.
size
();
++
i
)
...
...
include/Container/attributeMultiVector.h
View file @
09aaaf4e
...
...
@@ -195,6 +195,8 @@ public:
* @param fs filestream
*/
virtual
void
dump
(
unsigned
int
i
)
const
=
0
;
virtual
bool
isMarkerBool
()
=
0
;
};
...
...
@@ -322,6 +324,8 @@ public:
*/
virtual
void
dump
(
unsigned
int
i
)
const
;
inline
bool
isMarkerBool
();
};
}
// namespace CGoGN
...
...
include/Container/attributeMultiVector.hpp
View file @
09aaaf4e
...
...
@@ -418,6 +418,11 @@ void AttributeMultiVector<T>::dump(unsigned int i) const
CGoGNout
<<
this
->
operator
[](
i
);
}
template
<
typename
T
>
inline
bool
AttributeMultiVector
<
T
>::
isMarkerBool
()
{
return
false
;
}
template
<
typename
T
>
inline
void
AttributeMultiVector
<
T
>::
setTypeCode
()
...
...
include/Container/attributeMultiVectorBool.hpp
View file @
09aaaf4e
...
...
@@ -400,6 +400,12 @@ public:
{
CGoGNout
<<
this
->
operator
[](
i
);
}
inline
bool
isMarkerBool
()
{
return
true
;
}
};
...
...
include/Topology/generic/genericmap.hpp
View file @
09aaaf4e
...
...
@@ -142,6 +142,7 @@ inline void GenericMap::releaseUIntBuffer(std::vector<unsigned int>* vui) const
inline
Dart
GenericMap
::
newDart
()
{
unsigned
int
di
=
m_attribs
[
DART
].
insertLine
();
// insert a new dart line
m_attribs
[
DART
].
initMarkersOfLine
(
di
);
for
(
unsigned
int
i
=
0
;
i
<
NB_ORBITS
;
++
i
)
{
if
(
m_embeddings
[
i
])
// set all its embeddings
...
...
@@ -206,7 +207,11 @@ template <unsigned int ORBIT>
inline
unsigned
int
GenericMap
::
newCell
()
{
assert
(
isOrbitEmbedded
<
ORBIT
>
()
||
!
"Invalid parameter: orbit not embedded"
);
return
m_attribs
[
ORBIT
].
insertLine
();
unsigned
int
c
=
m_attribs
[
ORBIT
].
insertLine
();
m_attribs
[
ORBIT
].
initMarkersOfLine
(
c
);
return
c
;
// return m_attribs[ORBIT].insertLine();
}
template
<
unsigned
int
ORBIT
>
...
...
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