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.

V19.0 goes to la-la land

Started by Dempsey, April 11, 2009, 08:24:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

I have been making a 3D drawing of a grandfather clock over the past week or so. I draw boxes, extrude shapes, solid slice, add solids, subtract solids, and define solids. I typically save the drawing after every 2 to 5 solid operations. Gradually the file is growing and right now it is 1.1 MB.

PROBLEM 1 -- Last night the problems started. I drew a box, set start point and then used point relative for the dimensions as I always do. I immediate noticed that something was wrong. The length should have been 23 but the result length was 26. The other two dimensions where wrong too. Undid, did it again with the same results. Exited the drawing & program, started again and then the box drew fine. Has this anything to do with teh solid subtract problems that Dr PR reported?

Today I extruded a moulding shape along an arc (was right the first time -- go figure). That arched moulding took ages to redraw when I moved it to another layer. Exited and restarted. Things are better again. I checked and that solid had 1,885 entities and in total 10,093 points. That one solid almost doubled my drawing size! The moulding shape has a 1/4 circle and that alone has some 24 facets, so I know that I have to reduce the number of facets. I can solve this problem, but it only serves as illustration why redrawing can get very slow with just one more solid!

PROBLEM 2 -- Then I did 4 solid slice commands. After the fourth solid slice the program went into an infinite loop where you see the sliced solid being red (selection colour) then black (layer colour), then red, the black, etc., etc.. On the status line you see "Ready" and "To stop redraw, press ESC" very fast displayed ontop of each other. I must have hit the ESC key between 70 to 100 times before the program finally stopped the silly redraw, and I could restart the program. I then noticed that the two pieces left after the solid slice (that I interrupted I guess) had no end planes.

I have no problem that the program takes more time to redraw when more and more objects are added or when too much detail is added, but the program misbehaving like drawing wrong size boxes or going into an infinite redraw loop are serious errors and are not acceptable.
Dempsey

Dr PR

Dempsey,

I learned a long time ago that you have to be very careful with extrusions or the file size becomes unmanageable. I once drew a simple handrail - two straight lines and two arcs - and extruded a circle along the lines. The resulting solid was 13 Mbytes! Three of these was enough to crash DesignCAD V15.3 on an XP machine with only 1 Gbyte RAM.

I ALWAYS first draw a circle or arc line of the desired radius and with as few segments as I can get away with. For very small features as few as 4 facets per 90 dergrees works. For vary large objects I may use 72 or 144 facets in a full circle.

In some cases I draw a "template" of several arcs and lines, and then draw a single a multipoint line (V) over them to generate the desired line to extrude.

NEVER use a circle or arc as the extrusion line - you will get bazillions of points and a huge object.

When you extrude along a curve DO NOT use actual curves if you can help it. Use segmented lines for the "curve" the extrusion is to follow. The resulting extrusion will be a grid and it will render smoothly (maybe) even though the "curve" was not smooth.

If you have an irregular curve that you want to extrude along, use "Edit/Selection Edit/Convert/Vector Convert" to change it to a segmented line. It will have FAR too many points - extrusion will try to put segments between each point on the line. Use the Tickmark function to place a lot of marks along the line at regular intervals, and then draw a new segmented line (V) from mark to mark and delete the original line. If the line has sharp curves in some places and is fairly straight in others, set a lot of tickmarks and use all of them on sharp curved sections but only every third or fourth mark on straighter sections. This will let you control the number of segments in the extrusion.

When you extrude along a curve set the "Degree of Fitness" (a meaningless term) to 1. This determines the number of segments between each point on the "curve." If the extrusion is not smooth enough increase the number of segments between points (Degree of fitness). Unfortunately, this also adds more segments in the straight portions where they aren't needed. You can avoid this by adding more points to the extrusion "curve" in the curved sections - this will force more segments and that will smooth the resulting surface.

The size of the extrusion will be determined by the number of points on the line being extruded and the number of segments in the extrusion. Do everything possible to reduce both.

What is really needed is a "smart" extrusion function that places lots of segments on sharply curving sections and fewer on relatively straight segments.
DesignCAD user since 1987

Dempsey

I was already working on reducing the number or segments last night. Looks like just reducing the number of segments in the shape and the curve along which to extruded did the trick for me. That alone reduced the drawing size from 1,280 KB to 691 KB. However, I did use the default "Degree of Fitness" setting which is 100!!!

I will try tomorrow with a setting of 1 and take it from there. Dr PR, thanks for your tips.
Dempsey

Dr PR

It looks like someone selected all the worst possible default values for V19. 100! That is idiotic!

I wonder if IMSI is deliberately trying to drive us all away from DesignCAD to some other program (for me it certainly won't be TurboCAD!).
DesignCAD user since 1987

Dempsey

I just extruded a square along a 180 degree arc (true circle not segmented). First with a degree of fineness 100 and then again with degree of fineness of 1. In both cases the the number of entries and number of points are the same. I suspect that there is some kind of intelligence behind the degree of fineness.
Dempsey

Dr PR

Dempsey,

It is the arc - in theory it has an infinite number of points. In practice it is just a very large number. There is maximum total number of segments (I once figured out the exact numbers by experimenting) that can be generated by extrusions. No matter what you set as a "Degree of Fitness" the total number of segments will not exceed the maximum, so you will not get 100 segments between each point on the line if there is a large number of points. The most segments between points equals the maximum number of segments divided by the number of points.

I NEVER use true arcs or circles - they make far to many points/segments. I draw the arcs/circles as lines with a defined number of segments. This allows me to control the size of the extrusion (file size, redraw time, editing time, etc.).

DesignCAD user since 1987

Slind

This post is another example of why this forum
is the best.

Intuitively, reducing the number of points should render a
' rougher ' curve, but that isn't what happens.

So, why the higher number ? 

Does the fineness setting affect the drawing's appearance
at higher resolutions ?

Or does it influence how ' real ' the rendering looks, with
certain materials ?

Thank you.

Slind









Bob P

DC must asscociate a "curve" characteristic to a vector arc, no matter how many facets, so rendering doesn't reflect the coarseness of the line.  To see this, save a cylinder with 20 sides as a dwg file.  The original DC file smooth-renders very nicely, but the imported dwg has well-defined planes.

Dr PR

I experimented with "Degree of Fitness" (DoF) last night, and it is not as predictable as I remember it. The "curve" I was using was actually a multi-segment vector that I made using the tickmark method described above. I tried DoF values from 1 to 100, and in all cases I got just one segment between points in the line. V15.3 works this way also.

"Degree of Fitness" only works if the "curve" is actually a curve. I tested a few DoF values on a curve with a lot of points:

DoF   #segments
0            12
1             2
2             2
3             2
4             3
5             3
6             4
7             5
8             5
9             6
10           6
15           9
20          12
100         59

****

You can control the number of segments precisely by using a multi-segmented vector - one segment between points. If you put a lot of points around sharp curves the shading function will produce a smoothly curved extrusion.

If you use a curve you can still control the number of segments by adding or reducing the number of points in the curve (Point Select mode). Then you can also have some control of the number of segments with the "Degree of Fitness" setting.
DesignCAD user since 1987

Dempsey

I bit myself this afternoon. I had left the DoF set at 1 last night, and when I wanted to extrude along a curve the extrusion when in a straight line between begin and end points of the curve, and I just could not figure out why until I had finally that aha moment.

Anyway, my curve is about 15 long with radius of 45 (true circle) and at a DoF of 100 it generated 10 segments, which is quite acceptable as far as I am concerned.
Dempsey