Home > Surfacing, Tech Tips, favorites > Spline Schmline, part 2

Spline Schmline, part 2

November 19th, 2008 Leave a comment Go to comments

In the previous part, we talked about why we need to use splines. Now we will talk about how to use splines. Spline curvature combs enable you to evaluate the spline that you create, but what are the tools that enable you to control the curvature?

A seventh inning stretch, just a little early…

Well, I need to extend the analogy that I started with Jessica Rabbit. Jessica is more of a fox than a rabbit, and she got a bit of attention as a part of the post. Kim decided that I needed to give equal time to the other side of the aisle here, however you want to take that. Jessica Rabbit was actually Kim’s idea. It was such a good one, that I decided that I might go with her new idea for a follow on post, even though I’m not as enthusiastic about it.

This is a bit of a stretch and might require some explanation, so hold on here. You see, the word “spline” comes from the ancient ship building trade. But Kim thought that Gerard Butler from the movie 300 would be a good counterbalance to Jessica. Exactly how those ideas or the ones that follow are related, I can’t say. King Leonidas (Gerard Butler) never was on a ship, but there was some footage of ships tossing to and fro in the waves, as the Persians perished in the (water word that starts with P). I considered this as too flimsy a basis for such a serious blog as Matt Writes.

In a happy coincidence, Gerard Butler also played Beowulf in the 2005 movie Beowulf & Grendel. I don’t know anything about that movie, but I do know the 2007 movie Beowulf, which was all CG animation, and that one does have some footage of Beowulf actually on a ship, although Gerard Butler had nothing to do with it. Of course after all of this, I’m thinking that maybe we should have had Angelina Jolie as the terrifying Grendel’s mother instead of Jessica, but alas, that die has been cast, and we just move forward.

So, what we get here is a little beefcake for “the other side of the aisle”, along with a ship in a computer generated movie that allows me to continue the discussion about computer modeling, complex shapes, splines, sexy curvature, and relate it to real historical manufacturing processes through a study of etymology. Now if that isn’t dedication to researching the topic, I don’t know what is.

Spline Handles

The spline handles are the arrows you find at the ends and every internal spline point. Each handle enables you to control both direction and magnitude of the tangency at the point. The ball at the end of the handle enables you to drag both direction and magnitude simultaneously. The arrow head just controls magnitude, and the diamond shape just controls direction. All of these controls are also available through the PropertyManager.

As I’ve already established above, the word “spline” itself comes from the ship building trade. But it also has meaning in pencil drafting techniques. A spline is simply a flexible slat. In ship building the slats were wooden and were nailed to the spars of the ship to create the outer covering of the hull. You can see these slats in the second image above, with Beowulf’s ship. In drafting a spline is a flexible ruler that enables you to make natural looking curves. The curves look natural because they follow the math of bending an elastic material.

Think of spline handles as a way to clamp down the position while controlling the tangency direction at specific points on the spline, namely the end points or internal spline control points. The handle magnitude does not have an equivalent in real physical phenomena, but you can think of it as if you could change the material stiffness of a flexible metal wire by pulling an arrow.

The magnitude, or stiffness for internal spline points can be changed asymmetrically. This will sometimes affect the internal curvature continuity of the spline, meaning that at the spline control point, you may get a change in curvature from one side of the point to the other. You can avoid this by using the “Maintain Internal Continuity” option in the spline propertymanager or by dragging the magnitude arrow with the Alt key, which moves both sides of the arrow symmetrically.

When it comes right down to it, you can make an S shape with a spline with only the two endpoints, if you use the spline handles to control tangency direction.

The unlabeled arrow at the bottom of the image is pointing to a spline handle. This image labels many of the characters that come in to play in spline control and manipulation. This is not all of the items, however.

Control Polygon

Another way to control the overall shape of a spline is to use the control polygon. You can activate the control polygon for a spline from the RMB menu. To enable control polygons on splines by default, use the setting in Tools, Options, …

I have heard people say that they prefer to use the control polygon because they believe that they can get smoother curves with it than by using spline points. The control polygon does not directly touch the spline except at the end points. This makes it a little counterintuitive to use to adjust the spline shape, but it does work.

Curvature Control

 

The Curvature Control enables you to assign radius to the spline at a specific point. This can make matching other curvature easier. Other evaluation tools include a Minimum Radius indicator, and an Inflection Point indicator. These don’t give you any control, but they do help you see what is going on.

