Age | Commit message (Collapse) | Author |
|
Use common prefix so adding related functions share the prefix.
|
|
- When returning the number of items in a collection use BLI_*_len()
- Keep _size() for size in bytes.
- Keep _count() for data structures that don't store length
(hint this isn't a simple getter).
See P611 to apply instead of manually resolving conflicts.
|
|
Bezier curves should have v-points zero'd.
|
|
|
|
|
|
Re-fitting makes better use of more samples.
|
|
|
|
|
|
This is an alternative method for fitting a curve which incrementally simplifies the curve, then re-fits.
Generally gives better results, also improves corner detection.
|
|
When this flag is set - even when the curve error is under the threshold,
keep attempting a better fit.
Enable this for freehand drawing, since it gives nicer results and isn't noticeably slower.
|
|
|
|
|
|
Offset used curve radius, which isn't useful drawing without any bevel radius.
|
|
Also remove doubles when filling the final array.
|
|
|
|
Adjusting the pressure wasn't re-adjusting the offset.
|
|
|
|
In this case the initial offset needs to be applied to the rest of the stroke.
|
|
- Access with Shift-LMB or from the 'Create' toolbar tab.
- Uses curve fitting for bezier curves, with error and corner angle options.
- Optional tablet pressure to curve radius mapping.
- Depth can use the cursor or optionally draw onto the surface,
for the entire stroke or using the stroke start.
- Stroke plane can optionally be perpendicular to, or aligned to the surface normal.
- Optional radius tapering and for start/end points.
- Supports operator redo and calling from Python.
|