As you may know the OCC HLR algorithms delight in returning bSplines even if the edge is actually a straight line or a circle.
Starting with git commit cc320aa802 straight bSpline are treated as lines for dimensioning purposes.
Dimensions and Straightline bSplines
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Dimensions and Straightline bSplines
This will be extremely useful, thank you.
Re: Dimensions and Straightline bSplines
A straight B-spline doesn't necessarily have a degree of only 1. It can also be higher.Starting with git commit cc320aa802 straight bSpline are treated as lines for dimensioning purposes.
Code: Select all
bs=Part.BSplineCurve()
bs.getPoles()
bs.Degree
bs.increaseDegree(25)
bs.Degree
bs.getPoles()
Part.show(bs.toShape())
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact: