[new feature] Sketcher basic BSpline support
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
[new feature] Sketcher basic BSpline support
A basic BSpline support for the Sketcher has just been merged into master.
Now you can create a BSpline in the sketcher:
The construction circles represent the poles (also known as control points), the center is the position of the pole and the radius is the weight of the pole. Pole position and weight allows for coarse, finer control over the BSpline.
Periodic closed BSplines are also supported: While the constraint support on the curve of the BSpline is very limited, endpoint tangency is supported (also endpoint perpendicular): Enjoy it!!
EDIT: You can create them by using this new icons in the toolbar:
Now you can create a BSpline in the sketcher:
The construction circles represent the poles (also known as control points), the center is the position of the pole and the radius is the weight of the pole. Pole position and weight allows for coarse, finer control over the BSpline.
Periodic closed BSplines are also supported: While the constraint support on the curve of the BSpline is very limited, endpoint tangency is supported (also endpoint perpendicular): Enjoy it!!
EDIT: You can create them by using this new icons in the toolbar:
Re: [new feature] Sketcher basic BSpline support
Well done Abdulla! This is something that has been asked for many times over the years. Sketcher gets Bspline support on the same day I got a new pet goat, who is now living with our pet cowies.....One of the advantages of living in the bush, you can have cool pets!
Jim
Jim
Re: [new feature] Sketcher basic BSpline support
Thanks! This is very cool.
Is this supposed to work with the "create an edge linked to external geometry" tool, to add external splines to the sketch? or is this not yet implemented?
I want to create geometries based on external splines (using the fixing point to object constraint), and this could be very helpful.
Is this supposed to work with the "create an edge linked to external geometry" tool, to add external splines to the sketch? or is this not yet implemented?
I want to create geometries based on external splines (using the fixing point to object constraint), and this could be very helpful.
Re: [new feature] Sketcher basic BSpline support
It is not supported yet
I support this demand.
I think that the control points of the BSpline which is the result of the projection of another BSpline are the projections of the control points of the projected BSpline so it shouldn't be too difficult from a mathematical point of view.
Anyway, many thanks to Abdullah.
Code: Select all
BSpline: Not yet supported geometry for external geometry
Failed to add external geometry: Not able to add external shape element
I think that the control points of the BSpline which is the result of the projection of another BSpline are the projections of the control points of the projected BSpline so it shouldn't be too difficult from a mathematical point of view.
Anyway, many thanks to Abdullah.
Re: [new feature] Sketcher basic BSpline support
Incredible advance Abdullah! Thanks so much for this!
Re: [new feature] Sketcher basic BSpline support
Thanks @abdullah.
P.S. I guess now Sketcher isn’t rough around the edges anymore!
P.S. I guess now Sketcher isn’t rough around the edges anymore!
Re: [new feature] Sketcher basic BSpline support
Thanks! Very cool feature!!!
Re: [new feature] Sketcher basic BSpline support
Thanks to all. It is a very basic support, but should allow users to do quite a lot. If you do something cool post in the user case, I usually check what you guys do there!
Definitely cool pets!! BTW I guess you will recognise the BSpline icons, don't you? Thanks for that!jmaustpc wrote:Well done Abdulla! This is something that has been asked for many times over the years. Sketcher gets Bspline support on the same day I got a new pet goat, who is now living with our pet cowies.....One of the advantages of living in the bush, you can have cool pets!
Msegade wrote: Is this supposed to work with the "create an edge linked to external geometry" tool, to add external splines to the sketch? or is this not yet implemented?
I though I had done this, but I checked and I did not. It will come probably with STAGE 1b (next work package on BSplines).jean.thil wrote:It is not supported yet
Code: Select all
BSpline: Not yet supported geometry for external geometry
Failed to add external geometry: Not able to add external shape element
I support this demand.
I think that the control points of the BSpline which is the result of the projection of another BSpline are the projections of the control points of the projected BSpline so it shouldn't be too difficult from a mathematical point of view.
Re: [new feature] Sketcher basic BSpline support
What am I doing wrong?
I compiled latest version of FC without problems. I get the BSpline icons in the Sketcher toolbar. I choose one of the two options and start
drawing the Spline. (point after point) I get lines connecting the point (with a slightly different color and than polyline). When I right-click
to end Bs I get nothing; gone the pseudo polyline, the point and the BSpline.
OS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9758 (Git)
Build type: Unknown
Branch: master
Hash: f3f7b01202646d7103961ba24063658a9f72e650
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18
Thanks.
I compiled latest version of FC without problems. I get the BSpline icons in the Sketcher toolbar. I choose one of the two options and start
drawing the Spline. (point after point) I get lines connecting the point (with a slightly different color and than polyline). When I right-click
to end Bs I get nothing; gone the pseudo polyline, the point and the BSpline.
OS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9758 (Git)
Build type: Unknown
Branch: master
Hash: f3f7b01202646d7103961ba24063658a9f72e650
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18
Thanks.
Re: [new feature] Sketcher basic BSpline support
Currently you need to double click to exit the curve creation process.