Quantcast

STL

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

STL

Stony Smith
I was wondering if someone could help me with a small problem.

I created a model using OpenSCAD primitives only.  I compiled it, and
then exported it as a STL file.  The result file has 13744 faces.

Then, I brought the STL back into OpenSCAD with just this:
         import_stl("acs_layout.stl");
Now, when I hit F6 to compile, I get a Windows error "The application
has requested the Runtime to close it in an unusual way"

I've included the original SCAD file, the STL produced, and the windows
crash log which doesn't say very much.

Anyone have any ideas?

I've tried it on both WinXP and Win7.. same result.

=====
The ODD thing about this is that I had first crafted essentially the
same model in another application (TrueSpace), exported an STL from
that application, and still ended up with the same error when trying to
re-compile it with OpenSCAD.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

kintel
Administrator
On Apr 5, 2010, at 02:24 AM, [hidden email] wrote:
>
> I've included the original SCAD file, the STL produced, and the windows
> crash log which doesn't say very much.
>

For some very good reasons, you cannot attach large files (I believe the limit is 100KB) to emails to this mailing list.
Please upload the file somewhere, or send me a personal email and I'll take a look at it.

~/= Marius

--
We are Elektropeople for a better living.





Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

Stony Smith
Here are the two files:

http://stonysmith.homeip.net/temp/acs_layout.scad
http://stonysmith.homeip.net/temp/acs_layout.stl 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Marius Kintel
Sent: Monday, April 05, 2010 4:55 AM
To: [hidden email]
Subject: Re: [OpenSCAD] STL

On Apr 5, 2010, at 02:24 AM, [hidden email] wrote:
>
> I've included the original SCAD file, the STL produced, and the
> windows crash log which doesn't say very much.
>

For some very good reasons, you cannot attach large files (I believe the
limit is 100KB) to emails to this mailing list.
Please upload the file somewhere, or send me a personal email and I'll take
a look at it.

~/= Marius

--
We are Elektropeople for a better living.




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

Stefan Farthofer
I've built a development snapshot today which handles import_stl() of
your file fine on my machine. Can you try that version and see if it
works for you too?

You can get it at http://meta23.net/openscad/openscad-2010.04.05.zip

bye,
Stefan

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

kintel
Administrator
On Apr 6, 2010, at 00:39 AM, Stefan Farthofer wrote:

> I've built a development snapshot today which handles import_stl() of
> your file fine on my machine. Can you try that version and see if it
> works for you too?
>

Reimporting dense STL meshes is known to be problematic. I robustified this a tiny bit, but I didn't fix the main issues. At least it shouldn't crash anymore with Stefan's latest snapshot but it will spit out some errors/warnings.

~/= Marius

--
We are Elektropeople for a better living.





Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

Stony Smith
In reply to this post by Stony Smith
The problem is not with the import, but in a second compile (f6) of the
imported object.

This new version at least doesn't blow up.   It's ironic that the (new)
message produced now is about the winding order.. the other hot topic
today. <grin>

But, this seems to imply that the SaveAsSTL option is what is producing
the incorrect winding order.  Any ideas about that?



Quoting Marius Kintel <[hidden email]>:

> On Apr 6, 2010, at 00:39 AM, Stefan Farthofer wrote:
>
> > I've built a development snapshot today which handles import_stl() of
> > your file fine on my machine. Can you try that version and see if it
> > works for you too?
> >
>
> Reimporting dense STL meshes is known to be problematic. I robustified this a
> tiny bit, but I didn't fix the main issues. At least it shouldn't
> crash anymore
> with Stefan's latest snapshot but it will spit out some errors/warnings.
>
> ~/= Marius
>
> --
> We are Elektropeople for a better living.
>
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: STL

kintel
Administrator
On Apr 6, 2010, at 02:27 AM, [hidden email] wrote:

> The problem is not with the import, but in a second compile (f6) of the imported object.
> This new version at least doesn't blow up.

Well, technically the problem is about importing, but since the preview renderer happily will render the degenerate triangles resulting from the import, you won't notice until you render using F6 ;)

> It's ironic that the (new) message produced now is about the winding order.. the other hot topic today. <grin>
> But, this seems to imply that the SaveAsSTL option is what is producing the incorrect winding order.  Any ideas about that?
>
The error message is wrong in this case - the winding order problem and the STL import problem trigger the same internal exception. This exception can probably trigger in multiple other cases as well, so until we fix the underlying problems, I guess we'll just have to generalize the error message...

~/= Marius

--
We are Elektropeople for a better living.





Loading...