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.

Problems exporting STL files

Started by jgmick, February 09, 2021, 05:39:29 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jgmick

Running TC Platinum Pro 2019 64 bit

I am running into some issues when exporting a 3D solid model to STL on the way to a 3D printer.  The tools I use to post process the STL into code for the printer complain about the structure of some of the STL files.  I do not have  a clear understanding the of the problem (just not enough of an expert on STL structures) but apparently there is a difference between "seeing" the surface from the outside and from the inside and the tools highlight the "inside" surfaces on some parts even though they appear visually to be some of the outside surface.  Running the part thru the printer process produces some really odd results so I have simply tried to avoid those ops. Analysis of the STL part shows that it Is manifold, just that some of the surfaces appear to be "inside out".

I have done some experiments and have determined that only some TC operations on the 3D model cause this,  So far I have found that any rotation (modify/transform/rotate) will cause a problem.  Also mirroring an object produces the corruption in the mirrored part.  Align by 3 points does NOT cause a problem regardless of how much the aligned part was moved or rotated so I can get there from here using that method of assembly.

Not sure where to go from here but I would like to at least understand what's going on and/or see if it can be fixed.

Alvin Gregorio

What's cool and helps a user to grasp what's going on "inside" is turning on the "Display form-building edges" in Options/Display.
Sometimes it is even more enlightening to have that option on and have the visual style be Hidden Line.
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)

jgmick

Followed your suggestion, somewhat enlightening, didn't add much to answering the problem.  I have a radiused edge, The form-building ON option showed the structure of the radius surface (also hidden lines OFF).  I was looking at the drawing with the mirrored part, both the original and the mirror look identical.  No clue as to why the 2nd part is corrupted in the STL.

