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.

DC 17.2 confusion about sweep and solid subtract

Started by vexed, December 22, 2012, 09:59:26 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

vexed

I've eliminated everything in the drawing except for the finished/modified bolt.  The file is now small enough to upload.  I hope there is enough left that you can figure out how I screwed this up.

Jim

MarkX

Quote from: vexed on January 06, 2013, 05:17:31 PM
I've eliminated everything in the drawing except for the finished/modified bolt.  The file is now small enough to upload.  I hope there is enough left that you can figure out how I screwed this up.

Jim
Maybe you could post your "drill bits" separately. They're as important as the bolt, possibly.

That single bolt has 7500 facets. I'm thinking  that you might want to consider using a different "die" on the outer edge. The threads there are all topped off instead of triangular. And maybe reduce the number of planes generated by each sweep. On my ancient system the drawing moves like molasses.

Mark

Dr PR

#17
Jim,

I have attached a picture to illustrate the double surface problem.

At the left are two lines (vectors). The top blue line is just half the cross section outline of a desired pointed cylinder. The lower line is a full cross section.

In the middle you see the results of rotating both lines 360 degrees around the red axis (Y axis). Both look the same.

However, if you duplicate (N) each (in order to keep the original solids), select each, and use "Solids/Solid Explode" on them, they will explode into grids. They still look the same.

Then select the results and move (drag) the objects. You will discover that there are two grid surfaces in the green solid and only one in the blue solid.

If you use the green solid to subtract from another solid you will get very strange results. Basically, only one of the grids gets subtracted and the other remains behind. The resulting solid will have internal surfaces, and sometimes these will "plug up" through holes.

Phil
DesignCAD user since 1987

Dr PR

Jim,

I opened your drawing and exploded the bolt. I then extracted the end of the 0.2 diameter hole - you see the results in the first attached image.

As you can see the subtract failed to complete the removal of the surfaces where the small hole passed through the bolt. It did successfully separate some of the facets (red) from the hole end (cyan) but failed on others. However, it did not delete any of the red facets.

Why?

I can only speculate, but here are some ideas:

1. The bolt wasn't a complete solid. Look at the second picture. I changed the color of the bolt to cyan because that renders much better for showing surface details. Notice the missing facets on the threads around the end of the bolt? There is another missing facet at the opposite end of the threads. These are "leaks" and they will drive some NC machine and 3D stereolith programs nuts. They can also confuse DesignCAD as to what is "inside" and "outside" on a solid, and the solid Boolean operations do not like to be confused. This is asking for trouble!

2. Notice that there is still a cylindrical surface under the threads. This is an internal surface and it is guaranteed to screw up solid Boolean operations! A solid can have only one outside surface and it must be continuous (no holes). Looks like the thread spiral was not sucessfully added ("Solid Add") to the cylinder.

3. A solid should have no internal surfaces, but the bolt is full of them. Basically this creates a solid within a solid. When you execute the "Solid Subtract" routine it can't tell which set of surfaces should be subtracted from. As it is processing the subtracted solid it proceeds from facet to facet and determines whether or not that facet should remain. It will select one of the surfaces of the subtracted from solid and subtract from it. Having done that it moves on to the next facet of the subtracted solid, and if there are multiple internal surfaces in the subtracted from solid only one gets processed. This leaves behind all sorts of junk surfaces inside the resulting solid.

My guess is that as you created the bolt you inadvertantly produced a bunch of internal surfaces. These eventually caused confusion in the "Solid Subtract" routine, and what you see is what you get.

Making an accurate threaded bolt is actually one of the most difficult things to do in DesignCAD. If that bothers you, just remember that there have been $20,000 CAD programs that can't produce a threaded bolt or any helical surfaces. DesignCAD will actually do a really good job but you have to be very diligent at each step to be sure you have a legitimate solid with a fully closed surface and no internal surfaces.

Phil
DesignCAD user since 1987

MarkX

Quote from: Dr PR on January 07, 2013, 01:57:41 PM
Making an accurate threaded bolt is actually one of the most difficult things to do in DesignCAD. If that bothers you, just remember that there have been $20,000 CAD programs that can't produce a threaded bolt or any helical surfaces.
Recently? I've just seen a demo in a < $100 program that did a good job. Expectations change over time. DC should probably have a thread tool by now.

Mark

Dr PR

Mark,

Not recently, at least that I know of. Ten or fifteen years ago I read a review of CAD programs. Only $5,000 to $25,000 programs were mentioned. I wrote the author and asked why less expensive programs weren't considered. He replied that they were "toy" programs that didn't do much.

I then responded by asking if these expensive programs could solve a simple problem:

1. Create a cylinder.

2. Create a hole along the axis of the cylinder with helical groves, like screw threads or rifling for a gun barrel.

3. Then remove a conical cutout at one end of the barrel, with the centerline of the cone off the axis of the cylinder and helical threads.

To my amazement, of the eight or nine programs he had reviewed, none could do this. Several couldn't create helical threads at all. None could solve the extremely difficult problem of intersecting the helical thread surfaces with the conical surfaces, even if the cone and helix shared the same axis!

I sent him a picture of the object that the lowly DesignCAD "toy" had created.

Only a few years ago I was discussing this problem with someone who used one of the "top of the line" (expensive) programs and he said the program could not create screw threads! I don't remember which program it was.

So DesignCAD may have its warts, but you get a lot for your bucks!

Phil
DesignCAD user since 1987