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.

3D compexity

Started by kchoekstra, July 09, 2007, 09:13:31 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

kchoekstra

Hello all,
       Is there a way to reduce the amount of computations in a three-d drawing? This needs to be extruded to a 2.5" thick part with further surface contouring. I am running a newer dual core AMD with 2 gig mem and a 7800 graphics card. I have fallen asleep waiting for these re-draws. I have reduced the number of segments but it does not help a lot.

   Thanks, Ken

Bob P

If you're in hidden-line-removal mode, that can be a huge compu-load.  It might not look pretty, but in a large drawing, use wireframe whenever possible.  Shademode is also faster than hidden line mode.

Lar

Ken, it is not clear if your pdf shows the start or the finish of your 3d extrude and surface contouring.

Either way, the multitude of circles is probably what's killing you, assuming they are extruded (can't tell in hidden line view).

Dcad extrudes curved surfaces too finely, in my opinion. It internally divides a circle into about 120 parts when extruding. That adds up to a whole lot of points and surfaces (and RAM) for the resultant Grid Surface.

What I do, when creating the circle for extrusion, is to select the 'Line' option and reduce the 'NSegments' to some increment of 8 or 16 and no more than 32, depending on viewing distance. There is also a BasicCAD function that can stipulate the number of segments (can't say what it is at the moment). I'm not sure if these option are available below 17. If not in your version you can Vector Convert the Circle/Curve, then use Edit> Selection Edit> Smooth Line by Point Reduction ('convert to curve' option off) to reduce the number of points before extruding.

Lar

kchoekstra

Lar, I am using 17.02. I initially extruded circles but the number of points was huge. I then made the holes using the cylinder command (8 segments). That reduced the points dramatically. The complexity of the shape is evidently too much for the program and computer to handle it. Thanks for the ideas. I will try that and see if it helps.

    Ken.

Lar

#4
Using 8-seg cylinders does essentially the same as my idea. I think the problem is the huge number of circles.

If the holes don't have to show (as seen in the pdf), why extrude at all? Just use pure circles.

If the holes do have to show then this type of thing works best with Alpha channels (something dcad can't do) - it's how you would see through a lattice or chain-link fence in rendering packages, using a bitmap where white areas become transparent (black in some programs). It's only a function of the rendering engine, though, not solid surfaces.

If the holes need to be in the model but don't normally show (eg, for Slicing) then put them on their own layer and leave that layer off most of the time.

Lar

Dr PR

I have been fighting the same problem for years. After I have determined the diameter and orientation of the circle, I generate a short cylinder with the desired number of segments along the extrusion axis. Then I use the Vector (line) command and gravity snap to draw a closed loop of straight line segments around the end of the cylinder. I delete the cylinder and extrude the resulting "circle." It may sound clumsy, but it works. It allows me to orient the vertices of the "circle" however I want them.

A simple way to generate a cylinder in any XYZ orientation is to draw a line along the centerline of the desired cylinder. Then draw a square plane perpendicular to the line (Draw/Planes/Perpendicular Plane) with a width equal to the desired diameter of the cylinder. Position the plane at one end of the line. Next draw the cylinder with the first point in the center of the plane (one end of the line), the second point on the midpoint of one side of the plane, and the third point at the other end of the line. This gives you a cylinder with the end surfaces perpendicular to the line. It sounds complicated, but after you have done it a few times it takes only a few seconds.

For small detail items that aren't seen up close I use a small number of facets (8-16). However, for large imposing parts of the design I use the maximum (198) number of facets in order to get a good smooth surface. If you are going to do any boolean operations (add or subtract solids) use as many facets as possible. Otherwise the resulting surface will be badly distorted around the hole/junction.

Note that there is a big difference between the "Draw/Extrude" and the "Draw/Extrude Along a Curve" functions. Something as simple as a pipe handrail - two straight cylinders with a curved section between - can turn into a multi megabyte monster with the Extrude Along a Curve operation. Choose the lowest "degree of fineness" that will give satisfactory results. The default value of 100 produces enormous numbers of segments. A value of 5-10 works for most things.

For curved extrusions with a fixed radius (arc or circle) sweep the "circle" (Draw/Sweep) around the center of the arc. I normally use about one copy (segment) for every 10 degrees, and these render OK. This allows you to control the number of intermediate sections.

To speed up rendering, in the Options/View dialog check the "Enable graphics acceleration" and "Enable off-screen bitmap" boxes.

Another thing you can do is "cheat" by exploding solids (Solids/Explode), eliminating inside surfaces (surfaces that rest against other surfaces, for example), and then selecting the parts and regenerating the solid (Solid Define). This reduces the point/plane count a bit. Be sure to regenerate the solid. If you don't, the surface won't render smoothly. Also, you can lump together just about any collection of surfaces with the Solid Define command to get them to render (more or less) smoothly. This can produce some strange results. It is useful if you explode a grid and edit it. You can't put the grid back together again, so it renders as flat surfaces. But if you make it a solid (with zero thickness) it will render smoothly.

If you extrude or sweep closed line objects instead of planes you will get only the outer surface without the end planes (two less planes to render). You will have to add end planes where needed.

Only use wireframe and smooth shading white editing - they are much faster. Then go get a cup of coffee while rendering in Gouraud or Phong (I prefer Gouraud). Once the design is rendered the first time all subsequent renderings will be much faster.

I learned all of these tricks out of desperation. Some of my designs are many tens of megabytes - one is about 200 megabytes - and even with all these tricks it can take half an hour to render them on a 2.4 GHz machine.

Patience is a virtue.
DesignCAD user since 1987

kchoekstra

Do you know if all cad programs have these same limitations or does an expensive Autocad treat these operations differently?

    Ken.

Dr PR

Every program has similar limitations, though not necessarily the same problems.

DesignCAD files store objects as a collection of surfaces, lines, etc. Some programs store objects more as a list of things to do. For example, DesignCAD saves cylinders as a collection of two circular end planes and a bunch of rectangular facet planes between them. This makes the files larger. Other programs store a cylinder as a "parameter" or code indicating that it is a cylinder, the center point of one end, the radius, length and direction of the cylinder. This is a very compact way to store the information and makes the files smaller.

When it comes time to render the cylinders DesignCAD just has to figure out which surfaces to show and render them. This is relatively fast. Parametric programs must first calculate where the surfaces are and then determine which should be shown. This is very computationally intensive, and inherently slower. So it is a trade off between file size and rendering speed. A major speed limitation arises when the parametric programs must recalculate the surfaces of complex figures that are the result of boolean operations between multiple objects. In effect, the entire universe must be recreated every time the picture is redrawn. DesignCAD has already created the universe, and just has to display it.

Of course the final rendering speed depends upon how well the software is written. Either approach can be faster than the other, depending upon how much effort is made to optimize the software. Unfortunately, many CAD companies are run by paper shufflers with the intent of getting as much money from the customer as they can for as little cost as possible. In these companys there is little effort to optimize code for speed. Once they have your money they don't care how long it takes you to do your work. The result is poorly written bloatware that takes forever to run.

Finally, rendering speed depends upon how fast the computer operates. This is very hardware dependent. The hardware drivers (software) strongly influence the speed of the display. The CAD program generates an image description but it is the job of the drivers to turn this into an image on the screen or printer. Again, some hardware companys put little effort into optimizing the driver code and others do a good job.

Most of the really expensive ($15,000 to $30,000) CAD programs are pretty fast, but they often require equally expensive hardware designed just to run those programs. A "seat" may cost $50,000 to $75,000 or more. All programs designed to operate on ordinary PCs are much slower, but the system is also much cheaper.

The only direct experience I have had recently is with DesignCAD and TurboCAD (a parametric program). DC renders objects much faster than TC, but TC does it with much better results (shadows, many more lighting effects,etc.).

Does any one else have recent experience with DesignCAD and AutoCAD or other PC based programs, and can make a comparison that they can share with us? How about other PC based rendering programs?
DesignCAD user since 1987

Lar

I use Cinema 4D for rendering and animation. It is parametric and extremely fast on a low end computer. Its rendering speed is insane at a very high quality - It can render a 2000 x 2000 (or higher) pixel image with shadows, reflections, transparencies, refractions and some effects you never heard of in less than 30 seconds. Exotic effects like Ray Tracing (calculating how a light beam bounces from surface to surface) and Area Shadows (calculating the softness of a shadow's edge based on how far away it is from its source) can make that same rendering take 2 hours. Its booles are crazy fast - you can literally whip any shape representing a "hole" back and forth through any other shape and watch the results real-time. Its base price is about $700.00.

Creating objects from scratch is not difficult in C4D but it can't compare to Dcad for snaps, intersections, trims, point placement and overall accuracy and precision. DXF'ing from dcad to c4d is ok, but c4d to dcad is not so good. Mainly because surfaces with more than 4 points gets broken into 3 point surfaces by the DXF translation. This happens in either direction, but whereby its a pain in dcad, it can be gotten around easily, or even ignored, in c4d. Recently I have taken to exporting vectors from either program, and converting them to surfaces in the destination program. Both can also import/export XYZ point data.

Lar

kchoekstra

Thanks everybody. We have both Designcad and Autocad at work. When I get some time I will try to figure out how to do the same drawing in Autocad and let you know the difference.

    Ken.

Phatose

One thing to be very sure is that if you're working, have the 'show intersection lines in acceleration mode' option in hidden line rendering off.  With extremely complex structures, it will still be a little slow, though it will be an order of magnitude faster then it will be with that option on.