News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

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.

Debugging Boolean 3D Add Operation Failures

Started by jmwright1058, January 08, 2024, 01:32:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmwright1058

I am attempting a Boolean 3D Add Operation on two 3D objects.
Both of these 3D objects are Boolean 3D Subtracts from Rail Sweeps.
I tried moving the objects closer to one another and even overlapped them by a small amount, but the Add still fails.
Does someone know of a technique or process whereby this failure can be debugged?

Regards,
John

Andy H

I don't know about 2023.  But normally there is no log as to why a boolean add failed.  You can check if ACIS reports a problem with any of the parts, by going to the selection palette options button (top of the selection palette).  click on Audit options button, and see if ACIS check entity is ticked.

When ticked TC will put a red icon against a part if it is faulty. listed in the selection palette, when an object is selected.
No red icon usually means the part is OK.  If faulty on can get a report as to what is wrong,  but normally these reports are of no real use the user.

Caution.  Leaving ACIS audit turned on, on 3D drawings with lots of parts, can slow down TC a bit.  I usually only turn it on when I think there may be a problem.

Can you post a file with just the two parts affected.


jmwright1058

Thanks Andy,

I enabled 'ASIC check entity', as you pointed out.
    One of the objects doesn't show any 'Entity check' failure(s).
    But the other object does show a single 'Entity Check' failure on a sub-part in the PartTree.
        I didn't have this check enabled, so I had not seen this issue until now.

As you requested, I attached a file containing just the parts to be Boolean 3D Added.
    As you can see, the part sitting on the horizontal plane has a 'Check entity' failure on a 3D Subtract sub-part.

The failing part is quite complex, but finding the underlying issue is now made much easier.
    I can follow the bread crumbs to their source.

Thanks and Regards,
John

Andy H

Quote from: jmwright1058 on January 09, 2024, 04:54:05 PMAs you requested, I attached a file containing just the parts to be Boolean 3D Added.
    As you can see, the part sitting on the horizontal plane has a 'Check entity' failure on a 3D Subtract sub-part.

Hi.  I was thinking a file would help others in diagnosing the problem.  So hopefully someone with TC 2023 will take a look. unfortunately I don't have 2023.  Or maybe someone will save back to 2022.

Torfinn

Here Andy
The filesize went up nearly 3MB, original file was 0,3 Mb in v 2023

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

Andy H

#5
Thanks Torfinn.

John.  Well that was fiddly.  In a way, its not surprising the boolean fails, because of the 'odd' angles that the two parts meet.  But I had a play. and this is the best I can come up with, to get a successful boolean.

wrkempson

Or,

I am using 2023.  Separate the two parts, then assemble them with the assemble by 3 points tool (I used two source points).  This puts the two part faces in alignment.  Now they will add into one part.  At least, it worked for me today.  Who knows about tomorrow.

Wayne

jmwright1058

Wow! I think I hit the lottery here.
Thanks guys!

Wayne (wrkempson),
    I'm impressed you found 2 points that did the trick.
    Thanks for pointing out the 'Assemble by' tools.
    I've seen them, but haven't had the opportunity to use them yet.
    I put these in it's own category in my interface. I use CommandCAD, which seems to fit well with the mechanical work I do. I'm sure AutoCAD spent a lot of resources coming up with this arrangement.

Torfinn,
   For saving the file in 2022.

Andy H,
    Thanks for telling me the surface planes don't align. I'm not sure how you determined that, but I definitely believe it. I've suspected that some TurboCAD tools invoke healing to accomplish their objectives, especially while attaching objects at their surfaces. Not sure if that's true, but it seems plausible.

I'm impressed with your ability to see the details and do repairs. I've done a little of that, but haven't used the Sat healing tool. I will use it in the future.

I like the way you built up the opposite side of the object. I've always built the corresponding objects from scratch and them assembled them...your method is less time consuming and maybe more reliable.

My next challenge will be Adding the objects to the top. There may be some healing required there.

John

jmwright1058

Andy H,

Would you mind telling me how you found out the surfaces:
    1) Were not parallel?
    2) Were not in contact?

Regards,
John

murray dickinson

TC's translation tools, especially generic translation in the context menu, make the assembly tools redundant.  They work almost exactly the same way, but will move more than one item at once, and you can record compound transformations and apply the record as a script to move other selections through the same assembly/alignment sequence.  Generic trans encompasses almost all of the other tools and it's available with a right-click, press G when there's active selections. 

Andy H

Quote from: jmwright1058 on January 10, 2024, 03:45:09 PMWould you mind telling me how you found out the surfaces:
    1) Were not parallel?
    2) Were not in contact?

Guesswork. (Note I used TC 2022).

The first this I did was to invoke Degenerative faceting. (Options menu - ACIS).   This reduced the amount of edges that are displayed of and object, and can sometimes make it easier to see where things connect.

The rest is guesswork.  in The attached, we can see with edge A, that the blue and red are coincident, so should be a good fit,  With edge B, At the right it is above the blue line, and at the left it falls below the blue line, so the two edges are not coincident.  And where they cross at point c, is a good candidate for causing a problem.

So I guessed, that one way to overcome the problem was to eliminate the crossover point c, by extending part of the blue edge, so it goes into the red part.  Many times it is trial and error, trying to find out what is causing a problem with boolean add or subtract.

Normally ACIS isn't bother whether one edge  is above or below another.  But, especially with one part already being labelled by TC as having bad geometry, sometimes, one just has to make things as easy as possible for ACIS.

Alvin Gregorio

Quote from: jmwright1058 on January 10, 2024, 03:45:09 PMWould you mind telling me how you found out the surfaces:
Quote from: Andy H on January 11, 2024, 07:32:54 AMGuesswork. ...
All that said-- I think it's important for John Wright to keep in mind:  It is not a requirement for the 3D_Boolean_Add operation that the entities be touching or intersecting.

My having played with this file very minimally, I have to suppose that the fact the faces are miniscually apart is what's causing the error.  Pull one of the objects away a bit more significantly, and the Add works.
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)

wrkempson

Murray,

Thank you for pointing to the generic transformation tool.  In all the decades that I have used TC I ignored the transformation tool because it seemed redundant of the assembly tool.  Now, after playing around with the transformation tool for a while, I get your point regarding who is redundant of whom.  Thanks again.

Wayne

jmwright1058

#13
Wayne,

I succeeded Adding the 2 objects using Assembly by 3 points (using 2 points).
Thanks


Alvin Gregorio,

I think you are right on about Add/Subtract failures stemming from parts having a miniscule separation.
But, also, they might be ever so slightly rotated relative to one another.

I can succeed the Add by increasing overlap, or separation. But alignment errors accumulate.
Then when I submit the assembled part for 3D print or plastic injection, the vendor kicks back errors.
Overlaps are fine...gaps don't pass vendor design checks.
They want me to fix them, or charge me. I always fix them.


Thanks Murray,

I concur with Wayne on the generic transformation tool. I'll have to learn more about it.


Andy H,

Thanks for the tip on invoking Degenerative faceting. (Options menu - ACIS).
Even though I eventually found 2 points of contact to 'Assemble by', using Degenerative faceting should point me to the connect points without guessing.
I wasn't sure what you meant by edges A and B. but I did just find your attachment...thanks.
The 2 objects are built from different profiles (even though part of the profile is identical). I initially created the 2 parts based on the exact same profile. I swept the profile upward (z axis) for one part and horizontally (y axis) for the other. I used the idea, if you cut the upright part at 45 and the horizontal part at 45, the fact the profiles are the same, means all vertexes should intersect. This worked initially.
But then, I began slowly modifying the profiles until the tools could no longer find the intersection easily.
I'll eventually find my way back to a solution. Like you say, I may have to reduce the differences between the profiles, so the tool can figure it out again.


