Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ofxaddons
ofxCloudLib
Commits
fe7842af
Commit
fe7842af
authored
Dec 17, 2017
by
artificiel
Browse files
ClusterMesh: separation des curseurs ligne, centroide et cloud
parent
e6d9f4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ofxCloudLib/ClusterMesh.hpp
View file @
fe7842af
...
@@ -157,19 +157,21 @@ class ClusterMesh
...
@@ -157,19 +157,21 @@ class ClusterMesh
cone
.
setPosition
(
centroid
[
0
]
*
scale
,
centroid
[
1
]
*
scale
,
centroid
[
2
]
*
scale
);
cone
.
setPosition
(
centroid
[
0
]
*
scale
,
centroid
[
1
]
*
scale
,
centroid
[
2
]
*
scale
);
}
}
void
draw
(
bool
draw_centroid
=
true
,
bool
draw_colors
=
true
,
bool
draw_cursor
=
true
)
void
draw
(
bool
draw_centroid
=
true
,
bool
draw_colors
=
true
,
bool
draw_cursor
=
true
,
bool
draw_clouds
=
true
)
{
{
if
(
lostTime
<
GRAPPE_AU_DELA
)
{
if
(
lostTime
<
GRAPPE_AU_DELA
)
{
if
(
!
draw_colors
)
{
if
(
draw_clouds
)
{
mesh
->
disableColors
();
if
(
!
draw_colors
)
{
mesh
->
disableColors
();
}
mesh
->
drawVertices
();
}
}
mesh
->
drawVertices
();
if
(
draw_cursor
)
{
if
(
draw_cursor
)
{
ofDrawLine
(
centroid
[
0
],
0
,
centroid
[
2
],
centroid
[
0
],
20
,
centroid
[
2
]);
ofDrawLine
(
centroid
[
0
],
0
,
centroid
[
2
],
centroid
[
0
],
20
,
centroid
[
2
]);
}
}
if
(
draw_centroid
)
{
if
(
draw_centroid
)
{
centroid_mesh_
.
drawWireframe
();
centroid_mesh_
.
drawWireframe
();
}
}
...
...
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