Jump to content

Recommended Posts

Posted

Hi, I am trying to follow some directions and the call for a spline to be drawn onto an image. I can only find a polyline which doesnt work like I need it to. As I understand it a polyline will put a curved line as close as it can to a series of points, whereas a spline will "join the dots". I need to join the dots but with a curve not a jagged straight edge. Can someone tell me where the spline is please. Many thanks, Dave.:)

Posted
As I understand it a polyline will put a curved line as close as it can to a series of points, whereas a spline will "join the dots".

 

I am not sure that you have got that correct. If you draw a polyline as a series of straight lines, and then curve Fit. The resultant curved polyline passes exactly through the points.

 

A spline also "joins the dots" and you should find it in the Draw menu.

Posted (edited)

Eldon is correct, a polyline always passes through all of the points. Curve fitting a polyline will give you a curved line that still passes through all of the points, but curve fitting a polyline will also increase its length.

 

A spline only passes through all of the points when its Fit Tolerance property is set to 0, a value greater than 0 will move the spline away from the points, the bigger the value the bigger the distance from the points. As far as I know a spline does not have a length property, so getting the length of a spline is not so simple if you need it. Perhaps you can get it programmatically. If you can Lee Mac will know how to do it.

Edited by Tyke
Posted

Ahh, found it, The text I have here states "a B Spline is a curve that passes near a set of control points whereas a Bezier curve passes through a given set of control points". Is that correct or am I trying to follow a tutorial written by someone who doesn't know. Its a B Spline I need, is that the default on AutoCAD?

Posted
Ahh, found it, The text I have here states "a B Spline is a curve that passes near a set of control points whereas a Bezier curve passes through a given set of control points". Is that correct or am I trying to follow a tutorial written by someone who doesn't know. Its a B Spline I need, is that the default on AutoCAD?

 

If you use the Spline command, it will draw a Bezier curve which is a special case of a B-spline curve. It is a polynomial curve defined by a set of control points, representing an equation of an order one less than the number of points being considered.

 

If you use the Polyline command, you can curve fit the resultant straight line sections with a Spline fit, which gives you the B-spline curve, which does not pass through the control points (except the first and last).

 

If your instruction calls for a Spline curve to be drawn, then I would hazard a guess that you should be using the Spline command.

 

(I am not really that clever, but I do know where to find information in the Help files)

Posted

Indeed, as Albert Einstein once said "knowledge is not the retention of information, its knowing where to find it". He also said that compound interest is the eighth wonder of the world but thats irrelevant here.:). Thanks for the info though, I'm going with the spline.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...