News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Is there an easy way to determining whether two 3D entities intersect

Started by jmwright1058, December 19, 2023, 12:33:04 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jmwright1058

I'm using TurboCAD 2023 Platinum 64-bit.

I have 2 fairly complex 3D objects that fail the Boolean -> 3D Add command.
The message that results is "Operation unsuccessful. Do you want to create History Tree node?"

As you can imagine, the message doesn't provide much of a clue as to what the problem is.

I ultimately determined the reason the command fails and was able to fix the problem.
It fails because the 2 shapes are separated in 3D space by a 0.000001mm gap!

I challenge anyone to be able to identify this gap by looking at the objects on the drawing page.
It's virtually impossible to see it, even if you zoom to max!

I won't tell you how I found the problem. There are multiple ways to do that.
However, I will say I proved this was the issue, by moving one of the objects closer to the other, using the Delta Y command; entering -0.000001mm into the command box and hitting return. The Boolean 3D Add command then succeeded.

My question to the forum is the same as the title of this post. "Is there an easy way to determining whether two 3D entities intersect?"

This would make it infinitely easier to find the problem.

I was very fortunate that the point of contact on the 2 objects are in a plane that's parallel to the x-z axis (or y=0), in the WCS (World Coordinate System). If this had not been the case, I probably would have been bald before finding the problem. My hair is getting pretty thin.

Is there anyone that can answer my question?

Regards,
John

Torfinn

I don't know what cfg (UI) you use, but in default there id Clash detection tool in Tools at the bottom, that will tell you is any of the 3D objects intersects( Interlocks )and put that out in a excel list, there you can see if they do, if there are none it will give you a message about it

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

PCSteel

The 'Clash Detection' tool would be very useful if it worked properly. As it is the 'Select Entities' option doesn't work, which means you have to use 'All Drawing'. The reult of this is a huge excel list because it lists objects that are touching as well as objects that are overlapping. It's possible of course to sort the list but even then it is difficult to identify the resulting objects.
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

murray dickinson

TC will add objects that don't intersect, which isn't true of all CAD apps.  You can determine the volume of each object in physical metrics, if they intersect when added, the volume of the result will be less than their individual volumes added.

Alvin Gregorio

Quote from: jmwright1058 on December 19, 2023, 12:33:04 PMIs there an easy way to determining whether two 3D entities intersect

Regards,
John

What Murray said.

Also:
>One can do a 3D_Boolean_Intersect on the two (or more) objects, choosing the Local Menu option Keep Original
>Immediately invoke the Add to Selection in Reverse Order command
  which will select the entity which is the intersection of the two (or more) objects, if they indeed intersected
>Check out the Selection Info Palette top pane to see if anything's listed
>If there is and it's too tiny to see, Zoom->Selection
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

Quote from: PCSteel on December 19, 2023, 05:17:26 PMThe 'Clash Detection' tool would be very useful if it worked properly. As it is the 'Select Entities' option doesn't work, which means you have to use 'All Drawing'. The reult of this is a huge excel list because it lists objects that are touching as well as objects that are overlapping. It's possible of course to sort the list but even then it is difficult to identify the resulting objects.


Not at my place in v 2023 Platinum, i open the tool and select what i want, then check for selected object and finish selection (it stand on all by default) and it will make the list with the object i selected that are interlocked

Torfinn

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

PCSteel

Quote from: Torfinn on December 20, 2023, 12:09:49 AM
Quote from: PCSteel on December 19, 2023, 05:17:26 PMThe 'Clash Detection' tool would be very useful if it worked properly. As it is the 'Select Entities' option doesn't work, which means you have to use 'All Drawing'. The reult of this is a huge excel list because it lists objects that are touching as well as objects that are overlapping. It's possible of course to sort the list but even then it is difficult to identify the resulting objects.


Not at my place in v 2023 Platinum, i open the tool and select what i want, then check for selected object and finish selection (it stand on all by default) and it will make the list with the object i selected that are interlocked

Torfinn

Torfinn

That's interesting, maybe it's been fixed in the latest release. I'm told I need to uninstall TC2023 build 63.3 and install the latest (2023.1?) - can't just update. I've been hesitant to go through these hoops.
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Torfinn

Maybe, i would not know, as i never use it, only testing
b 69 is the latest build, after the boring part of un install TC it just take some minutes to set it up again, so...

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

jmwright1058

First off, thank-you all for the tips.

As I'm no expert on TurboCAD, it's taking me a bit of time to digest each of your responses.
I'm pretty diligent, but only 8 years intermittent experience makes it a challenge.

I use the CommandCAD interface. It seems to suit me. I used AutoCAD in the 80's; the company I worked at paid for it; it's expensive now (maybe it doesn't exhibit some of the failures I'm seeing with TurboCAD).

