News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

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.

Unfold sanity check

Started by PCSteel, August 14, 2021, 10:41:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PCSteel

I'm seeing some unusual results when onfolding faces.
In the attached drawing you will see that 'unfold A' has displayed correctly while 'unfold B' is a mirror reverse of what it should be.
Has anyone else had these inconsistent results with the unfold tool?
Cheers John
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

Alvin Gregorio

I get the same results in V2020 Platinum.  I'm curious John:  How do you know how it should be displayed to be deemed "correctly"?; and how do you know what it "should be"?
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)

Henry Hubich

I think there's something wrong with that Object B. If I 3D-slice it lengthwise and then 3D-Add the pieces back together, then Unfold Face gives me a wildly incorrect result. Object A does not misbehave when I treat it the same way.

Henry H

PCSteel

Alvin, you can see here that if you wrap the unfold back around the pointy bit will be on the wrong side.

Henry, as you say, there could be something wrong with the object. I neglected to say that the model was originally created with autocrap, so anything is possible.
It's not the first time that this has happened, so I know to watch for it when I'm creating these templates, but it's a bit unnerving.
Thanks for checking.
John
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

AussieBloke

There maybe a connection John between your unfold issue and a severe display issue I noticed with the unfold drawing when opening and 1st looks.

Tested both in v2020 GDI flicker free and v2021 Redsdk installed but using GDI flicker free.

Where I select either object A or B, then as I attempt to grab the object by one of the bounding box lines each subsequent line disappears until all lines are missing from the selected object entirely.
 

PCSteel

Yeah, I hadn't noticed that Daz.
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

PCSteel

#6
I've been having issues with this again lately, but this time with STP files. My client tells me that using the STP files I have provided, his pipe plasma is sometimes cutting a mirror image of what it should produce. On investigation I found that the items he was having trouble with would also show the same problem as above if I used the unfold tool on the ACIS solid.
After some more investigation I have found that if the item has been mirror copied it will cause this to happen.
The attached shows this. The pipe on the left has unfolded correctly while the mirror copy on the right is reverse of what it should be.
So, be wary of mirror copies if the result is to be used to run cnc machinery.You cannot view this attachment.
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

Jeff_in_90620

Quote from: PCSteel on August 16, 2023, 10:50:49 PMbe wary of mirror copies if the result is to be used to run cnc machinery

It's been awhile since I have done anything similar, but this could explain why I occasionally had problems back then.

Thanks for running this down.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

PCSteel

Further testing of this has revealed that if the mirror copy of the item is made by scaling the the original @ x=-1, y=-1, z=-1, the unfolded result is correct. BUT, the fact that it unfolds correctly doesn't seem to mean that it will save correctly as an .STP file.  ???
My unfold testing is attached.
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

AussieBloke

Quote from: PCSteel on August 23, 2023, 05:09:04 PMFurther testing of this has revealed that if the mirror copy of the item is made by scaling the the original @ x=-1, y=-1, z=-1, the unfolded result is correct. BUT, the fact that it unfolds correctly doesn't seem to mean that it will save correctly as an .STP file.  ???
My unfold testing is attached.

Useful tip thanks John. 😊

Alvin Gregorio

#10
I believe Scaling one axis in the negative direction would suffice.
Which axis is dependent upon what one has set in Selector_3D_Properties for Coordinate System Extents and Inspector Bar and the object's inherent Coordinate System.
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)

PCSteel

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

Just cut it out, literally!  The sheet's its own mirror image flipped over.  Imprint an asymmetrical character like a 2 or 3 on the surface being unfolded and the sheet is obviously curled/rolled to the character's reverse side. 

PCSteel

Yeah Murray, that's what I was doing when I was printing wrap around templates for this client but now they have a pipe plasma and need .STP files to drive it. We're finding that sometimes the plasma is cutting the part as a mirror copy, and I thought that it would be related to this unfolding problem. This isn't the case though, it doesn't always follow that if it unfolds wrong it will cut wrong, so we're back to square one.  ::)
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

Dean

#14
Hi,
Did you create the pipe object in TurboCad?
And or
was all edits, save as etc.. performed in TurboCad?
thanks

I drew a similar object then mirror copied then used the Unfold face tool on both objects.
attached are my results.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

murray dickinson

#15
TC has been ambiguous about normals for as long as I've used it, as shown if you explode a 3D object down to polylines and give them all thickness: some will thicken to the notional "inside" of the object, others to the outside.  It might be worth trying this with the original and mirror of the tube to see if the distribution of normals is inverted by mirror copying, and if some workflow amendment will resolve it.   Mirroring across X,Z or Y,Z  instead of X,Y, for example.

Alvin Gregorio

Quote from: PCSteel on August 24, 2023, 05:40:56 PMYeah Murray, that's what I was doing when I was printing wrap around templates for this client but now they have a pipe plasma and need .STP files to drive it. We're finding that sometimes the plasma is cutting the part as a mirror copy, and I thought that it would be related to this unfolding problem. This isn't the case though, it doesn't always follow that if it unfolds wrong it will cut wrong, so we're back to square one.  ::)
Maybe next time you have a project that is not doing what you want, you post that file and tell us your objective.  And see if we can collectively figure it out and remedy it.
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)

PCSteel

#17
Quote from: Dean on August 25, 2023, 06:33:14 AMDid you create the pipe object in TurboCad?
And or
was all edits, save as etc.. performed in TurboCad?

Yes and yes.

Thanks for checking that Dean. I do not understand how we can get different results.
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

PCSteel

