-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export to stl failing #138
Comments
I get "Web page not available" for both of those links when I click the download button. |
I was able to download by using Save to my Dropbox. |
The STL plugin was developed by different community members. A couple of years ago the SketchUp team merged these contributions into this open source project. I'm not 100% sure of the support status of this project. However, I looked at the STL file linked, and imported into SketchUp it came in as a solid. So I'm not sure what the error is here. The issue is that Inventor cannot load it? I do notice that the SKP file doesn't have proper normals for all the geometry - as in you can see the backside is facing outward here and there. (The blue side facing out instead of the white site.) Could this be the issue? My initials round-trip SKP->STL->SKP is working fine. Need more info here. |
Thom Thom, OH MY!-- a reply from the SketchUp guru himself! This is so cool. OK, calming down now. I did not know that reverse face orientation was considered an "improper I'll be back with better explanation as soon as possible. Thank you! Kris On Thu, May 8, 2014 at 7:44 AM, Thomas Thomassen
Earthwood Timber Frame Homes |
Reversed Faces may indeed be the problem. Here is the .stl loaded in NetFabb Basic. Note the Red area. Here is the Red area zoomed in: And finally the SketchUp component (with back faces set to red.) When I reverse the face in SketchUp then export as STL, then NetFabb reports no problems (all green model.) |
hmm... for solids it should be possible to correct this - as long as we can figure out a way to determine what is "inside" and "outside". I think it would be good if the exporter just reversed the orientation of the point data for the faces it export when it detect an inverted face like that. But it would probably be nice to expose that as a function the users can invoke to correct the SketchUp model as well. |
I think if we can determine the orientation of one face we can orient the rest. Shoot a ray from the face's centroid in the direction of it's normal - ignore all geometry that doesn't belong to the face's parent. Let the ray exit the boundingbox of the face's parent - if it passes through an odd number of faces it's oriented "inwards". |
For the orienting:
|
Still working to determine if reverse faces causing the export issues to .stl Have two fellows with 3D printers exploring the problem. One has indicated that it is appears from his end the export is significantly improved in files without reverse faces. We'll run a few more print jobs and let you know. The rest of what you are talking about above is way over my pay grade--and head. But your discussion has been a big help regardless. I'll contact SU support to better understand what actually causes a reverse face to develop when modeling, as I've got a lot of them in my detailed timber frame model--especially in the joinery as Jim pointed out. |
The thing here is that SketchUp isn't a solid modeller. It's a surface modeller so it deals with polygons on an individual level. The orientation of a face depend on the order of the points you create the face with. You can try this by drawing a shape clock-wise and counter-clockwise and see the difference. (Except when drawing on the ground - special SketchUp magic happens there.) Other software packages that let you model surfaces like SketchUp usually doesn't display the backside of faces. It'll be transparent so you'd see through it - therefore you'd have to address the issue. SketchUp on the other hand has taken a different approach and make the face visible from either side, regardless. This can often be convenient as often you just want it to look nice so you don't care about "direction" of the face. But outside of the SketchUp world applications are often more strict so it matters more when you are exporting - especially solids. So this isn't actually a bug in the SketchUp system - it's a side-effect of how SketchUp is a surface polygon modeller which puts some responsibility on the user to orient the faces. |
Thom Thom, OK I get it. Wonderful advice and direction for me on future file prep for We're getting there! Thanks a million. Kris On Wed, May 14, 2014 at 12:05 PM, Thomas Thomassen <[email protected]
Earthwood Timber Frame Homes |
Ah, visibility of entities - hadn't thought of that. I'll add that as an issue. |
I am working with local school technical instructor to try to print SU model parts for park pavilion I am building. I've created verifiable hollow solids in SU that give volume in entity properties box, and have no hidden faces, and have been checked with solid inspector. (Thank you Tom Tom!) The tech instructor is telling me the .stl files are not exporting water-tight geometry. He is using autodesk inventor 2014 with all updates to examine the stl file, and finding SU export problems. He has been able to resolve some of those by running free version of Netfabb twice for each component file to fix issues in .stl file. What can I do about this? I understand the .stl plug-in was developed by Sketchup Team, so would assume there might be some support for these types of issues.
Here is link to one of the .stl files that I exported and was problematic:
https://www.dropbox.com/s/65k63xj2vwt19mf/Back%20plate%20section%20A.stl
And here is link to SU file that I exported from:
https://www.dropbox.com/s/ah0oitkgvq0b8gl/Fir%20St.%20Park%20Pavilion%203D%20print%20file.skp
Thoughts anyone?
Kris
The text was updated successfully, but these errors were encountered: