Jump to content

Add node to spline - why do we need select existing node first?


Recommended Posts

I'm a bit baffled with splinedit -> fit data -> add.

why do we need select first an existing node on a spline in order to add a new node? why can't we just add a node?

Link to comment
Share on other sites

If the spline was created using the Fit point method it will have a series of fit points that the spline passes through in the order the poins were specified.  If you want to add a new fit point you have to indicate an existing fit point so that it is clear where in the order the new one should be.  For example, if there are 7 fit points and you want to add one between #3 and #4, then pick #3 after specifying Add. 

Link to comment
Share on other sites

Wouldn't it be the same as simply counting points from the start? So, if you simply clicked between #3 and #4 wouldn't it be obvious that it's between #3 and #4 and not somewhere else?

Link to comment
Share on other sites

Quote

 ...if you simply clicked between #3 and #4 wouldn't it be obvious that it's between #3 and #4 and not somewhere else?

 

It may not be so obvious where the new point should be located with respect to the other points.  For example, should the "new point" in this example be before or after point 3 or perhaps somewhere else n the sequence?

 

 

 

image.png

Edited by lrm
Link to comment
Share on other sites

Posted (edited)

Oh, I see. It allows clicking anywhere, not necessarily on spline itself...

In my experience, I always used NEA when adding nodes, to make sure they land exactly where I wanted them to, so that extra step is annoyingly unnecessary...

 

Thank you.

 

P.S.

Before I waste my time creating it, is there already a script that would allow simply select a spline and add/remove nodes anywhere on it with a single click?

Edited by vanowm
Link to comment
Share on other sites

Quote

In my experience, I always used NEA when adding nodes, to make sure they land exactly where I wanted them to, so that extra step is annoyingly unnecessary...

If you are using NEA then you are adding a fit point on the spline at a point where it is already passing through!  What is the reason for adding the additional point?  It won't modify the spline unless you, of course, move it.  In general, it is beter to have as few fit points, or control vertices, as possible. More points increase the likelyhood of getting undersirable undulations.

Quote

Before I waste my time creating it, is there already a script that would allow simply select a spline and add/remove nodes anywhere on it with a single click?

My favored approach for creating splines is to start with fit points and then switch to editing the location of Control Vertices to fine tune the shape of the spline.  YOu can easily add addiitonal CVs to a spline by increasing its degree.

 

Link to comment
Share on other sites

Just now, lrm said:

What is the reason for adding the additional point?  It won't modify the spline unless you, of course, move it.

Exactly for that reason. It's for tracing an image, when I initially trace an image, I do it roughly, for speed. Later if I'm unable shape the spline with existing nodes, I add additional nodes so it can be more precisely fine-tuned. I guess it's a niche use-case...

 

Link to comment
Share on other sites

Experiment with using CVs to edit the spline that you initially created with fit points. You may find that you like the control it gives you over the manipulation of fit points.

Link to comment
Share on other sites

Unfortunately bezier curves are problematic in some applications where I often export it to, so I'm stuck with fit splines for compatibility reasons.

 

But I do agree, CVs are more powerful.

Link to comment
Share on other sites

Quote

...bezier curves are problematic in some applications where I often export it to, so I'm stuck with fit splines for compatibility reason

It's not clear what you mean.  AutoCAD splines are typically B-splines whether created with fit points or control vertices. An AutoCAD spline is technically a Bezier spline if the number of CVs is one more than the degree of the spline and a NURBS (non-uniform ratonal B-spline) if a CV has a weight other than 1.

Link to comment
Share on other sites

Well, I don't know exactly why, but whenever I tried to import non-fit type of spline into patternsmith, it would really butcher that spline, adding millions of nodes or simply not following the shape.

Link to comment
Share on other sites

It looks like Paternsmith has the limiitation that the imported spline must have fit points.  Interesting.

 

As you know, you can add fit points to an existing spline with splinedit Edit, Add and then use osnap nearest.  It might be quicker to use splinedit, Polyline to convert the spline to a polyline and then create a new spline by snaping to the vertices (all or a few) of the polyline.

In the image below a spline with 7 fit points was converted to  a polyline with a precision of 1 (red) and precision of 2 (green).  A new spline was then created from the polyline vertices.

 image.png.a42c967276a1b8e72fe0accc088daaba.png 

Here's a closeup of the results.  Note that the red spline deviates slightly from the orginal spline.

image.png.281347be0737bfe7e45fb317f7bdf9f9.png

 

Link to comment
Share on other sites

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...