Warping mesh points with mouse and keyboard.
You can do it by code, of course.
See example
You can select/deselect point(s) by clicking on the point or making rectangle including the points.
With shift key pressed, additive.
With command key pressed, alternative.
You can move points' position by dragging on a selected point.
With option key pressed, texcoord will be moved instead.
With shift key pressed, points move according axis.
You can also move by arrow keys.
You can edit points' alpha by scrolling Y-axis.
Each point has a property of nodal or not.
By clicking on a point with option key pressed, you can switch it.
If a point is nodal, you can control its position or texcoord directly.
If a point is not nodal, you cannot but it will be controled by mood.
Click on a line to divide mesh.
With option key pressed, reduce.
warning
Dividing mesh allocates memory for new points but reducing doesn't free them.
So if you call divide/reduce many times, you may need to call ofxMeshWarp::gc()
on reasonable time.
See example
- Mac OSX 10.12.2
- oF 0.9.8
- Xcode 8.3.3
MIT license.