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.

DCAD Max 25.1 - STL Files with Flipped Triangles

Started by ablincoe, December 04, 2015, 01:56:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ablincoe

Good day folks, hopefully someone can help with an issue I am having.  I am working with DC 3D Max V25.1 trying to create STL files for printing.  Unfortunately, the files generated seem to frequently have substantial issues with flipped triangles and such.  I have dropped back to some extremely simple "Plane" extrusions and "Solid Subtract" actions to illustrate the issue.

In the attached file, I have
   Created a wing and separated it into 3 areas (a leading edge slat, a center section, and a trailing edge flap).  These are separated out on layers 115, 120, and 125 respectively.  Each of these section areas have multiple "planes" defined on them.  One or more squares defined at Y=-1, The Outside Edge at Y=0, and interior section(s) for subtraction to lighten the structure.

In dealing with just the Leading Edge Slat, I have:
   Copied layer 115 to a clean empty layer to do additional work on.
   I have extruded the Outside Edge up a ways (25 or so units), and exported the selection to STL
      Netfab show that the extrusion is fine and dandy.
   I then extrude the inner core up higher than the outer edge, and Subtract that from the first extrusion, and export the single object to an STL file.
      At this time, both Netfab and MeshLab indicate numerous exceptions with the form
      Netfab indicates 30 flipped triangles. 
      This does impact how CURA interprets the form for printing.
   If I then try to extrude the square and subtract it, DC will sometimes not allow the subtraction.

   If I start again, and extrude the Ouside Edge, and inner square, do the subtraction, and export
      Netfab shows that the extrusion is fine and dandy.
   If I then extrude and subtract the interior section, DC is fine with that.
      Upon export, Netfab indicates that there are 41 flipped triangles

I have viewed as best I can the Plane for the Interior section and can not find any issues that look odd.  It seems to be a completely convex plane fully inside of the other convex plane definition.

If anyone can help determine what the issue is, I would be interested in hearing.

Thanks,
Allen

Bob P

Instead of supplying us with so much extraneous stuff, could you just post one simple solid part that is "bad"?  STL is a format for 3D solids and all I see are planes, some of which, within a single layer, are not even co-planar.

DrollTroll

Unfortunately, for the time being that's just the way STL files are going to be when exported from DesignCAD. Historically, DesignCAD hasn't cared about the directions of normals -- it has always treated them as double-sided when shading them so the normal direction hasn't mattered *to DesignCAD*.

Most 3D printing/slicing software has built-in tools to fix any flipped triangles, or you can take the stl file into an inexpensive program like AccuTrans 3D to flip the triangles there before sending to the printer/slicer.

We're planning to work on having DesignCAD's primitives be created from scratch with more "sane" facet normals in future versions.
25 years with DesignCAD

ablincoe

Thanks for the info.  Looks like we still need two tools to do the single job for now.
Allen

samdavo

#4
ablincoe,
Just to advance this discussion, and having recently done a one-day workshop on 3D printing (where they used Solidworks and SketchUp - but weren;t aware of DCAD - groan ... )

I have copied your cross section and extruded it as I imagine you were heading towards (in any case as an example).
You end up with a solid that can be 3D printed (as against a series of planes etc).
I then exported it as an skp file (from V25 obviously - one of the new features.
Opened that in SketchUp - and viewed it in View\Monochrome.

I find that there is one plane that is blue and needs to be reversed (and probably would automatically be reversed if you used a suitable 3D printing program - or even a program such as CleanUp3, which I believe is free).
(edit) oops, this only works within Sketchup.

I have copied the entire solid in SketchUp Make (the free one), and reversed that plane (no longer any blues faces) - JUST to show that it can be done - refer the top wing section.   (You do that by selecting the surface, rightclicking, and choosing Reverse Face from the menu that appears).

Now, you cannot export from Sketchup Make as an STL file - although you can from the USD $700 SketchUp Pro version.  (Wrong - see next post by adriank)


HENCE it is cheaper to use SU just to identify those faces, go back to DCAD V25, reverse those faces, and export to STL;

OR maybe you can just export (from DCAD) as an STL without checking reversed faces, and (as DT says), let the printing program sort it out - although, as I say,  there are other programs (similar to CleanUp3) that also allegedly sort these solids reading for printing.

PS Just for fun I add a view in SU with shadows.   
PS I have drawn it as 3 solids, but a backing sheet of some sort would obviously hold them at the correct gaps - easily added.   

Adrian 2.0

Hi Sam,
I can export to STL from Sketchup Make - It's a downloadable plugin.
I also downloaded a plugin to export SKP to DXF for (free) Sketchup Make.

I don't do any 3D printing myself, but I do use a CNC router company to produce models, and they ask for SKP files, it seems Sketchup is a good free way to clean up solids for CAM work.

Adrian

samdavo

#6
wow
Pearls of wisdom as usual - thanks :)
Do you get those plugins at SketchUcation maybe?
SketchUcation.com/resources/plugin store etc

(off topic)
You add heat and pressure to graphite, you get diamonds
You add grit to an oyster, you get pearls.

(seriously off topic)
PS I know a bloke who likes to whisper in the ear of any lady ahead of him in a seafood buffet queue, "yaknow, I had a dozen oysters here last week - only six of em worked :)

samdavo

PS Personally I see a lot of synergy between DCAD and SketchUp.  And imo, when the word gets out, DCAD should benefit by it.  (2 cents)

ablincoe

Samdavo,
You extruded the wing sections as I normally do.  My first print try was actually of wing sections like you created, and then also mirrored so that there were "end caps" (with square holes in them) at each end, and hollowed in the center for lightning.  The reversed triangles caused the printer to do some odd things (uses the CURA software to slice).  Some of the hollow areas were interpreted a needing "fill" instead of being empty, the mirror plane printed a solid plane on all of the parts (instead of honoring the hollows that had been subtracted).

I am currently using "Netfab Basic" (free) to do most of my checking and fixing.  It is pretty flexible in what it can do to correct issues like the reversed triangles, repair of minor holes, etc.  I didn't find "MeshLab" as easy to try and figure out.  I am still waiting on the return of my next print from our local Library ($0.10/gram - can't beat that for a final cost!).

DCAD is definitely my choice for CAD...  Unfortunately, with the current STL support, it is not able to be a single application to use when you want to go all the way to 3d print.

Allen

samdavo

#9
I enclose a copy of that cross-section on a backing plate.
- as a DCD file,
- and as an STL file (exported from DCAD)
- and as a PNG file after exporting to SketchUp as well. 

I believe that there are no more planes that are incorrectly rotated.
I will see if I can get it printed (but might be next year).

(edit) oops - massive error in that I have combined four solids with Ctrl+D - including the backboard which slightly encroaches on the other three to avoid z-fighting - rather than using Solid Add - hence heaps of internal planes, which would upset the printer, (doh). 

Still, the fact that it hasn't been downloaded / viewed means I can get away with deleting and reloading. Cheers

ablincoe

Samdovo,
Don't worry about trying to get it printed.  This is a pretty SLOW project for me, and I am awaiting my 2nd print-out.  One issue with our library is that the printer brand they have chosen seems to have a fair number of break-downs, and they are horrible at estimating when the job might be completed (currently about 1.5 weeks late, probably due to a printer malfunction).

Not sure if the printer issues are  1) volume (even though it is a good name brand), 2) operator, 3) operational experience, or something in between.