STL export broken ?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

STL export broken ?

Torsten Wagner
Hi all,

just new to openscad I recently started a very simple design to print it
on a 3D printer.
After finishing it, I could not export it to STL due to the famous

"Object isn't a valid 2-manifold! Modify your design.." problem

I fiddled around with it for a few hours now, comment out more and more
parts of the design to narrow down where the problem is located.

Finally only the following code left:

module basis()
{
                // basic cube
                cube([85,85,100]);
}
basis();

and surprisingly it still will not export to stl.

Do I either misunderstood the STL-export stuff,
or is there any problem with STL export ?

I'm using the SVN branch 564.


Thanks for helping a newbie

Torsten


Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Giles Bathgate
On 02/07/2010 04:14, Torsten Wagner wrote:

> Hi all,
>
> just new to openscad I recently started a very simple design to print it
> on a 3D printer.
> After finishing it, I could not export it to STL due to the famous
>
> "Object isn't a valid 2-manifold! Modify your design.." problem
>
> I fiddled around with it for a few hours now, comment out more and more
> parts of the design to narrow down where the problem is located.
>
> Finally only the following code left:
>
> module basis()
> {
> // basic cube
> cube([85,85,100]);
> }
> basis();
>
> and surprisingly it still will not export to stl.
>
> Do I either misunderstood the STL-export stuff,
> or is there any problem with STL export ?
>
> I'm using the SVN branch 564.
>
>
> Thanks for helping a newbie
>
> Torsten
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>    
Just a quick check  you can only export to STL after you have compiled
using CGAL (F6)  are you sure that you are not pressing F6 initially and
then doing an export, then changing your file, and pressing F5 (openCSG
preview), when you export you are still exporting the first thing you did?

Regards

Giles.

Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Torsten Wagner
Hi,

thanks Giles, I noticed that fact in the meantime. STL export is working
now. As Giles described it requires a compiling of the CGAL file first.

I wonder, why it is not updated automatically if STL export is choosen.
Most likely users like to export just what they see on the screen and
this could be significant different to an old version of a CGAL file.

Furthermore, since openscad resp. the GUI still sometimes crashs, I
would really welcome to see a autosave function. Again I think it might
be worse to save the file whenever someone press F5 or F6.

In the meantime I rushed happily to the 3D printer guys but they were
not able to open my STL file. They use CatalystEx and opening my STL
file did not create any error message but also did not show any drawing.

I converted the ASCII STL file to binary because I thought they just
might need a binary but this didn't change anything.
I then opened up the ASCII STL file in MS Windows notepad and I noticed
that the line breaks were nor correct. Most likely this kind of Unix /
MS-DOS character problem. I will change my file to MS-DOS style and try
again.

I use a Linux system with UTF-8 support and they use a WinXP machine.

I would highly appreciate if someone has some more infos about this problem.

Thanks for help and reading

Torsten



On 07/02/2010 05:15 PM, Giles Bathgate wrote:

> On 02/07/2010 04:14, Torsten Wagner wrote:
>> Hi all,
>>
>> just new to openscad I recently started a very simple design to print it
>> on a 3D printer.
>> After finishing it, I could not export it to STL due to the famous
>>
>> "Object isn't a valid 2-manifold! Modify your design.." problem
>>
>> I fiddled around with it for a few hours now, comment out more and more
>> parts of the design to narrow down where the problem is located.
>>
>> Finally only the following code left:
>>
>> module basis()
>> {
>> // basic cube
>> cube([85,85,100]);
>> }
>> basis();
>>
>> and surprisingly it still will not export to stl.
>>
>> Do I either misunderstood the STL-export stuff,
>> or is there any problem with STL export ?
>>
>> I'm using the SVN branch 564.
>>
>>
>> Thanks for helping a newbie
>>
>> Torsten
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>>    
> Just a quick check  you can only export to STL after you have compiled
> using CGAL (F6)  are you sure that you are not pressing F6 initially and
> then doing an export, then changing your file, and pressing F5 (openCSG
> preview), when you export you are still exporting the first thing you did?
>
> Regards
>
> Giles.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Torsten Wagner
In reply to this post by Giles Bathgate
Sorry,

I forgot to mention that STL-viewers under Linux and Windows are capable
to open and display my file.

I did not find a "not a number" aka NAN problem, guess this will make
some devs happy ;)

I guess it is more a problem with the CatalystEX software.

If someone use this software I would be happy to know how to bend the
STL file for it.

My file can be found here:

http://pastebin.com/UnShmLhZ

Thanks

Torsten


On 07/02/2010 05:15 PM, Giles Bathgate wrote:

> On 02/07/2010 04:14, Torsten Wagner wrote:
>> Hi all,
>>
>> just new to openscad I recently started a very simple design to print it
>> on a 3D printer.
>> After finishing it, I could not export it to STL due to the famous
>>
>> "Object isn't a valid 2-manifold! Modify your design.." problem
>>
>> I fiddled around with it for a few hours now, comment out more and more
>> parts of the design to narrow down where the problem is located.
>>
>> Finally only the following code left:
>>
>> module basis()
>> {
>> // basic cube
>> cube([85,85,100]);
>> }
>> basis();
>>
>> and surprisingly it still will not export to stl.
>>
>> Do I either misunderstood the STL-export stuff,
>> or is there any problem with STL export ?
>>
>> I'm using the SVN branch 564.
>>
>>
>> Thanks for helping a newbie
>>
>> Torsten
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>>    
> Just a quick check  you can only export to STL after you have compiled
> using CGAL (F6)  are you sure that you are not pressing F6 initially and
> then doing an export, then changing your file, and pressing F5 (openCSG
> preview), when you export you are still exporting the first thing you did?
>
> Regards
>
> Giles.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Remco Hosman
Im currently not on my normal workstation so i cannot try it until
tonight (Europe, Netherlands here).

I am looking into modifiying openSCAD to produce binary STL files. they
are a LOT smaller.

remco

Torsten Wagner schreef:

> Sorry,
>
> I forgot to mention that STL-viewers under Linux and Windows are capable
> to open and display my file.
>
> I did not find a "not a number" aka NAN problem, guess this will make
> some devs happy ;)
>
> I guess it is more a problem with the CatalystEX software.
>
> If someone use this software I would be happy to know how to bend the
> STL file for it.
>
> My file can be found here:
>
> http://pastebin.com/UnShmLhZ
>
> Thanks
>
> Torsten
>
>
> On 07/02/2010 05:15 PM, Giles Bathgate wrote:
>  
>> On 02/07/2010 04:14, Torsten Wagner wrote:
>>    
>>> Hi all,
>>>
>>> just new to openscad I recently started a very simple design to print it
>>> on a 3D printer.
>>> After finishing it, I could not export it to STL due to the famous
>>>
>>> "Object isn't a valid 2-manifold! Modify your design.." problem
>>>
>>> I fiddled around with it for a few hours now, comment out more and more
>>> parts of the design to narrow down where the problem is located.
>>>
>>> Finally only the following code left:
>>>
>>> module basis()
>>> {
>>> // basic cube
>>> cube([85,85,100]);
>>> }
>>> basis();
>>>
>>> and surprisingly it still will not export to stl.
>>>
>>> Do I either misunderstood the STL-export stuff,
>>> or is there any problem with STL export ?
>>>
>>> I'm using the SVN branch 564.
>>>
>>>
>>> Thanks for helping a newbie
>>>
>>> Torsten
>>>
>>> _______________________________________________
>>> OpenSCAD mailing list
>>> [hidden email]
>>> http://rocklinux.net/mailman/listinfo/openscad
>>>    
>>>      
>> Just a quick check  you can only export to STL after you have compiled
>> using CGAL (F6)  are you sure that you are not pressing F6 initially and
>> then doing an export, then changing your file, and pressing F5 (openCSG
>> preview), when you export you are still exporting the first thing you did?
>>
>> Regards
>>
>> Giles.
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>>    
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>  

Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Giles Bathgate
On 02/07/2010 11:18, Remco Hosman wrote:
> Im currently not on my normal workstation so i cannot try it until
> tonight (Europe, Netherlands here).
>
> I am looking into modifiying openSCAD to produce binary STL files. they
> are a LOT smaller.
>
> remco
>
>    
I don't know if its appropriate but other people have used ivcon.c
(http://old.math.iastate.edu/burkardt/g_src/ivcon/ivcon.c) to convert
between binary and ascii stl. This is done by libaryizing the source
file e.g. (http://svn.kulitorum.com/RepSnapper/Src/ivcon.cpp)

Seems to be a drop in way of supporting many output formats.

Regards

Giles

Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Torsten Wagner
In reply to this post by Torsten Wagner
Hi all,

I'm very very sorry for creating so much noise.
Actually, we just solved it. It wasn't a issue with openscad at all.
I'm here in Japan and the CatalystEx software seems not to be able to
read files and folder-names in Japanese. My filename was on the root
file of a memory stick. But whenever I handed this over to the person in
charge he copied it to the Desktop first. Just know someone told us that
you have to use a complete Japanese-free path and filename.

OpenSource +1 point closed source -1 point......

Thanks for all the very fast help.... very impressive.

Since I just touched the topic. I used meshlab on Linux to test my STL
files. This software seems a perfect companion to openscad. It has many
features the openscad gui is missing at the moment. It could open and
save in ASCII STL and binary STL beside many other formats. There is
some measurement and rendering and some filters for STL cleanup.
Maybe it is even worse to think about using openmesh directly as GUI for
openscad?!

Maybe some of you like to give it a try:

http://meshlab.sourceforge.net/


Thanks again

Torsten

Reply | Threaded
Open this post in threaded view
|

Re: STL export broken ?

Giles Bathgate
On 02/07/2010 11:36, Torsten Wagner wrote:

> Hi all,
>
> I'm very very sorry for creating so much noise.
> Actually, we just solved it. It wasn't a issue with openscad at all.
> I'm here in Japan and the CatalystEx software seems not to be able to
> read files and folder-names in Japanese. My filename was on the root
> file of a memory stick. But whenever I handed this over to the person in
> charge he copied it to the Desktop first. Just know someone told us that
> you have to use a complete Japanese-free path and filename.
>    
Gar! ;) This sort of thing happens to me all the time. Your immediate
reaction is to think the software is broken, but it turns out to be user
error (not pressing F6 on export), or something like this (Japanese
filenames?!)

Oh well we live and learn ;)