All,

I always start with a solid WCS location, usually (0, 0, 0), and work orthogonally.
I almost always place parts on even integer WCS locations.
This way, when I encounter Add/Subtract issues, it's more obvious when the tools have introduced approximation errors. Red flags show up as locations of key indexes/intersections, etc. reflecting non-integral values.
If I stick to fixing everything, approximation errors stick out like a sore thumb. Values off by 0.00001mm are pretty easy to find.
My manipulation and visualization skills aren't as good as you guys, so it takes me longer to find the root.

What bit me in early stages of this design was getting UCS y and z axes 180 degree rotated on my custom top level assembly template. Even though I was building library components based on a template with all 3 WCS and UCS axes aligned, the fact that this was not true for the top level assembly sheet caused me grief when I pulled my own parts from the library. They had to be rotated, sometimes about 1 axis, sometimes 2.
I believe this rotation introduces approximation errors. I can't always prove this, but, my intuition tells me it's true.
I've been scared to re-build the entire design on a different template, for fear I would never get it assembled again. So, here I am.

Regards,
John

jmwright1058

Guys,

I just enabled the option 'Show PartTree in depth'.
This revealed another 'Entity check' failure.

More bread crumbs to follow home.

John

Alvin Gregorio

Quote from: Torfinn on January 09, 2024, 07:11:09 PMHere Andy
The filesize went up nearly 3MB, original file was 0,3 Mb in v 2023

Torfinn
Any chance you had Save proxy objects enabled in Save/Setup Torfinn.

I found that can increase file sizes dramatically.  So I stopped using it, unless for a purpose.
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

I just checked and i had Proxy checked Alvin, normally i never care, only this time i noticed the filesize went up a lot

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

Vlad Veselov

John

I learned a lot of interesting things about ACIS from your file. :)

The picture shows the junction area enlarged by 1E6 times (scale by Z) and for convenience, the objects are converted to ACIS Surface.
It can be seen that one of the planar (flat) facets (as shown by ACIS) is not flat. That is, this facet is only approximately flat. This is where all the problems come from.
You can roughly estimate the deviation from the plane - 0.2mm, that is, in the original file the error was about 2E-7.

Obviously, you need to remove the curvature from the contact point: or slightly move the facet/body or increase the size of the objects (after addition you will need to reduce the objects accordingly), in this case the relative error will decrease and will be within the ACIS error limits, that is, ACIS will stop considering this an error.

In the video, objects are magnified 7 times before being added together.

This miracle facet, which is flat, but not flat, can be viewed in the attached TCW file.

Vlad

Alvin Gregorio

Quote from: jmwright1058 on January 11, 2024, 04:09:04 PMBut, also, they might be ever so slightly rotated relative to one another.
Rotation, of objects or faces, relative to one another, doesn't have anything to do with it.  Does not cause Boolean operation faults.
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)

jmwright1058

#19
Murray,
Quote from: murray dickinson on January 11, 2024, 02:44:16 AMTC's translation tools, especially generic translation in the context menu, make the assembly tools redundant.  They work almost exactly the same way, but will move more than one item at once, and you can record compound transformations and apply the record as a script to move other selections through the same assembly/alignment sequence.  Generic trans encompasses almost all of the other tools and it's available with a right-click, press G when there's active selections. 

I see what you mean about using the 'Generic Transform' tool like the 'Assemble by 3 Points' tools.
I separated the objects in Test Case Rv2.
I used 'Generic Transform' to position the horizontal part against the vertical part at the 45 degree facet with 2 connect points.
Just like using the 'Assembly by 3 Points', the 'Boolean 3D Add' succeeded, but you know that, huh.
I think it's going to take some time to master the recorder, though.


Alvin Gregorio,
Thanks for your tip about rotations not being related to the Boolean 3D Add problem.
This will save a lot of wasted time on my part.


Andy H,
I'm having trouble finding Degenerative faceting. (Options menu - ACIS).
Does this only show up when the part is in ACIS mode?
I purposely avoid looking at parts in ACIS mode because the PartTree details disappear... I'm afraid I might save it in that mode and loose my work.
Do I need to view the parts in ACIS mode, then enable Degenerative faceting, to identify the most important vertices?
How do I view (turn on) the parts in ACIS mode?


Vlad Veselov,
Thanks for the ACIS analysis. This definitely deserves some study.


Thanks guys,
John

murray dickinson

#20
Using generic transformation with the first pair, then right-click and press F, or flag finish, is like the Move tool.  Use two pairs, if the first pair is the same point for from and to, the second pair rotates the entity about it, then right-click and press F, or flag finish, that's Rotation, or if the first pair isn't coincident, then it's Move + Rotation, or align/assemble along an edge or line.  Three points you already know about.  Not having to reposition the reference point or axial handles, or even have to think about where to shift them to, is a frequent advantage, but the thing I like most about it is that all of those capabilities stem from that right-click, press G, when there's a selection active.  No having to set up toolbar, menu or buttons for translation or assembly tools, locating them or having to look for them.   

jmwright1058

Thanks Murray,

The additional information is definitely useful. I will no doubt make more use of the transform tool in the future.

In my situation, however, there are several parts, which need to be 'Added'. If one of the earlier parts is rotated, the first Add succeeds, but, because the transform tool rotated the part, a number of vertexes on the part were moved, to the point where the next Add fails. After a few attempts to Add several parts together, it becomes obvious I'm playing a game of Whack-A-Mo. My design has over a hundred parts, so it's not feasible to use the 'Transform' tool, or even the 'Assemble by 3 points' tool.

The way to solve the Whack-A-Mo problem is to place all the parts at their respective WCS location. This way, each part remains oriented the same as when it was pulled from the library (this will still require 90 or 180 degree rotations about 1 or 2 axis for some parts). Some of them will fail to Add, but, the Add failures can be addressed individually; and without rotating them after initial placement.

The way to resolve each individual Add failure cleanly and completely is to:
    - Retain the original part orientation
         As indicated above, this is what puts a stop to the Whack-A-Mo symptoms.
    - Make sure both connecting surfaces are flat
    - Pull the plane of one or both parts a small amount in the direction of the other part, until there's an overlap large enough for TC to recognize the 2 parts as overlapping.

Regards,
John

jmwright1058

#22
Murray,

I went back and used the 'Generic Transform' tool to position the 2nd part.
The Boolean 3D Add of these parts then succeeded.

And Adding the 3nd part to the first and all subsequent Adds succeeded.
This worked without re-positioning the 3rd part using the transform tool.

However, when looking at the 3rd part, relative to the 2nd part, they are not registered precisely.
There's a small shift and rotation in their facets, even though these facets are identical.
When you look at the part in 'Quality Rendering' you can see the shift.

I like the fact that the 'Generic Transform' tool can succeed at placing 2 parts together, even though their planes are not exactly parallel and/or the facets do not match precisely.
This is definitely useful.

However, I end up with an imperfection that I can't accept in the final design.

I'm glad I followed through with using the transform tool.
Where the 'Boolean 3D Add' failure puts out an error message that makes zero sense, the transform allows you to move forward to a result and then see the problem as a visual defect, which you can debug.

I now know, the problem lies in my first part (the horizontal part). I can move forward with a fix now.

This has been a very useful exercise and I appreciate the help everyone gave me in getting through this.

Thanks and regards,
John

Alvin Gregorio

Quote from: jmwright1058 on January 16, 2024, 04:27:55 PM...
I now know, the problem lies in my first part (the horizontal part). I can move forward with a fix now.
...
Having explored your drawing a bit, if it were me, I'd start over.
Now with your new knowledge, it should go very quickly.
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)

jmwright1058

Is it possible to move a particular vertex of a PartTree?

Regards,
John

nikkipollard

#25
Quote from: jmwright1058 on January 18, 2024, 02:05:20 PMIs it possible to move a particular vertex of a PartTree?

Regards,
John
Yes, that is the idea behind the part tree.
In the selection info palette find the original and edit content (at the top).
It is easier if you started with use compound profiles active when you created the initial 3d part. But if you didn't have compound profile active you can replace the graphic in the edit content with a new one or use the old method to update the compound profile.

https://turbocaddoc.atlassian.net/wiki/spaces/T2UG/pages/99942487/Profile+Editing
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

murray dickinson

With compound profile enabled in creating the part, you don't have to perform simple edits (like moving, adding or deleting vertices in a profile) in the part tree. Edit the profile and the part will update, where the profile is used in any profile-based component of the part, extrude, sweep, cone, revolve, loft, prism etc., and even when that operation is way back in the part tree. 
If you're referring to situations where TC has asked you if it should create a part tree node representing a failed Boolean, if you correct the condition that caused the Boolean failure, the part tree will update with the Boolean represented properly, without having to rehash everything.

Alvin Gregorio

Quote from: jmwright1058 on January 18, 2024, 02:05:20 PMIs it possible to move a particular vertex of a PartTree?
You might want to clarify what you are asking here.
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)

jmwright1058

Alvin Gregorio,

My reason for moving a vertex (should have used the term 'node') was to help convince the Boolean 3D Add tool to succeed. The WCS coordinates of many of the nodes of the two 3D objects were only different by 0.000001mm.
Even though the WCS coordinates of a few of the nodes were dramatically different, I thought the tool would succeed the Add if more nodes were identical.


nikkipollard,

Where do I enable 'compound profile'
I've searched the TurboCAD 2023 manual, but I can't find this option.



Regards,
John

Torfinn

There is one down on right side on Inspector bar, if there is not one on the tool you use, normally on left side in Inspector bar area

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

#30
Thanks Torfinn,

I did find 'Auto select compound profile' on the bottom right.
    This Icon is visible when Select mode is on.
        Is this it?
    If I click on 'Auto select compound profile' Icon, there doesn't seem to be any indication that it's on.

How do I tell if compound profile is enabled and/or whether 'Auto select compound profile' is enabled.

Regards,
John

Torfinn

At my place using default cfg (UI) it will get lighten with a kind of blue'ish color, i dont know how it look like in Classic, but it is something similar

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

Thanks Torfinn,

I see what a highlighted Icon looks like now.
It's a toggle, and after clicking it, you have to move your cursor away from the Icon to see whether the highlighting sticks.

You would think I would know what the different types of Icons look like by now (;---o)

Regards,
John

nikkipollard

#33
Quote from: jmwright1058 on January 29, 2024, 10:08:31 AMAlvin Gregorio,

My reason for moving a vertex (should have used the term 'node') was to help convince the Boolean 3D Add tool to succeed. The WCS coordinates of many of the nodes of the two 3D objects were only different by 0.000001mm.
Even though the WCS coordinates of a few of the nodes were dramatically different, I thought the tool would succeed the Add if more nodes were identical.


nikkipollard,

Where do I enable 'compound profile'
I've searched the TurboCAD 2023 manual, but I can't find this option.



Regards,
John

When you start a 3d tool, which uses 2d profiles,  you can type ALT+Z or right click on your mouse and "Use Compound Profile", the 2d profile will be linked to the 3d object (editing the 2d profile will update the linked 3d graphic).
https://turbocaddoc.atlassian.net/wiki/spaces/T2UG/pages/97517570/Compound+Profiles

If you forgot to have "Use compound profile" on you can still edit the 2d profiles, but there are more steps.
Find the graphic in the Part tree, in the Selection info palette
Select the graphic in the SI palette
At the top of the palette choose edit content
Select the 3d graphic
Right click and click on "Select profile"
A 2d profile will be highlighted -  cycle through the profiles by right clicking and selecting "Use Next Profile"
When you find the profile you want to edit;
Type Ctrl+Space or click on the edit node tool in the inspection bar. Edit the profile.
https://turbocaddoc.atlassian.net/wiki/spaces/T2UG/pages/92603033/Adding+a+Node
https://turbocaddoc.atlassian.net/wiki/spaces/T2UG/pages/92603054/Deleting+Nodes



Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

