Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
baa0cb37
Commit
baa0cb37
authored
Mar 03, 2011
by
Kenneth Vanhoey
Browse files
frame rendering update
parent
49e7e333
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/Algo/Render/map_glRender.h
View file @
baa0cb37
...
...
@@ -71,7 +71,7 @@ void renderNormalVertices(typename PFP::MAP& the_map,
template
<
typename
PFP
>
void
renderFrameVertices
(
typename
PFP
::
MAP
&
the_map
,
const
typename
PFP
::
TVEC3
&
position
,
const
typename
PFP
::
T
MAT33
&
frame
s
,
float
scale
,
const
FunctorSelect
&
good
=
SelectorTrue
());
const
typename
PFP
::
TVEC3
&
position
,
const
typename
PFP
::
T
VEC3
frame
[
3
]
,
float
scale
,
const
FunctorSelect
&
good
=
SelectorTrue
());
}
// namespace Direct
...
...
include/Algo/Render/map_glRender.hpp
View file @
baa0cb37
...
...
@@ -183,7 +183,7 @@ void renderNormalVertices(typename PFP::MAP& the_map, const typename PFP::TVEC3&
}
template
<
typename
PFP
>
void
renderFrameVertices
(
typename
PFP
::
MAP
&
the_map
,
const
typename
PFP
::
TVEC3
&
position
,
const
typename
PFP
::
T
MAT33
&
frame
,
float
scale
,
const
FunctorSelect
&
good
)
void
renderFrameVertices
(
typename
PFP
::
MAP
&
the_map
,
const
typename
PFP
::
TVEC3
&
position
,
const
typename
PFP
::
T
VEC3
frame
[
3
]
,
float
scale
,
const
FunctorSelect
&
good
)
{
FunctorGLFrame
<
PFP
>
fgl_frame
(
the_map
,
good
,
position
,
frame
,
scale
)
;
...
...
include/Algo/Render/renderFunctor.h
View file @
baa0cb37
...
...
@@ -255,7 +255,7 @@ protected:
/**
* frame of vertices
*/
const
typename
PFP
::
T
MAT33
&
m_frames
;
const
typename
PFP
::
T
VEC3
*
m_frames
;
/**
* Dart selector to restrict the rendering
...
...
@@ -269,7 +269,7 @@ public:
* @param good dart selector
*/
FunctorGLFrame
(
MAP
&
map
,
const
FunctorSelect
&
good
,
const
typename
PFP
::
TVEC3
&
posi
,
const
typename
PFP
::
T
MAT33
&
frames
,
float
scale
);
FunctorGLFrame
(
MAP
&
map
,
const
FunctorSelect
&
good
,
const
typename
PFP
::
TVEC3
&
posi
,
const
typename
PFP
::
T
VEC3
frames
[
3
]
,
float
scale
);
bool
operator
()
(
Dart
d
);
};
...
...
include/Algo/Render/renderFunctor.hpp
View file @
baa0cb37
...
...
@@ -362,7 +362,7 @@ bool FunctorGLNormal<PFP>::operator() (Dart d)
}
template
<
typename
PFP
>
FunctorGLFrame
<
PFP
>::
FunctorGLFrame
(
MAP
&
map
,
const
FunctorSelect
&
good
,
const
typename
PFP
::
TVEC3
&
posi
,
const
typename
PFP
::
T
MAT33
&
frames
,
float
scale
)
:
FunctorGLFrame
<
PFP
>::
FunctorGLFrame
(
MAP
&
map
,
const
FunctorSelect
&
good
,
const
typename
PFP
::
TVEC3
&
posi
,
const
typename
PFP
::
T
VEC3
frames
[
3
]
,
float
scale
)
:
FunctorMap
<
MAP
>
(
map
),
m_positions
(
posi
),
m_frames
(
frames
),
...
...
@@ -379,10 +379,9 @@ bool FunctorGLFrame<PFP>::operator() (Dart d)
typename
PFP
::
VEC3
p
=
m_positions
[
d
]
;
for
(
unsigned
int
i
=
0
;
i
<
3
;
++
i
)
{
glVertex3fv
(
p
.
data
());
typename
PFP
::
VEC3
q
,
vec
;
m_frames
[
d
].
getSubVectorH
(
i
,
0
,
vec
)
;
typename
PFP
::
VEC3
q
;
q
=
p
;
q
+=
m_scale
*
vec
;
q
+=
m_scale
*
m_frames
[
i
][
d
]
;
glVertex3fv
(
q
.
data
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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