Quote from: Alvin Gregorio on August 25, 2023, 03:24:00 PM
Quote from: PCSteel on August 24, 2023, 05:40:56 PMYeah Murray, that's what I was doing when I was printing wrap around templates for this client but now they have a pipe plasma and need .STP files to drive it. We're finding that sometimes the plasma is cutting the part as a mirror copy, and I thought that it would be related to this unfolding problem. This isn't the case though, it doesn't always follow that if it unfolds wrong it will cut wrong, so we're back to square one.  ::)
Maybe next time you have a project that is not doing what you want, you post that file and tell us your objective.  And see if we can collectively figure it out and remedy it.

The attached is from the current project and to complicate things further is in DWG format, which as I've said before, is how I receive the file. On my system, the object on the left unfolds correctly while the one on the right does not.
When these two items were saved as STP's and processed through the pipe plasma, they both cut as the one on the left. This led me to believe that I could predict the items which would give problems on the plasma by using 'unfold' to check them. Unfortunately this is not the case. Two other items on this job unfolded incorrectly but cut correctly.
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

#19
Is this CNC machine cutting a sheet or cutting pipe?  Is it a mill cutter or plasma?   

PCSteel

Quote from: murray dickinson on August 25, 2023, 05:59:38 PMIs this CNC machine cutting a sheet or cutting pipe?  Is it a mill cutter or plasma?   

Pipe
Plasma
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

Alvin Gregorio

#21
Quote from: PCSteel on August 25, 2023, 05:21:55 PM...On my system, the object on the left unfolds correctly while the one on the right does not.
When these two items were saved as STP's and processed through the pipe plasma, they both cut as the one on the left. This led me to believe that I could predict the items which would give problems on the plasma by using 'unfold' to check them. Unfortunately this is not the case. Two other items on this job unfolded incorrectly but cut correctly.
I have not enough knowledge of the "processed through pipe plasma" process to offer any suggestions.
Particularly since you state that sometimes it works as wanted/expected; and sometimes it doesn't.
That's a lot of digital going on-- From .dwg, through TurboCAD, to .stp, into a "pipe plasma" coding and it's "robotics", ...  That's a lot to get exactly perfectly digitally correct every time.
___
But-- I guess we could limit our current objective here to:  Why is the Unfold Face on the Mirrored Copy producing a seemingly backward result?  And how does one mitigate that.
But that wouldn't resolve your real_world/real_business objective-- how to get modeled .stp mirrored copies to "process through the pipe plasma" as wanted and expected.
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)

murray dickinson

If your results from TC are inconsistent, the only way to be sure is for the cutters to preview the job, does their equipment have some visual preview or test facility?   If you can imprint a character on the job as I described above, it would be instantly recognisable in visual preview, or if you supply original and the mirror, their g-code should be instantly, obviously, different - visually.  Are the cutters in-house or contractors?   

Alvin Gregorio

For the Mirror_Copy, Unfold_Face thing, this worked for me (on newly Mirror Copied objects; not the existing one):
>Mirror Copy
>Set Workplane by Entity.  That entity being the original object.
>Insert a Sphere, Center_of_Extents Snapping to the copy object, diameter larger than the copy object.
>Execute the 3D_Intersect command, first selecting the Sphere then the copy object.
>Unfold Face on the copy object.


Maybe there is a clue in there that can help with the "processed through pipe plasma" issue.
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)

Dean

Quote from: PCSteel on August 25, 2023, 03:59:03 PM
Quote from: Dean on August 25, 2023, 06:33:14 AMDid you create the pipe object in TurboCad?
And or
was all edits, save as etc.. performed in TurboCad?

Yes and yes.

Thanks for checking that Dean. I do not understand how we can get different results.

According to your measurements I created a cylinder then subtracted a box to create the flat cutout then used a surface to slice the angled area.
Mirror copy from face selecting the flat area then moved the mirror copy.
Then used the unfold face tool on both objects.
In the attached zip file is the stp file that TurboCad 2023 produced.
Would this be correct?
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

PCSteel

#25
Quote from: Dean on August 26, 2023, 09:33:34 AM
Quote from: PCSteel on August 25, 2023, 03:59:03 PM
Quote from: Dean on August 25, 2023, 06:33:14 AMDid you create the pipe object in TurboCad?
And or
was all edits, save as etc.. performed in TurboCad?

Yes and yes.

Thanks for checking that Dean. I do not understand how we can get different results.


According to your measurements I created a cylinder then subtracted a box to create the flat cutout then used a surface to slice the angled area.
Mirror copy from face selecting the flat area then moved the mirror copy.
Then used the unfold face tool on both objects.
In the attached zip file is the stp file that TurboCad 2023 produced.
Would this be correct?


I did the cutout the same as you Dean. I then rotated and moved the workplane and did a slice by workplane for the angled cut. My mirror copy was done by going to world WP and a random line for the mirror copy.
I have no way of checking the stp unfortunately. I can open them in three different CAD programs, where they all look fine, but then some of them will cut wrong.
I still don't understand any of this. I'm going to do another one following your method exactly, and see what happens.
Thanks.
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

PCSteel

Quote from: Alvin Gregorio on August 26, 2023, 05:39:12 AMBut-- I guess we could limit our current objective here to:  Why is the Unfold Face on the Mirrored Copy producing a seemingly backward result?  And how does one mitigate that.

Thanks Alvin, yes I think this should be the starting point.

Quote from: murray dickinson on August 26, 2023, 06:27:07 AMIf you can imprint a character on the job as I described above, it would be instantly recognisable in visual preview

Thanks Murray, I'll see if there is any way they can preview this when they nest them. The plasma is in house at the steel fabricators (my client).
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