[Gmsh] STL file

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Oct 22 19:57:59 CEST 2009


Christophe Geuzaine wrote:
> Michele Marogna wrote:
>> i can't send you this file, it's confidential.
>> i draw with solidworks another file, that give me the same error.
> 
> Wow, Solidworks exports binary STL with an ASCII STL header...
> 
> Change the first line of the file : "solid" -> "xolid" (or anything else 
> than "solid", but with the same length), that should work.

I've added a small hack in our import routine so that it should work
even with bad headers. Give tomorrow's nightly snapshot a try.


> 
> PS : don't send confidential files to gmsh at geuz.org : this is a public 
> mailing list.
> 
> 
> 
>>
>> thank you very much
>>
>> Michele
>>
>>
>> 2009/10/22 David Colignon <David.Colignon at ulg.ac.be 
>> <mailto:David.Colignon at ulg.ac.be>>
>>
>>     Hi,
>>
>>     can you send us your .stl file to check it ?
>>
>>     Cheers,
>>
>>     Dave
>>
>>     --
>>     David Colignon, Ph.D.
>>     Collaborateur Logistique du F.R.S.-FNRS
>>     CÉCI - Consortium des Équipements de Calcul Intensif
>>     ACE - Applied & Computational Electromagnetics
>>     Institut Montefiore B28
>>     Université de Liège
>>     4000 Liège - BELGIQUE
>>     Tél: +32 (0)4 366 37 32
>>     Fax: +32 (0)4 366 29 10
>>     WWW:    http://hpc.montefiore.ulg.ac.be/
>>     Agenda:
>>     http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
>>
>>
>>     baz1987 at gmail.com <mailto:baz1987 at gmail.com> wrote:
>>
>>         hi,
>>         i'm trying to open an .stl file exported by solidworks to gmsh
>>         on ubuntu.
>>         when i load the geometry, an error occured:
>>
>>         Error : No facets found in STL file for solid 0
>>         Error : Error loading '/home/michele/Scrivania/Biella-XF.stl'
>>
>>         i run also dos2unix, but it still not open my geometry.
>>
>>         how can i do?
>>
>>         Thank you very much
>>
>>
>>         
>> ------------------------------------------------------------------------
>>
>>         _______________________________________________
>>         gmsh mailing list
>>         gmsh at geuz.org <mailto:gmsh at geuz.org>
>>         http://www.geuz.org/mailman/listinfo/gmsh
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org
>> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine