News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Smooth line issues V 17.2

Started by VanF, April 14, 2010, 03:59:02 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

VanF

Further to our discussion of the previous Solid Add post...

Create an 180 deg semicircle with any Arc command. Convert to vector. Show Info, you should have at least 60 points. Choose Smooth Line By Point Reduction. Enter 30 to halve the number of points. You get 3 points. Undo, try again, enter 20. You get 5 points. Undo, try again, enter 10, you get 8 points. Undo, try again, enter 9, you get 9 points.

Undo, try again and again and again, but try as you like, the only number you can enter where you actually get the number of points entered is '9'.

So, I figured it's probably in my best interest to just go with 9 points.

Can anyone think of any other cases where DC17.2 so ardently strives to protect my best interests? I wonder if V20 is so hell-bent on doing what's best for me  :D

Van

paulerens

Hi Van,

In my opinion it is like this.
(Number of points / points to reduce) + 2
Two for the beginning and end of the line.
60 / 30 + 2 = 4 not 3, do the test!
60 / 20 +2 = 5
60 / 10 +2 = 8
60 / 9 + 2 = 8.666 but closest integer = 9

Paul

VanF

Ha! Now how did I not know that intuitively? My bad!

I think the developers just went with the "Number of points" label because there isn't enough room for your formula in the dialog box.

Very good math reasoning there.

Van

Lar

Thanks Paul. I knew that the number you entered was some sort of factor and not the actual number of points but I never bothered to try figure out the formula. I just normally keep mine at 5 and if that's still too many points I put it to 3. Most of the time I'm doing lots of lines at the same time so I won't see a correlation.

Lar

Dempsey

Once again the collective know-how of this forum produced the answer in less than 10 hours  ;D
Dempsey

paulerens

#5
Hey guys, I do not know whether it is done so by the programmers.
I guess this only. ???
I have absorbed it, when I needed a macro to reduce the number of points in a line
to maximum two millimeters distance, after(Drawing a curve, save as a vector)

Paul

.

Dr PR

The V18 Reference Manual says:

"DesignCAD divides the points of the line(s) and/or curve(s) into groups of a specified number of points. The locations of the points in each group are averaged, and the group is replaced with a single point."

The "Number of points" value you enter is NOT for the number of points in the resulting line. It is more or less a number to divide the number of existing points by. So, if you have a 60 point curve and you enter 30, the 60 point curve is divided into two 30 point groups and two new points are produced at the average positions of the original points. The curve retains the original two end points.

If you enter a value of 5 you get a curve with 12 points plus the two end points.
DesignCAD user since 1987

paulerens

Dr PR,
Where do you find this Manual?
I have bought V18 in a box, but there was no manual in it.

Dempsey

Paul,

I don't have the manual either, but in V18 the help text is basically the same as what would be in the manual.

Go to Help, search for Smooth Line by Point, and the text in question is in the first paragraph.
Dempsey

magic

It's a kind of magic!




paulerens

Is such a service, not a kind of magic?

Thanks Dempsey thanks magic!