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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
77dfbdaa
Commit
77dfbdaa
authored
Nov 07, 2011
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modif rendu
parent
a99355d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
Apps/Tuto/tuto1.cpp
Apps/Tuto/tuto1.cpp
+2
-1
include/Topology/generic/functor.h
include/Topology/generic/functor.h
+12
-0
include/Topology/generic/genericmap.h
include/Topology/generic/genericmap.h
+1
-0
src/Topology/map/map2.cpp
src/Topology/map/map2.cpp
+2
-2
No files found.
Apps/Tuto/tuto1.cpp
View file @
77dfbdaa
...
...
@@ -168,7 +168,8 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
// SelectorTrue allDarts;
SelectorNoBoundary
<
PFP
::
MAP
>
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
include/Topology/generic/functor.h
View file @
77dfbdaa
...
...
@@ -76,6 +76,18 @@ public:
bool
operator
()(
Dart
)
const
{
return
false
;
}
};
template
<
typename
MAP
>
class
SelectorNoBoundary
:
public
FunctorSelect
{
public:
protected:
MAP
&
m_map
;
public:
SelectorNoBoundary
(
MAP
&
m
)
:
m_map
(
m
)
{}
bool
operator
()(
Dart
d
)
const
{
return
!
m_map
.
isBoundaryMarked
(
d
);
}
};
// Counting Functors : increment its value every time it is applied
/********************************************************/
...
...
include/Topology/generic/genericmap.h
View file @
77dfbdaa
...
...
@@ -437,6 +437,7 @@ protected:
* clear all boundary markers
*/
void
boundaryUnmarkAll
();
}
;
...
...
src/Topology/map/map2.cpp
View file @
77dfbdaa
...
...
@@ -35,8 +35,8 @@ void Map2::mergeBoundaryFaces(Dart dd, Dart ee)
{
if
(
ee
!=
phi_1
(
dd
))
phi1sew
(
ee
,
phi_1
(
dd
))
;
if
(
ee
!=
phi_1
(
dd
))
phi1sew
(
ee
,
phi_1
(
dd
))
;
if
(
dd
!=
phi_1
(
ee
))
phi1sew
(
dd
,
phi_1
(
ee
))
;
Map1
::
deleteOrientedFace
(
dd
)
;
}
...
...
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