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.

Avoid Solid Add

Started by VanF, April 13, 2010, 07:28:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VanF

Draw an extruded curve, like a curved piece of pipe or tube. Mirror it so they connect at one end to make one long piece of pipe or tube. Select each, one after the other in wireframe, then in flat shading mode medium quality. If you have time, since it goes so fast, take a sip of your coffee.

Now go back to wireframe and add the two solids. Go to flat shading again and select. Take a sip of coffee. Drink it all. Make some more. Drive to store and buy some more, then make a pot of that. Maybe if you're lucky the redraw of the added solids will be done by then.

Better to just group the individual solids than to add them, I guess. Maybe it's because the two solids aren't actually touching but are only adjacent?

I think PR posted about this back in 2009 and called it a bug but there was no response. My experience begs the question: Why take the time add a status bar string saying "Press ESC to stop redraw" if pressing ESC doesn't really stop the redraw?

Van

Dempsey

First of all, the ESC issue is very high on the problem list for "if and when IMSI gets to it."

As you can see at the bottom of this reply, I have a old and slow PC. I just did the steps you did and that resulted in one solid with 52,000 planes and 270,000 points and that takes time to draw. You have to look at optimizing the number facets you use in the circle to extrude along the curve; 100 facets for a circle is overdoing it for example and I don't go higher than 16. The same is true for the degrees of fineness of the extruding along a curve; again 100 is overdoing it and start with 20 and look at the results.
Dempsey

Rob S


With apologies to Dempsey, who was typing a bit faster than me:

How many points are there in your solids?  You can set point density by smoothing the curve before extruding, and adjusting the number of facets, etc.  The less points to calc, the better.

What version are you using?  V20 showed some fairly dramatic redraw improvements for some windows XP users.

If you ARE using V20, and windows XP, try turning OFF hardware acceleration in your video driver - see if that helps.  In some systems it dramatically improves select speed with info box open, not sure about other situations.

Also, try updating your video driver to the latest available.  Sometimes helps.

User since forever

VanF

Forgot to mention - Using V 17.2.

OK, thanks, I'll pay more attention to the facet count. I'm still scratching my head over why it takes DC more than twice as long to calc and draw the same object that's merged using Solid Add than it does to draw two separate solids. Does the number of planes and points increase exponentially the more complex an entity is? In that case, isn't it better to group objects and keep them separate unless the creation of a single solid is absolutely necessary? It requires more thought to create a sphere with a pipe going through it as separate entities than it does to create a sphere and a pipe and then Solid Add them, but if it's going to take forever to render the single entity, then maybe the upfront thought investment is worth it.

Van

VanF

And while I'm at it, how do I determine the number of points on a line or curve? It doesn't show in the Info box.

V

VanF

Oops, yes it does, as long as the entity is a vector and not a Circ Arc or Circle.

Sorry bout that.

V

paulerens

VanF

Sys(269 ) set the number of Arc Segments in basiccad,very simple, for points  = one segment less.

Dempsey

Help/Drawing Info gives you some drawing information.

I have extended that a bit for my own use with the DrawingSummary.d3m which you are welcome to use.
Dempsey

Dr PR

VanF,

I drew a circle as a plane with 36 points/facets. Then I extruded it along a curve, with a "degree of fitness" of 5. I then added the two solids. Every operation finished before I could get my fingers off the keys. I shaded with Gouraud (hardware acceleration on) and it took less than a second to complete.

The solid had 1516 planes and 10706 points.

I repeated this with a circular plane having 288 points/facets.
I extruded it along the same curve with a degree of fitness of 100 - this took 16 seconds to complete.
After mirroring and adding the two solids it took 3 seconds to select the object (Point Select mode off) and 7.7 seconds with Point Select mode on.
Gouraud shading took - well I gave up after ten minutes.

The resulting solid had 78916 planes and 553262 points - 52 times as many facets as the first object.

Note: If you work in Point Select mode (CTRL 1) it will take MUCH longer for selections and redraws to occur.
Note: If you have all four 3D windows open it will take four times as long to redraw the objects.
Note: When DesignCAD goes off into never-never land, opening the Task Manager (CTRL-ALT-DEL) often forces immediate termination of its wanderings. Close Task Manager and get on with your work.

DesignCAD defaults to absurdly ridiculous numbers of points/facets in solids and the "degree of fitness" for extrusions.

