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.

Solid Subtract leaving remnants

Started by Don A, February 11, 2014, 09:25:53 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Don A

I have been trying to subtract one solid from another but there is always some form of remnants /
leftover remaining. Both objects are the same depth. I tried making one object a little larger but then
the extraction size is incorrect. What is the best way to do this. Here is my file and a jpg. Any help
would be greatly appreciated.

Dr PR

Don,

You should avoid coplanar surfaces between the object to subtract and the object to be subtracted from.

In this case the front and rear surfaces are in the same plane and the remnant piece you point to is the part of the plane common to both objects.

Sometimes DesignCAD does the subtract correctly and sometimes it doesn't. But if you think about it it isn't surprising that it often fails. The program works with surfaces which are zero thickness. What do you get when you subtract zero from zero? Zero. From that standpoint there is nothing to subtract where surfaces overlap.

I suspect the real culpret here is the fact that the program is digital - it has finite resolution. I think the limit is something like 10^-15 decimal (0.000000000000001d). If you do operations that require calculations that generate more digits than that, the result will be rounded up to the nearest quadrillionth. In some cases the results will be different by the least possible amount, but still different. So that little remaining bit may be just one quadrillionth thick, but to the program this is non-zero so it isn't subtracted.

In your example, if the blue object was thicker than the red object the subtract would work every time.

It is inconvenient to have to create a separate "tool" solid for the subtraction when you have two pieces you want to subtract as you do, but you must do this to create an unambiguous situation.

Phil
DesignCAD user since 1987

prl

#2
Don,

The general advice Phil provides is good, however, DesignCAD as of version 17 forward does a fairly good job dealing with coplanar surfaces.  The key is ensure your members (and their profiles) are very accurate.

I took your drawing, measured the red and blue members and reentered the values.  In other words, I recreated the solid members as I believe you intended them. You have some small errors in your profiles.  Using the newer solids, the subtraction works as expected.

The file where I fixed your red and blue members is attached.  And a graphic that shows the subtraction without remnants.

Don A

Quote from: prl on February 12, 2014, 07:35:11 AM

The key is ensure your members (and their profiles) are very accurate.

I took your drawing, measured the red and blue members and reentered the values.  In other words, I recreated the solid members as I believe you intended them. You have some small errors in your profiles.  Using the newer solids, the subtraction works as expected.

The file where I fixed your red and blue members is attached.  And a graphic that shows the subtraction without remnants.

I am using version 19 and have tried several times and I'm still getting the same result. I noticed where you state that the key is to ensure your members
(and their profiles) are very accurate. I'm not quite sure what you mean by this. I entered all of the measurements manually  (such as Width: 1.6875, Height: 0.1667, Depth: 0.0625).
I'm not quite sure how you achieved this. What version of DCAD are you using and if you could explain a little more.

Dempsey

#4
Don,

When I use your original drawing in V23.0 and do the solid subtract I don't get the "remnants" as you indicated.
Dempsey

prl

If you used my file with version 19, it should subtract cleanly.  Also works with versions 17 to 23.

To clarify, when I measured the dado notch in the bottom of your solids, they measured .2451564" inches in height and .2438750" in width.  Plus there is an extra point in the profile.  Somewhere you got off a bit.

To see this, select the solid in point select mode and zoom in.  I assumed you intended .25" wide and deep so I rebuilt the solids to those dimensions.  The rest of the solid is 1'8 1/2" long, 3/4" thick, and 2" deep.

Don A

Okay gentlemen, I finally got it. I changed the thickness on one solid and and was very careful with the alignment. I had thought
that this task was somewhat simple but, its slightly a little challenging. Oh well, thanks to everyone for your quick response and, I'm
sure I'll be back with more questions. I'm also having issues with the dimensioning aligning properly in the main 3d view but I'll
keep working on it or submit a new post later. Thanks to all again  Dr PR, PRL, Dempsey

Dr PR

Don,

An accurate way to set points is with the "Point Relative" function, using the "Reference Point" option. You can gravity snap to an existing point/corner to draw to the next point with high precision.

The program defaults to the "Last Cursor Position" option, but this is a bad choice. It is the nature of digitizing devices like a mouse or trackball that they can stop moving right at the boundary between a "0" or "1" on the digitizer. When this happens a very slight vibration can cause the bit to flip and move the cursor. Just the vibration caused by typing numbers into the "Point Relative" dialog may be all that is needed to move the cursor a tiny amount. Another cause of this problem is the "mouse tail" (cord) tugging on the mouse and causing it to move. If this happens, and it happens far more often than most people are aware of, the "Point Relative" function will set a new point at the new cursor position and not where you think you left it. Then you use the latest cursor position for another "Point Relative" and the cursor moves another tiny bit, and so on. After a while these errors build up and you may find that many of the dimensions in your drawing are not accurate.

I speak from experience!

With the "Reference Point" option you type in the offsets, close the dialog and then position the cursor to set the reference point and start the operation. By gravity snapping to an existing point for reference you ensure that the relative offset will be accurate.

Another trick is to avoid building new line segments from the ends of the last created line segment. Instead, pick one point as reference and use offsets from this single point for all new segments. That will prevent cumulative errors in the event that one of the intermediate points is wrong.

Phil
DesignCAD user since 1987

prl

#8
Phi's info about setting points is good.  Whenever I make something, after I finish making it or the specific command, I always measure it in every which direction to ensure I entered the correct data. I check my input probably more often than most but it keeps me out of trouble.

The < hot key (Angle and distance between two points command - Menu>Dimensions>Info>Angle and Distance . . ., should be one of your regular commands.  Keep the precision at least at 10 or 12 to ensure your getting a good feel for the data you are entering and subsequently measuring and verifying.

Edit:  And so you understand what I mean by the profiles, attached are two graphics.  They are an end-view of your solid(s).  Graphic 1 shows the minor errors that will make proper solid subtractions troublesome.  Graphic 2 is the corrected solid the way I assumed you intended it.

Don A

Thanks again for the additional pointers. Never used the Angle and distance between two points command much but
I will start using this much more often. This project is for cabinet doors. I have an apartment unit in which one of the
tenants removed two of the upper cabinet doors and, since then this tenant has moved. So I'll need someone to build
the upper doors to match the lower cabinet doors and fit the upper base cabinet. As you can see the measurements
that I provide need to be somewhat accurate. Thanks again for all the tips.