Commit b1aa3b8e authored by artificiel's avatar artificiel
Browse files

ClusterMesh: debut de passage au vboMesh

parent dd53beba
......@@ -34,10 +34,10 @@ class ClusterMesh
{
public:
bool fresh = true;
shared_ptr<ofMesh> mesh;
shared_ptr<ofVboMesh> mesh;
ofConePrimitive cone;
Eigen::Vector2f direction;
ofMesh centroid_mesh_;
ofVboMesh 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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment