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
b1aa3b8e
Commit
b1aa3b8e
authored
Dec 07, 2017
by
artificiel
Browse files
ClusterMesh: debut de passage au vboMesh
parent
dd53beba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ofxCloudLib/ClusterMesh.hpp
View file @
b1aa3b8e
...
...
@@ -34,10 +34,10 @@ class ClusterMesh
{
public:
bool
fresh
=
true
;
shared_ptr
<
ofMesh
>
mesh
;
shared_ptr
<
of
Vbo
Mesh
>
mesh
;
ofConePrimitive
cone
;
Eigen
::
Vector2f
direction
;
ofMesh
centroid_mesh_
;
of
Vbo
Mesh
centroid_mesh_
;
float
distance_
;
Eigen
::
Vector4f
centroid
;
...
...
@@ -113,7 +113,8 @@ class ClusterMesh
}
mesh
.
reset
(
new
ofMesh
);
mesh
=
make_shared
<
ofVboMesh
>
();
// mesh.reset(new ofMesh);
for
(
unsigned
int
qq
=
0
;
qq
<
smartCloud
->
cloud
->
points
.
size
();
qq
++
)
{
mesh
->
addVertex
(
ofPoint
(
smartCloud
->
cloud
->
points
[
qq
].
x
*
scale
,
smartCloud
->
cloud
->
points
[
qq
].
y
*
scale
,
...
...
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