To Torfinn:
    I found the 'Clash Detection Tool' (thanks)
    I succeeded at using it by placing the 2 objects/entities on a separate drawing sheet.
    I selected the 2 objects, then clicked on the Clash Detection Tool.
        The Excel file showed Body1 EntityID - 14795 and Body2 EntityID - 14745, with Clash Description saying 'Bodies interlock'.
    I then moved one of the Entities away so it didn't overlap and then re-ran the tool.
        The Excel file wasn't created, but a window said 'No Clash Detected in the drawing'
    All Good!

To PCSteele:
    Perhaps you use a difference interface, I can't find 'Select Entities' and 'All Drawing' options.
        In interface I use (CommandCAD), I have Home -> Select By -> Entity Type -> [many entity options]
        or, Home -> Select By -> Select All, which might be the same as the 'All Drawing' option you mention.
     When I choose 'Select All' followed by click on one Entity (to select), then Shift - click on 2nd Entity,
         Both objects are selected
     Then I click on the 'Clash Detection Tool' and it works fine, as I described to Torfinn above.
     I'm running TurboCAD 2023 Platinum 64-bit Version: 30.0 Build: 48.1

To Murray Dickenson:
    I'm 'Not' able to determine the volume of each object in physical metrics.
        I don't know where this is located.
            Is this in the Selection Pallet?
                In upper window, a PartTree with a 3D Add beneath it and a Simple Extrude beneath that.
            Under Metrics it shows Object type = Part and Extents Size = 19.117045
                But there is nothing called 'volume anywhere'
            Can you tell me what command or tool you use to display volume?
                Does this work for a PartTree?
    I do I see what you're saying, that TurboCAD adds 3D Entities that don't intersect.

    I see that when they are obviously separated in space.
    However, in some cases where the Entities are themselves a Boolean 3D Add of 2 other Entities, I see 2 different behaviors:
        Behavior 1) Where the 2 Entities (and all sub-entities) are in clean contact with one another only at a surface plane.
            The Boolean 3D Add succeeds without an issue.
        Behavior 2) Where one of the 2 Boolean Added sub-Entities is in clean contact with another at a surface, but the other 2 sub-Entities have a very small gap between them.
            The Boolean 3D Add fails with the message 'Operation unsuccessful. Do you want to create History Tree Node?'
                If I answer 'No', a window pops up saying 'The resultant ACIS Solid is degenerated. The boolean operation is discarded.'
                    Do I need to re-start TurboCAD at this point, or can I just continue as if I had not executed the Boolean 3D Add command?
            This behavior is very concerning to me. I've dealt with this by re-building all the sub-Entities from scratch and then repeating the Boolean 3D Add operations. It seems like, sometimes, the surfaces in the resultant Entity have moved by an extremely small amount (0.000001mm!). When it fails, is there is some sort of rounding error in TurboCAD tool?

To Alvin Gregorio:
    When you say '3D_Boolean_Intersect', are you referring to the command '3D Intersect'?
    If so, when I do this with some of the Entities that show up as 'PartTrees', the command fails with a Warning Window that says, 'Operation unsuccessful. Do you want to create History Tree node?', even though there is obvious overlap in them.
    So, I believe what you say about the '3D Intersect' command, however, I don't have the option 'Keep Original' on the Local Menu. I have the 'Make Copy' on the Local Menu, and when I hover over it the text in the lower left status bar says 'Make a copy and leave the original'.
    I think, maybe if the 3D Intersect command were to succeed, then the 'Keep Original' option may appear on the Local Menu.

By the way,
    In my interface (CommandCAD), I created a new tab, placed the commands 'Clash Detection Tool', 'Show 3D Intersections', '3D Intersect' and 'Add to Selection by Reverse Order' there.

Again, thanks for the help!
John

murray dickinson

John, physical metrics are obtained with the third-from-RH item at top of SelInfo. 

jmwright1058

Thanks Murray,

5 of the Icons in your picture only show on my screen when an object is selected (my bad).

When I select 2 objects these Icons disappear (whatever; I guess that's the way it works). This function is not a calculator; it won't add volumes using shift-select, etc.

So, I have 2 objects:
    Object 1 is the boolean add of a simple extrude and a sweep.
    Object 2 is the mirror of object 1.

Volume of Object 1 is ~690
Volume of Object 2 is ~690

I place these 2 objects next to each other, then slide one of them toward the other (a small distance), so the 2  overlap. Then I boolean add them together.
Volume of Object 2 + Object 1 = ~1300

But, total volume of the 2 objects separated in space = ~1380

This proves what you are saying and how you can use volume to see whether objects overlap.

Thanks and Regards,
John