Expand description
Computation of offset curves of cubic Bรฉziers.
The main algorithm in this module is a new technique designed for robustness and speed. The details are involved; hopefully there will be a paper.
Structsยง
- Cubic
Offset ๐ - State used for computing an offset curve of a single cubic.
- ErrEval ๐
- Result of error evaluation
- Offset
Rec ๐ - State local to a subdivision
- Subdivision
Point ๐ - Result of subdivision
Constantsยง
- A_
WEIGHTS ๐ - BLEND ๐
- The proportion of transverse error that is blended in the least-squares logic.
- B_
WEIGHTS ๐ - CUSP_
EPSILON ๐ - MAX_
DEPTH ๐ - Maximum recursion depth.
- N_LSE ๐
- Number of points for least-squares fit and error evaluation.
Functionsยง
- mk_
a_ ๐weights - Compute Bรฉzier weights for evenly subdivided t values.
- offset_
cubic - Compute an approximate offset curve.