jmwright1058

#34
Thank you so much nikkipollard,

Introductory analysis:
    The following paragraph isn't critical to helping me resolve my issues; you can skip it if it bores you:
    The objective is to Boolean 3D add two very different 3D objects. I've created each of these through a series of sweeps, adds, subtracts and simple extrudes. After all the complicated series of steps to build the objects, there is expected to be a joining surface that is identical, in terms of the number of nodes and the WCS coordinates of each of these nodes. Just to assure you, I have successfully Added earlier versions of these objects from prior library versions of them. It's only after updating both of them, the Add fails.



I have a table. One column contains the WCS coordinates of the contact surface of the FIRST object's nodes and another column contains the the WCS coordinates of the contact surface of the SECOND object's nodes, where contact surface is where the 3D objects are bonded together.
There are 135 nodes. I only compared about 60 of the nodes, but I'm confident the ones I didn't compare are not contributing to the failure.
I believe the Add tool tries to associate each node on one object with a corresponding node on the other object. The Add will succeed if every node on one object has a corresponding node on the other object (with the same WCS coordinates). This is for the case where the 2D surfaces are identical. There are other cases where the Add will still succeed, but for this discussion I won't talk about them.

I've proven Add tool will connect a node on one object with a corresponding node on other object, even if WCS coordinates are different by 0.000001mm (maybe even 0.000002mm; proof isn't completed yet).

nikkipollard or anyone else interested in this post,
    Is my theory even close to being correct?


Status of current debug:
    Using the table of nodes, I've located a series of nodes that don't compare. Some of them do compare, some of them do not. This series of nodes corresponds to the same arc in both profiles. The arc for one of the object's profiles is slightly different than the arc in the other object's profile. There are nodes with significant differences in WCS coordinates as well as one profile having 2 more nodes that the other.
    Next step in my debug:
        I'll try editing the arc in the 2nd profile, so it's identical to the corresponding arc in the first profile.
        I'll first try cutting the arc from the first object profile and pasting it into the 2nd.
            I realize this may not work because the Add tool may object to some of the nodes not being different by 0.000001m or 0.000002mm. The Add tool might be too smart to fool!
        My 2nd attempt will be to add and subtract nodes that are missing or extra in the 2nd profile until it's identical to the first. Again, the Add tool may baulk at this because it's smarter than me.

Regards,
John

jmwright1058

Alvin Gregorio,

Sorry I'm just getting around to answering your question.
I do not and did not have 'Save proxy objects' checked (enabled).

Thanks,
John

murray dickinson

The addition tool isn't comparing the nodes of one profile relative to another, it uses the geometric description of one solid, which is a boundary representation (BREP is the jargon) and where two objects intersect, calculates the surface intersections between them and uses those as trim curves to modify the faces that connect along them.  When you've created two objects with ostensibly coincident geometry, that's called "degeneracy" and is unhelpful to 3D geometry kernels, because instead of being absolutely definitive, their discrete geometric definitions are loadeded in memory using floating point calculation which introduces uncertainty and leads to Boolean failures.  Adrian Bowyer, founder of the RepRap movement, wrote an explanation of the reasons why 10 and more years ago, but the upshot is that you get reliable Booleans by using workflows that consume or create faces rather than trying to match them (or points or edges too) in 3D space.  Adrian was talking about general principles, not any specific kernel or program, this isn't peculiar to TC or ACIS.

jmwright1058

#37
Thank-you murray dickinson,

So what I think you're saying is, 'just correcting the number of nodes and the WCS locations of these nodes is not enough to fix the Add failure. I need to correct the differences in the geometric description of the failing arc; the node differences between the profiles will disappear as a result of fixing the geometric description.'

