Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Does anyone use the Sketch Spline Tool?
todd_brous
Member Posts: 5 ✭
Does anyone out there use the Sketch Spline Tool? Basically, I think it is an unusable tool. Its behavior appears unpredictable and genuinely unproductive. Am I missing something?
For example, if one were to adjust a section of a curve, it will affect other areas. This makes no sense to me. (I think it may be time for Onshape to consider rebuilding the Spline Tool.)
Please note, that I was provided a workaround by Onshape tech support (6 months ago). In a nutshell, rather than creating a "single spline", create multiple separate splines, and then add "tangent constraints" between the splines. After considerable work, this can help build a desired curve shape, but this is really not a productive solution. This is a workaround.
Also, if one needs to make any adjustments (creative or otherwise) one may find themselves wading through puddles of constraints that need to be managed/deleted/replaced.
Can we please have Adobe Illustrator-type Spline tools?
For example, if one were to adjust a section of a curve, it will affect other areas. This makes no sense to me. (I think it may be time for Onshape to consider rebuilding the Spline Tool.)
Please note, that I was provided a workaround by Onshape tech support (6 months ago). In a nutshell, rather than creating a "single spline", create multiple separate splines, and then add "tangent constraints" between the splines. After considerable work, this can help build a desired curve shape, but this is really not a productive solution. This is a workaround.
Also, if one needs to make any adjustments (creative or otherwise) one may find themselves wading through puddles of constraints that need to be managed/deleted/replaced.
Can we please have Adobe Illustrator-type Spline tools?
Tagged:
1
Best Answers
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭todd_brous said:In the below image I compare the behavior of moving a spline point in Illustrator vs Onshape. I drew a similar "M" curve in both applications. First, note where Onshape places the curve above and around the Spline Points. Second, as the middle point is moved up and down, note how Onshape changes the curve shape and handle locations. Illustrator's curve is stable and does not move or wiggle.
5 -
billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PRO@todd_brous I tend not to use the mid node control like you show. I've had it in the past, but don't really miss it.
On a crazy day I: add construction lines to the node handles, than add symmetry. You can also add dimensions to handles for magnitude control.
I'd never do this for real. This curve doesn't interest me.
Now this one is one that I'd use:
The center node is horizontal making the curve symmetrical and allowing mid node placement definition.
And of course, one curve mirrored in both directions:
I use this one a lot. Most of the time it's the 1st sketch in a design. FYI this works better than any other cad system in that each handle works equally. Other systems you have to figure out which are the primary handles meaning you'd have to pull on all of them to make it work. In onshape they all work nicely.
I believe that between the nodes is called a segment and it's evaluated from 0 to 1. Having a 3 noded spline causes a blending matrix to evaluate what's going on between segments and computing the coefficients. Possibly if you could assign curvature continuity between segments, you could contain movement between 2 segments. I'm not a mathematician, possibly @konstantin_shiriazdanov can explain the blending matrix between multi-noded splines. I avoid them, too much math creating complex surface patches.
Honestly, I'm just trying to get it to look right.
Try to use construction lines & constrain handles making 2 noded splines. This is my typical workflow.
6
Answers
Have fun!
It's a basic spline which is a 3rd order polynomial.
The top is one spline segment which is what I use most of the time.
The bottom is a mirrored spline which I use often.
I'm interested in what more do you need/want?
Thank you for your reply!
First off, using a mirrored spline is a super brilliant idea!
I think the problem that I am experiencing is with a longer spline curve that contains multiple points and segments. In Onshape, moving one side of the spline affects the other side. Does that make sense?
Take a look at how Adobe Illustrator deals with splines. To me, that feels like a better behavior.
(As an aside, Onshape's auto-constraints can sometimes get in the way while "designing" a spline curve. If you are just working out a design shape, and you accidentally place a spline point on or near an auto-constraint location, then the whole spline behavior changes until you can find and delete that constraint. Sometimes, I think it would be nice to have an "ignore all constraints" mode while drawing in a sketch. Then one could add any needed constraints afterwards. I, for one, do not always have my "design intent" well defined before I start working.)
In the below image I compare the behavior of moving a spline point in Illustrator vs Onshape. I drew a similar "M" curve in both applications. First, note where Onshape places the curve above and around the Spline Points. Second, as the middle point is moved up and down, note how Onshape changes the curve shape and handle locations. Illustrator's curve is stable and does not move or wiggle.
To my knowledge, the way to avoid this in Onshape is to make splines with only 2 or 3 points each. If you need a longer curve, then one will need to join and constrain multiple curves together. I feel like this is an inefficient method, and I think it could be improved.
Does any of this make sense? Note, I am quite possibly doing everything wrong in the universe. This is just my experience.
Thanks again for your reply!
Best,
-Todd
On a crazy day I: add construction lines to the node handles, than add symmetry. You can also add dimensions to handles for magnitude control.
I'd never do this for real. This curve doesn't interest me.
Now this one is one that I'd use:
The center node is horizontal making the curve symmetrical and allowing mid node placement definition.
And of course, one curve mirrored in both directions:
I use this one a lot. Most of the time it's the 1st sketch in a design. FYI this works better than any other cad system in that each handle works equally. Other systems you have to figure out which are the primary handles meaning you'd have to pull on all of them to make it work. In onshape they all work nicely.
I believe that between the nodes is called a segment and it's evaluated from 0 to 1. Having a 3 noded spline causes a blending matrix to evaluate what's going on between segments and computing the coefficients. Possibly if you could assign curvature continuity between segments, you could contain movement between 2 segments. I'm not a mathematician, possibly @konstantin_shiriazdanov can explain the blending matrix between multi-noded splines. I avoid them, too much math creating complex surface patches.
Honestly, I'm just trying to get it to look right.
Try to use construction lines & constrain handles making 2 noded splines. This is my typical workflow.
Wow! Thank you for this insight. This demonstrates using Onshape in ways I never considered. That is incredibly helpful. In short, it appears that you are building a "rig" to adjust the design of the curve. I will need to explore how this can be applied to my projects. Regardless, this is brilliant.
Personally, I still think I would prefer Adobe Illustrator's behavior, but you have explained and demonstrated how Onshape's curves work. I can hope that some day the developers will take a look at expanding the Spline functionality, but in the mean time you have helped tremendously.
My take away:
THANK YOU!
Best,
-Todd
@todd_brous Hold "shift" to ignore auto constraints in sketches.
Thank you! You have just changed my life.
HWM-Water Ltd