I opened both of the STL files in TC.  I can see the collection of triangles that make up the STL structure but they both look "reasonable" to my somewhat untrained eye.  The original and the mirrored part both appear to have the same STL structure (didn't count triangles but about the same.)  Certainly nothing leaps out at me as "odd".

Any way out of this snake pit?  I can live with rules (like "Don't rotate") if I can formulate them, but I keep getting ambushed.   This "Don't use mirroring" was the latest example.

Alvin Gregorio

#3
Quote from: jgmick on February 09, 2021, 07:39:47 AM
Followed your suggestion, somewhat enlightening, didn't add much to answering the problem.  I have a radiused edge, The form-building ON option showed the structure of the radius surface (also hidden lines OFF).  I was looking at the drawing with the mirrored part, both the original and the mirror look identical.  No clue as to why the 2nd part is corrupted in the STL.

I opened both of the STL files in TC.  I can see the collection of triangles that make up the STL structure but they both look "reasonable" to my somewhat untrained eye.  The original and the mirrored part both appear to have the same STL structure (didn't count triangles but about the same.)  Certainly nothing leaps out at me as "odd".

Any way out of this snake pit?  I can live with rules (like "Don't rotate") if I can formulate them, but I keep getting ambushed.   This "Don't use mirroring" was the latest example.

It is best if you upload/attach the .tcw and/or .stl drawing file.  I doubt that anyone's going to steal your model and commercially replicate it.

TurboCAD has SAT Healing, which you can try.  And I think the recent versions have some sort of "hole" finding ability, included particularly for models that have issues 3D Printing (I barely know of what I speak on that subject; I just remember briefly reading about it a few weeks back; I might be thinking of 3D Printing Repair 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)

jasbrou

Also look at your model in Draft mode. It will be the color of your lines, but sometimes things are revealed. For example,  I draw
things up for CNC plasma cutting where I need only 2D drawing. But if it has complex shapes and holes/cutouts, I will extrude the
whole thing to a thickness of 1". Any line or feature that was not closed will be revealed on the extrude when viewed in Draft mode.
For example, in the attached the first number 2 and 7 where not closed profiles.

steve323

I have been creating some relatively complex STL models for 3D printed clocks using TC Pro Platinum 2018. The STL files are often 5-10MB in size and sometimes there are a small handful of errors.

I have not found any errors that cannot be fixed by using the STL repair tool built into PrusaSlicer. I click on the repair icon and the file gets sent to Netfabb for repairs. Export the plate as STL and it will save it back as a corrected STL file. It is a bit annoying since it adds an extra step, but overall is not too bad.

It was a lot worse a couple of years ago when I was using TC Deluxe. Not sure if it was the upgrade to TC Platinum or my skills improving that reduced the error count.

One caution is to close the file in TC if you want to clobber the existing file because PS won't save a file if TC has it locked for edits. PS doesn't tell you the file was not saved, but the file on disk will still have errors.

Steve

murray dickinson

FreeCAD has mesh analysis and repair tools in its mesh workbench, and they give visual feedback, highlighting where the hiccups are, removing the highlights when they're fixed.  Depends what type of 3D printer you're using, but Cura, for example, accepts .obj and a couple of other formats that don't have the same formal isssues as .stl.  By "formal", I mean that some .stl "faults" just don't matter for current 3D printing methods, but they're part of the .stl definition, but not of .obj and the others.

Jeff_in_90620

I have frequently had problems with STL files exported for 3D printing.  One of the easier fixes is to adjust the Options / ACIS / Faceter Quality setting to make curves more accurate.  Often, setting the slider to 100 will not be enough, so I activate the Expert Faceter Parameters and enter the value '2' under Normal Tolerance (you can use '1', but the files get a lot larger).

Recent versions of TurboCAD also have an STL quality analysis option under File / Save As / STL / Setup.  You can activate both Perform 3D print check and Remove Holes.  Note that the Save operation will pause until you click on the print check's report.

Another of the 3rd Party STL utilities in MeshLab; it is free and has 32-bit and 64-bit versions for your operating system.  The help guide is difficult (look for online tutorials), but it is extraordinarily powerful when it comes to fixing STL files.  https://www.meshlab.net/#download


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)

jgmick

Thanks for a number of suggestions.  Personally, I tend to avoid the "repair" options that some of the tools offer to "help" you "fix your mess.".  I have found that they can cause almost as many problems as they fix.  I also don't like leaving a corrupted source behind.  Trying to use that sometime in the future for something else just replicates the misery forward.

Did some deep diving into the STL file structure.  TC offers an option to export STLs in ASCII.  Did that on a simple part and tried to analyize it by hand,  Not sure of the following, but it looks like rotating an object causes TC to fail to follow the "right hand rule" embodied in the STL file definition when it generates the output,  Some of the triangle verticies are out of order causing those particular triangles to be "seen" from their back sides when read in following the correct order.  They are in the right spatial positions, just not in the proper sequence.so it doesn't affect the manifold definition, the part is still closed, just partly "inside out".

I had run the faceter quality up sometime ago to improve the shapes of curves.  My 3D printer quality is not all that great, so I end up with a fair amount of sanding anyway.  I'll look at that setting and see if it improves what I'm currently getting.

I think my solution is just going to have to be "avoid rotations".  (Just another day in CADland.)

Jeff_in_90620

Quote from: jgmick on February 12, 2021, 10:05:41 AM
... it looks like rotating an object causes TC to fail to follow the "right hand rule" embodied in the STL file definition when it generates the output...

I think my solution is just going to have to be "avoid rotations".  (Just another day in CADland.)

An interesting observation.

MeshCAD has the option of reversing the orientation of facets to agree with their neighbors.  You might consider that an adequate 'repair' option if you overlook a section of your design.


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)

jgmick

Thanks for the suggestion but no thanks.  I need to live within what I have.  Adding more tools around the outside just runs up the workload.  Whatever the warts are, I have a rule set to get along with them. (That statement is valid for at lest the next 5 seconds.)

I'm also running out of interest in the problem.  It looks like it just "is", not something that's fixable.  Onward and upward.  Another day, another wart.  TC is just incredibly complex.  i probably don't tap into 10% of its capabilities.  It does good stuff for me most of the time, that's as good as it is going to get.