Is this correct?

If I explode the profiles (closed polylines) into a collection of interconnected lines and arcs, is the geometric description you refer to, the information shown in the Selection Info pallet (in the 3D and Metrics categories) when the arc in question (the one that causes the Add failure) is selected?

Regards,
John

murray dickinson

Without spending too much time on this, in part tree, I edited the piece you subtracted from the component on the world plane, enlarged it using the polyline profile so that no edges coincided.  I suppressed the subtraction from the "upright" component, then intersected it with an extrusion of that large profile, so the mating faces are determined from the same plane, after which it added. 

Alvin Gregorio

Quote from: jmwright1058 on February 01, 2024, 12:03:04 PMI have a table. One column contains the WCS coordinates of the contact surface of the FIRST object's nodes and another column contains the the WCS coordinates of the contact surface of the SECOND object's nodes, where contact surface is where the 3D objects are bonded together.
There are 135 nodes. I only compared about 60 of the nodes, but I'm confident the ones I didn't compare are not contributing to the failure.
I believe the Add tool tries to associate each node on one object with a corresponding node on the other object. The Add will succeed if every node on one object has a corresponding node on the other object (with the same WCS coordinates). This is for the case where the 2D surfaces are identical. There are other cases where the Add will still succeed, but for this discussion I won't talk about them.

I've proven Add tool will connect a node on one object with a corresponding node on other object, even if WCS coordinates are different by 0.000001mm (maybe even 0.000002mm; proof isn't completed yet).

nikkipollard or anyone else interested in this post,

    Is my theory even close to being correct?
No.  Not at all.

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)

Alvin Gregorio

This is such a simple model.  At least the intended model is.
I recommend to stop trying to force remedies to the poor initial modeling, and just re-model it, using more sound and simple methods that will result in much simpler geometry.

Now that you've gained some experience, you can probably go the rest of your TurboCAD life without ever encountering an issue like this again.
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)

nikkipollard

Quote from: murray dickinson on February 01, 2024, 03:31:27 PMThe addition tool isn't comparing the nodes of one profile relative to another, it uses the geometric description of one solid, which is a boundary representation (BREP is the jargon) and where two objects intersect, calculates the surface intersections between them and uses those as trim curves to modify the faces that connect along them.  When you've created two objects with ostensibly coincident geometry, that's called "degeneracy" and is unhelpful to 3D geometry kernels, because instead of being absolutely definitive, their discrete geometric definitions are loadeded in memory using floating point calculation which introduces uncertainty and leads to Boolean failures.  Adrian Bowyer, founder of the RepRap movement, wrote an explanation of the reasons why 10 and more years ago, but the upshot is that you get reliable Booleans by using workflows that consume or create faces rather than trying to match them (or points or edges too) in 3D space.  Adrian was talking about general principles, not any specific kernel or program, this isn't peculiar to TC or ACIS.
Thanks Murray.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

jmwright1058

#42
Thanks all,

I've come up with the following general process for debugging some Part-Tree issues:
I acknowledge, this technique is not for the faint of heart, and it can take a long time to trace back to the source. But it can be useful if you are stuck with a design that has Boolean 3D operation failures.

Here it is:
For all parts you intend to place in the library, define critical reference points on every profile or 3D object. Align these reference points to an even decimal (mm or tenth of an inch) on the grid. Place a cross-hair on each of the critical reference points.
    I use two intersecting 2mm lines for the cross-hair...one on the x-axis and one on the y-axis.
    I place the cross-hair on the CL layer, so it shows up in red.
Select both the object (profile or 3D object) and all cross-hairs for that object.
    If the object is a part of a much larger object, using Select All can work here. Also, Isolating the object is a good technique.
***********************
    Warning
***********************
    Be careful you understand you are about to move only the selected objects within the WCS. Those objects that are unselected will not be moved and you will loose their relationship to the selected objects.
