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.

Reducing number of points for a curved line

Started by Dempsey, September 28, 2007, 09:16:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

When I draw a curved line in 2D by setting say 5 points, the resulting curved line has lots of points, and I can understand why that is. I can reduce the number of points with Smooth Line by Point Reduction or Slope Detection. However, when I combine this curved line with other lines and make a plane out of it then the curved line gets again lots of points.

The real issue is when I extrude this plane, because the curved face of the solid has many tiny facets and that slows down the redrawing in smooth shading mode with texture from my own jpg file. I have a few drawings like that where I can actually see the facets slowly being drawn when I select such an object.

Any ideas/suggestions?
Dempsey

prl

All DesignCAD shapes are made from surfaces (planes). So uncheck the "convert to curve for line smoothing" setting when using the "smooth line by point reduction" commands.  Curves that are combined or "make planed" are converted into straight line segments anyway.

Dempsey

prl,

I had an S-surved line. Did as you suggested with a setting of 5 points and another trial with 7 points. What I ended up with is some kind of parabola with the two end points and  one other point somewhere in the middle. Not even close to what I was expecting.


Come to think about it, I may be using the wrong command. What I am looking for is to convert the curve into a given number of straight line segments, like you can do when drawing a circle.
Dempsey

prl

#3
Quote from: Dempsey on September 30, 2007, 03:15:14 PM
What I am looking for is to convert the curve into a given number of straight line segments, like you can do when drawing a circle.

A couple of thoughts.  If you are drawing a curve and you get lots of points along the curve, you have the "save as line" setting checked.  You aren't really drawing a curve but rather a line segmented variation of that curve. DesignCAD is deciding how many points this needs to be, you have no control. So if you really want a curve, uncheck this.  In the "smooth line by point reduction" command, try using a much lower number like 2.

What you really want to do is segment the curve but if you use the segment command on a curve, you don't necessarily get equally segmented two point lines.  You may get three, four, five point polyline segments.   

The solution is something Dr Pr is describing in another post. You want to replace the curve with an equally spaced line segment approximate.  Since in your case you are going to combine or extrude it (after makeplane), you need to stick with straight line segments. 

Here's Dr Pr manual method for your situation.

1.  Draw the curve (as a curve).

2.  Use the tickmark command and segment it however you want.

3.  Using the tickmarks, now draw a new LINE (not curve) connecting those tickmarks where they land on your curve.  (If you used a curve to reconnect the tickmarks, your shooting yourself in the foot because when you combine it or make plane it, you'll get lots of points.) 

4. Delete the original curve. Now combine with your other lines, make plane, and extrude.  Doing this, you have controlled the number of facets.

Here's a graphic of what happens when you "combine".  In each figure, the combined shape is directly below it.  Dr Pr's manual method is the third one on the right. What you don't want to do is the middle one.



Dempsey

I was thinking already to draw my own line segments along the curve, but the part that I was missing was using tickmarks to segment the curve. Works like a charm.

Thanks prl.
Dempsey