"Degree of fitness" is some hocus-pocus related to the number of segments created between points along the extrusion curve. A high degree of fitness will generate large numbers of segments between points, even along straight lines where only one segment is needed. I have found no way to predict the exact number of segments that will be created (it isn't the same as the degree of fitness number).

Each segment in an extrusion has a number of factets equal to the number of points in the object being extruded.

The more points there are in the extrusion curve the more segments there will be in the final object.

There are ways to reduce the size of extruded objects.

First, use the smallest number of facets/points in the plane to be extruded. For filleted corners use a small number of facets. Eliminate points along straight sides.

Second, minimize the number of points in the extrusion curve.

Third, use the smallest effective "degree of fitness."

If the extrusion includes straight sections, extrude the straight section with the ordinary extrude command (not extrude along a curve). This will produce the minimum number of facets. For gradually curving sections extrude along the curve with a low degree of fitness (5-10). Extrude sharply curved sections separately with a high degree of fitness (25-50). Then use solid add to combine the parts into one. This sometimes causes problems, so you can also combine all the parts into a single solid with he "Solid Define" command. DesignCAD does a good job of stitching the pieces of solids together smoothly.

For most circular extrusions and cylinders you need only 36 points/facets. For larger objects I use 72 or 144 facets, and for very small objects I may use only 12-16 points. This all depends upon the viewing distance. For close in viewing more facets are better, but if you have very large objects (like a big oil tank) with small details like narrow pipes, use lots of facets in the large objects and fewer on the small details.

DesignCAD user since 1987

VanF

Quote from: Dr PR on April 15, 2010, 10:41:20 AM

I drew a circle as a plane with 36 points/facets...

I repeated this with a circular plane having 288 points/facets...

Note: If you work in Point Select mode (CTRL 1) it will take MUCH longer for selections and redraws to occur.

Note: If you have all four 3D windows open it will take four times as long to redraw the objects.

Note: When DesignCAD goes off into never-never land, opening the Task Manager (CTRL-ALT-DEL) often forces immediate termination of its wanderings. Close Task Manager and get on with your work.

Then use solid add to combine the parts into one. This sometimes causes problems, so you can also combine all the parts into a single solid with he "Solid Define" command. DesignCAD does a good job of stitching the pieces of solids together smoothly.


Dr PR, thanks a lot for regressing these issues. I think the redraw goes even slower with extrusions from double lines converted to planes, which is what I was using for the pipe and tube. I will be reducing the point count on everthing I intend to solidify from now on, but I will probably also work with groups instead of Solid Add where I can...no point in rocking the DC boat.

I generally don't work in Point Select mode. I forgot about closing all but one 3D window...I knew that back in 2006, thanks for reminding me. Having all those windows open just confuses me anyway, quicker to work with command line macros to change views.

Having worked at Microsoft for many many years, I am unfortunately VERY familiar with CTRL+ALT+DELETE :-)  But I also forgot how important it is to version and save current drawings, so I lost quite a bit of work and uttered quite a few socially unacceptable words while reacquainting myself with DC after this long haitus.

Thanks again for all your help,

Van


Dr PR

VanF,

Just a reminder. You do not have to use "Solid/Solid Add" to collect objects together into a solid. "Solid/Solid Define" will make ANYTHING into a solid - even a simple one dimensional line segment. Select several objects and use "Solid Add" to define them to be a solid. It is just another way to group things. However, DesignCAD may shade the solid differently than if the objects were grouped together.

I rarely use "Solid Add" - only when I need to trim overlapping solids. Even then I usually duplicate one of the overlapping solids and use "Solid/Solid Subtract" to subtract one copy from the other solid. Then I use "Solid Define" to combine them.

Why go to this extra trouble? "Solid Add" can produce some strange and objectionable results. DesignCAD has an unusual (unique?) but brilliant feature - it allows non-planar surfaces to function as planes. It was this trick that allowed DesignCAD to execute the Solid Boolean operations back in DOS days, far before some of the $10,000 to $20,000 CAD program could do the same things. This allows a relatively simple solution to extremely difficult geometric problems like subtracting a helical surface from a conical surface where the intersecting edges are all ellipses. Think about it - if you understand solid geometry it will hurt your brain. DesignCAD cheats by creating twisted planes for the intersecting surfaces.

However, this has a drawback during rendering. For ordinary solids with true planar facets the rendering engine does a good job of displaying a smooth curved surface. But when two objects at odd angles are added and then shaded, the intersecting surfaces may be rendered strangely. I suppose this is a bug, and it should be fixed when all other bugs have been squashed. But for now I just use "Solid Subtract" to get a clean cut where the solids come together, without messing up the surfaces on both objects. This almost always produces surfaces that render correctly. Also, it produces the intersection line when hidden line mode is used. If you just lump two overlapping solids together with "Solid Add" the intersection won't show in hidden line mode.

Here is a tip: You can minimize the odd effects by using solids with a high facet count on curved surfaces.
DesignCAD user since 1987

VanF

Quote from: Dr PR on April 18, 2010, 10:52:50 PM

Here is a tip: You can minimize the odd effects by using solids with a high facet count on curved surfaces.


Yes...but...but...but...but...

http://forum.designcad.com/index.php?topic=2909.0

where Dempsey wrote:

"You have to look at optimizing the number facets you use in the circle to extrude along the curve; 100 facets for a circle is overdoing it for example and I don't go higher than 16. The same is true for the degrees of fineness of the extruding along a curve; again 100 is overdoing it and start with 20 and look at the results."

"How many points are there in your solids?  You can set point density by smoothing the curve before extruding, and adjusting the number of facets, etc.  The less points to calc, the better."

Not trying to be a PITA and I'm really not looking for a response here. Just kind of want to highlight what a balancing act working with DesignCad can be.

Van