***********************
Place the reference (Local Menu) on the cross-hair corresponding to a critical reference point.
Then move the entire selection to WCS (0, 0, 0), by hitting tab until the Pos X is highlighted.
Type zero in Pos X, Pos y and Pos z boxes, then hit enter.
    At this point, an object and all cross-hairs associated with that object are selected, and the reference is located at the cross-hair corresponding to a single critical reference point (a vertex or node).
Now, without changing the selection, move the reference point from the cross hair to the critical reference point using Local Menu 'Edit Reference Point'.
    On Local Menu set Local Snap to Vertex (this step is critical, because it enables selecting the critical vertex (or node) as opposed to selecting the cross-hair.
Look at the WCS coordinates. If they are NOT exactly (0, 0, 0), then a problem has been introduced in the construction of the object.
    Differences on the order of magnitude of 0.000001mm are of lesser importance, but can nonetheless be an indication of a problem.

Look at all critical reference points, comparing WCS coordinates of the reference point with the cross-hair corresponding to that reference.
This procedure can be performed on an object of any complexity as long as you're in the PartTree view.

It requires a lot of deliberate thinking, and the amount of time it takes depends on the order with which you pursue the evidence. For complex objects there will be quite a few issues to examine. I've found that it saves time to collect as much evidence as you can, before you start making changes.

I would recommend using this technique if:
    - You have re-built an object from scratch multiple times and it still doesn't meet your requirements
    - And it fails Boolean 3D operations (Add, Subtract, etc.)

Regards,
John

Alvin Gregorio

TurboCAD comes with a crosshairs tool.  It is one of the Point Tool options.
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)

nikkipollard

Quote from: Alvin Gregorio on February 06, 2024, 04:51:55 AMTurboCAD comes with a crosshairs tool.  It is one of the Point Tool options.
Are you referring to the center mark tool Alvin?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on February 06, 2024, 05:34:26 AM
Quote from: Alvin Gregorio on February 06, 2024, 04:51:55 AMTurboCAD comes with a crosshairs tool.  It is one of the Point Tool options.
Are you referring to the center mark tool Alvin?
No.  The Cross type of the Point Tool.
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)

jmwright1058

#46
Alvin Gregorio and nikkipollard,

The Tool I need must place an object in the drawing. It needs to be tied to a WCS coordinate. Drawing 2 crossing lines (or 3 lines for 3D space) accomplishes this when 'Snap' is set to 'Grid'.

The 'Crosshairs' Tool replaces your cursor with intersecting horizontal and vertical lines. But it doesn't create anything in the drawing.

The 'Cross' Command (Tool), on the other hand, creates a crosshair in the drawing...exactly what I need.
It needs to be sized (I like 2mm), I like moving it to the CL layer so it shows up red and just like my crosshairs solution 'Snap' must be set to 'Grid'.

Problem solved, thanks.
Using this Tool saves time over building the crosshairs from scratch.

Regards,
John

John R

I like using the AutoCAD "Point", with $PDMODE set to 35 in "Drawing_Defaults" (TurboCAD Explorer palette). You can only use one type of AC Point in a drawing.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

jmwright1058

#48
John R,

What is an AutoCAD Point?
How do I place it in the drawing?
What can I do with it?
What Does PD stand for in the term $PDMODE?
I set $PDMODE to 35 (it was set to 0), but I wasn't able to place it on the drawing.
Does $PDSIZE apply?

I'm using the CommandCAD interface. I think I still have access to all the commands/Tools, but locating them might be a different story.

The 'Point' command has to do with lighting, so that can't apply here.
And 'Coordinates of the Point' command places WORKSPACE COORDINATES (X, Y, Z) into the Measurement Info Palette, so that doesn't seem to apply either.

Regards,
John

jmwright1058

It looks to me like the AutoCAD Point style is not supported in TurboCAD 2023 Platinum 64-bit.

Is this true?

John