Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-29Curve Fitting: minor change to re-fitting methodCampbell Barton
Avoid calculating a new split-index when re-fitting. While checking if a knot can be removed, the index with the highest error can be used as a candidate to replace the knot (in the case it can't be removed).
2016-09-25Curve Fitting: 'offset' method used sign when it shouldn'tCampbell Barton
2016-09-25Curve Fitting: inline dot-product (avoid temp vector)Campbell Barton
2016-09-25Curve Fitting: de-duplicate cubic evaluationCampbell Barton
2016-08-05Curve Fitting: fix off by one errorCampbell Barton
In practice this wasn't likely to cause problems, but better fix.
2016-08-05Curve Fitting: sync with upstreamCampbell Barton
Correct accidental float use
2016-07-31Curve Fitting: circular fit could give NAN handlesCampbell Barton
Fitting lines that exactly double back on themselves could give NAN length handles.
2016-07-25Curve Fitting: Add alternate 'refit' methodCampbell Barton
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.
2016-06-13Curve Fitting: add high-quality flagCampbell Barton
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.
2016-06-12Curve Fitting: offset based fallback to calculate cubicsCampbell Barton
Add a new fallback method that uses offset distance from the curve to the line between both points, for freehand drawing it typically only fives minor improvements (1-3% fewer points), for curve dissolve the improvements are more noticeable.
2016-05-16Cleanup: simplify checks calculating tangentsCampbell Barton
2016-05-16Curve Fitting: correct circular tangent length calculationCampbell Barton
Method for scaling is still not perfect but quite close.
2016-05-08A "better" (?) fix for msvc silliness - used in one other place in all of ↵Joshua Leung
Blender
2016-05-08Fix compiling on MSVC - M_PI undefinedJoshua Leung
2016-05-07Clamp dot-product to avoid precision errorCampbell Barton
Would only happen in degenerate cases.
2016-05-07Cleanup: whicespaceCampbell Barton
2016-05-07Curve Fitting: better fallback when least-square solution failsCampbell Barton
Take curvature into account when calculating handle length. Gives significantly better results for curve dissolve and 10-20% more efficient freehand drawing.
2016-05-07Fix error copying cubic dataCampbell Barton
2016-05-05Curve Fitting: avoid clamping fallback handles.Campbell Barton
2016-05-02Curve Fitting: expose function for fitting a single curveCampbell Barton
2016-04-30Slight adjustment to curve fitting tangentsCampbell Barton
Don't let the point spacing give bias to a side.
2016-04-15New freehand curve drawing toolCampbell Barton
- 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.
2016-04-15Add lib for n-dimensional cubic curve fittingCampbell Barton
This will be used for calculating bezier curves from freehand drawing, may be used for other areas too. Original code from GraphicsGems, 1990 (FitCurve.c), with updates from OpenToonz, under 3 clause BSD license. with own minor modifications for integration with Blender: - support adding extra custom-data. - improved handle clamping.