Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CGoGN
CGoGN
Commits
684efc08
Commit
684efc08
authored
Jan 31, 2011
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected some asserts
parent
e3b35f88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/Topology/generic/attributeHandler.h
include/Topology/generic/attributeHandler.h
+2
-2
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+3
-1
No files found.
include/Topology/generic/attributeHandler.h
View file @
684efc08
...
...
@@ -35,7 +35,7 @@ namespace CGoGN
/**
* Class that create an access-table to an existing attribute
*
Permetting
operation are:
*
Main available
operation
s
are:
* - [ index ]
* - [ dart ]
* - begin / end / next to manage indexing
...
...
@@ -109,7 +109,7 @@ public:
* check if the attribute handler is linked to a valid attribute
* -> MUST BE USED AFTER A CALL TO :
* getAttribute(unsigned int orbit, const std::string& nameAttr)
* addAttribute(
unsigned int orbit, const std::string& nameAttr)
* addAttribute(unsigned int orbit, const std::string& nameAttr)
*/
bool
isValid
()
const
;
...
...
include/Topology/generic/genericmap.hpp
View file @
684efc08
...
...
@@ -223,6 +223,7 @@ inline void GenericMap::initCell(unsigned int orbit, unsigned int i)
template
<
typename
T
>
inline
AttribMultiVect
<
T
>&
GenericMap
::
getAttributeVector
(
unsigned
int
idAttr
)
{
assert
(
idAttr
!=
AttribContainer
::
UNKNOWN
)
;
return
m_attribs
[
AttribContainer
::
orbitAttr
(
idAttr
)].
getDataVector
<
T
>
(
AttribContainer
::
indexAttr
(
idAttr
))
;
}
...
...
@@ -234,12 +235,13 @@ inline AttribMultiVect<Mark>* GenericMap::getMarkerVector(unsigned int orbit)
inline
AttribMultiVectGen
&
GenericMap
::
getMultiVec
(
unsigned
int
idAttr
)
{
assert
(
idAttr
!=
AttribContainer
::
UNKNOWN
)
;
return
m_attribs
[
AttribContainer
::
orbitAttr
(
idAttr
)].
getVirtualDataVector
(
AttribContainer
::
indexAttr
(
idAttr
))
;
}
inline
AttribContainer
&
GenericMap
::
getAttributeContainer
(
unsigned
int
orbit
)
{
assert
(
isOrbitEmbedded
(
orbit
)
||
!
"Invalid parameter: orbit not embedded"
);
//
assert(isOrbitEmbedded(orbit) || !"Invalid parameter: orbit not embedded");
return
m_attribs
[
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