29 float polyOffset = 0.0f;
30 float boxHeight = 6.0f;
31 float boxDescent = 1.0f;
33 static constexpr int MAX_PTS = 12;
38 std::vector<float> points;
39 [[nodiscard]]
int numPoints()
const {
return static_cast<int>(points.size()) / 3; }
43 void init(
Sample* sample)
override { this->sample = sample; }
54 void onClick(
const float* s,
const float* p,
bool shift)
override;
@ SAMPLE_POLYAREA_GRASS
Definition Sample.h:58
SampleToolType
Tool types.
Definition Sample.h:33