Commit 223350f2 authored by alexandre burton's avatar alexandre burton
Browse files

CropFilter: pizzabox au sol

parent 4472954a
......@@ -66,7 +66,7 @@ class CropFilter
index_ = i;
result_.reset(new pcl::PointCloud<pcl::PointXYZ>);
color_.setHsb((i / 16.0) * 255, 255, 128, 100);
color_.setHsb((i / 8.0) * 255, 255, 215, 255);
}
void setup()
......@@ -119,8 +119,14 @@ class CropFilter
}
if (parameters_.state_) {
ofSetColor(color_);
ofDrawBox(parameters_.pos_, size.x, .01, size.z);
} else {
auto c = color_;
c.a = 128;
ofSetColor(color_);
}
ofDrawBox(parameters_.pos_->x,0,parameters_.pos_->z, size.x, .01, size.z);
} else {
ofSetColor(200, 200, 200, 128);
......@@ -335,4 +341,4 @@ class FilterManager
ofxOscSender *sender_;
};
}
#endif // CLOUDLIB_CROPFILTER_HPP_
\ No newline at end of file
#endif // CLOUDLIB_CROPFILTER_HPP_
Supports Markdown
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