I’ll have one more blog post in this spline series. That one will be more information about the original question about using dimensions to control splines. Regardless of what I say, there really are ways to do it.

  1. ecirwin
    November 19th, 2008 at 10:54 | #1

    Nice post, kind of a long rant at the beginning, but I understand the effort to give extra time to the other side of the aisle.

    Glad to see you are discussing the use of the spline handles and I am looking forward to reading your thoughts on dimensioning splines. I am an Engineer working closely with Industrial Design for the last 6 years. I have only been using SW for 1.5 years, ProE before that for about 12 years. It has been very difficult to convince many in Engineering that splines are an acceptable tool. Even I had to learn how to dimension a spline before I could argue that the geometry was stable and repeatable.

    With all that said, I still fall back to 2-point splines almost exclusively. I rarely have the need to invert curvature in my splines, but I’m not doing completely organic shapes. Most of my splines are transitions from one basic form to another basic form. It will be interesting to see what you do with multi-point splines.

    So, I know you have finished work on the latest SW Bible, when does the Surfacing Bible get an update?

    -Eric

  2. November 19th, 2008 at 11:45 | #2

    Could you give an example of the disadvantage of not having asymmetrical control of the magnitude? I can’t remember which version introduced that, as well as the new control handles (2007? 2008?).

    Also, what is the goal of the end result? To get a smooth curvature comb w/out lumps and abrupt changes? I know in one version they took away the curvature comb “cap”, stating that it wasn’t a good indicator of the change in curvature, then people screamed to have it put back in.

  3. November 19th, 2008 at 11:49 | #3

    One more question. What about fillets?

    I know one discussion at a SWW a while ago talked about the ipod, and how it’s not just a box with fillets. The transitions were created with splines rather than just simple fillets. When do you decide to use a fill surface/loft/sweep using splines rather than a regular fillet or fillet with hold lines?

    ****

    There is an option on the Face Fillet to use curvature continuity. If the fillet is just an edge break, then I just use a regular fillet, but if the fillet is part of the shape of the part, then I try to use something a little nicer. Manually modeling fillets is a pain, but sometimes you have to do just that to get what you want.

  4. dbuffo
    November 19th, 2008 at 13:22 | #4

    I am really enjoying these spline posts. I have not had a need to use splines yet but I have been dreading the day that I would have to use them. I just don’t understand how they work. This clears up a lot for me. I think at least some of this should be in the Solidworks Help. Thanks a lot.

  5. ecirwin
    November 19th, 2008 at 13:29 | #5

    Bruce,

    When to use a blended surface rather than a fillet is a personal choice. It depends on the look you want. I find the best way to explain this is to have someone build a cube with fillets on the vertical edges. Then put a fillet around the bottom edge of cube. Finally build a blended surface around the top edge. Obviously, these are the big steps, there are many steps that go into each one. Although, ProE had an option for a “Conical” round that got very close to a blended surface once you tweaked the parameters.

    Once you have that cube built and rounded/blended, take a look at the highlights as you rotate the model in shaded view. You will notice a very distinct change in the highlight as it passes over an edge that has a standard fillet, while a blended edge has a smooth transition of the highlight.

    @Bruce Buck

  6. November 19th, 2008 at 14:19 | #6

    Actually, after playing with it a bit, I find using the Control Polygon simpler. Sometimes I need to add points to the spline, sometimes delete, but it gives me a “feel” for the spline when working on it of stretching the form to create the various contours. The other nice thing is that those polygon points don’t have associativity–so they won’t accidentally snap onto other sketch/model geometry when working with them (I hate it when that happens). Yeah, you can hold down the CTRL key when dragging spline points to avoid that, but I tend to get the timing wrong sometimes and end up making a dragged copy of the whole spline a bit too often for me to like that option.

    Bruce, you can also turn on the zebra stripes to see how the various forms (continuous vs. tangent) change from one to another. If you want sexy, you want continuous. If you want the Geico guy doing the “robot”, go with arcs and lines. (Some people really like the Geico guy…)

  7. ecirwin
    November 20th, 2008 at 11:01 | #7

    @Jeff Mowry

    Jeff,

    I watched a demo last night that did point out a difference between using the Control Polygon vs. the Spline Handle. The Spline Handle allows you to control things independently if you want. If you grab the dot on the end of the arrow, you can change both magnitude and direction at the same time. If you grab arrow head, you can control the magnitude. If you grab the diamond, you can control the angle. The Control Polygon does not give you this power.

    Eric

  8. November 20th, 2008 at 12:12 | #8

    That’s true, Eric, but I’ve found that fine-tuning can often get a longer spline (more points) into trouble with continuity. Sometimes I use those fine-tuning controls, but for general shaping of the spline I prefer the Control Polygon with the curvature combs on. (This whole issue is probably a matter of taste and typical spline shapes for the most part.)

  1. No trackbacks yet.

Upload Files

You can include images or files in your comment by selecting them below. Once you select a file, it will be uploaded and a link to it added to your comment. You can upload as many images or files as you like and they will all be added to your comment.

16 visitors online now
6 guests, 10 bots, 0 members
Max visitors today: 21 at 01:11 am EDT
This month: 48 at 09-02-2010 01:16 pm EDT
This year: 64 at 05-16-2010 10:32 pm EDT
All time: 64 at 05-16-2010 10:32 pm EDT