Dimensions and Straightline bSplines

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Dimensions and Straightline bSplines

Post by wandererfan »

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.
straight spline in v0.17
straight spline in v0.17
straightSplines017.png (40.11 KiB) Viewed 658 times
straight spline in v0.18
straight spline in v0.18
conetopDim018.png (16.77 KiB) Viewed 658 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Dimensions and Straightline bSplines

Post by NormandC »

This will be extremely useful, thank you.
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Dimensions and Straightline bSplines

Post by wmayer »

Starting with git commit cc320aa802 straight bSpline are treated as lines for dimensioning purposes.
A straight B-spline doesn't necessarily have a degree of only 1. It can also be higher.

Code: Select all

bs=Part.BSplineCurve()
bs.getPoles()
bs.Degree
bs.increaseDegree(25)
bs.Degree
bs.getPoles()
Part.show(bs.toShape())
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Dimensions and Straightline bSplines

Post by wandererfan »

wmayer wrote: Thu Oct 04, 2018 9:27 am A straight B-spline doesn't necessarily have a degree of only 1. It can also be higher.
Good to know, thanks. So far the most troublesome ones from the HLR algos have been degree = 1. Will have to upgrade the test to include higher degrees.
Post Reply