REMOVING VERTEXES EASILY FOR CUTTING

REMOVING VERTEXES EASILY FOR CUTTING

Anonymous
Not applicable
1,340 Views
3 Replies
Message 1 of 4

REMOVING VERTEXES EASILY FOR CUTTING

Anonymous
Not applicable

Hey everyone, I am having trouble simplfiying this curve for waterjet cutting. It has so many Nodes n it and I want to make it just a simple curve? Is this possible? Keeping the original shape but just making it one line?

 

I am using AutoCad 2021

 

Thank you

0 Likes
1,341 Views
3 Replies
Replies (3)
Message 2 of 4

ian.mag
Collaborator
Collaborator

Hey

 

I believe the top feature is just a line, while the other "curves" are splines. You can but you'll have to join a number of arcs to achieve this. If you willing to take time and draw in all the curves you can achieve that.

0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant

To me it looks like all Polyline [see the segment-midpoint skinny grips -- Splines don't have those, and a Line has a full-sized grip at its midpoint].

 

You can reduce the number of vertices with the PLD command in PLDiet.lsp, available >here<.  See comments in that thread and at the top of the file.  That will leave you with fewer segments, but all line  segments.  To get it smoothly curving, you can separate the top long segment from the rest, apply PEDIT's Spline option to the rest, and if you like, JOIN them back together.

Kent Cooper, AIA
0 Likes
Message 4 of 4

leeminardi
Mentor
Mentor

In the image below the top curve is a spline.  You can see its 5 fit points (square grips). The middle curve is the spline converted to a polyline with splinedit p (resolution 10). The bottom curve is the middle curve converted to a 2D polyline with pedit s (spline fit option).

image.png

Zooming into the yellow box of the spline we get a smooth curve.  In fact the curve only looks smooth.  The display of the equation for the spline is being evaluated at very small intervals that are so small you do not see that curve is being drawn as a series of straight lines that are then converted to pixels.

image.png

Zooming in on the second curve yields the following which obviously show the polyline approximation of the smooth spline.

image.png

If pedit s(pline) is used with this polyline as @Kent1Cooper mentions a new 2D polyline will be created that is similar to the original source polyline.  Zooming in on it shows that it creates a smooth curve between the vertices of the polyline.  In this highly zoomed in view you can see the bright white curve of the splined polyline, the dim white lines of the polyline, and the original spline (red).

 image.png

 It is important to note that no matter how a curve is represented, whether a polyline with a series of straight and arc segments or a spline, the NC driven waterjet will drive the jet in short, straight line increments.  You would probably not notice the difference if the polyline you have is used or if it were represented as a smooth spline.  

What is your goal in making it a "simple curve"?   Does the water jet's post processor handle splines?  

Note, a good strategy in getting a smooth spline is to minimize the number of fit points.  Having too many fit points increases the likelihood of getting ripples in the curve.   

lee.minardi
0 Likes