[MINC-users] convert mesh from VTK to .obj
Simon Fristed Eskildsen
se at hst.aau.dk
Tue Oct 9 06:20:42 EDT 2007
Did you try the P3 version?
http://www.hst.aau.dk/~se/software/parse.p3fc2
It should be compatible whether you run 32 or 64 bit xeon.
Simon
dfwang at cse.cuhk.edu.hk wrote:
> Hi, Simon,
>
> My computer information is as follows,
>
> [dfwang at pc89164 ~]$ cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 15
> model : 4
> model name : Intel(R) Xeon(TM) CPU 3.00GHz
> stepping : 3
> cpu MHz : 3001.815
> cache size : 2048 KB
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 5
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
> pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni
> monito r ds_cpl cid xtpr
> bogomips : 6004.11
>
> processor : 1
> vendor_id : GenuineIntel
> cpu family : 15
> model : 4
> model name : Intel(R) Xeon(TM) CPU 3.00GHz
> stepping : 3
> cpu MHz : 3001.815
> cache size : 2048 KB
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 5
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
> pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni
> monito r ds_cpl cid xtpr
> bogomips : 5999.43
>
> [dfwang at pc89164 data]$ uname -a
> Linux pc89164.cse.cuhk.edu.hk 2.6.9-55.0.9.ELsmp #1 SMP Thu Sep 27 18:27:41 EDT
> 2007 i686 i686 i386 GNU/Linux
>
>
> [dfwang at pc89164 data]$ strace ./parse.bin
> execve("./parse.bin", ["./parse.bin"], [/* 64 vars */]) = 0
> uname({sys="Linux", node="pc89164.cse.cuhk.edu.hk", ...}) = 0
> brk(0) = 0x9b99000
> --- SIGFPE (Floating point exception) @ 0 (0) ---
> +++ killed by SIGFPE +++
> Process 5227 detached
>
>
> Thanks a lot!
>
> Best wishes,
> Defeng
>
>
> Quoting Simon Fristed Eskildsen <se at hst.aau.dk>:
>
>> Hi Defeng,
>>
>> parse.bin is compiled on a pentium4, and it works also on pentiumM.
>> What CPU are you using?
>> What is the output of
>> cat /proc/cpuinfo
>> uname -a
>> strace ./parse.bin
>>
>> I have compiled it on a pentium3 as well. Maybe that works for you:
>> http://www.hst.aau.dk/~se/software/parse.p3fc2
>>
>> Simon
>>
>> dfwang at cse.cuhk.edu.hk wrote:
>>> Hi, Simon,
>>>
>>> Thanks for your reply. Yes, my VTK mesh is in triangular.
>>>
>>> My linux system is CentOS 4.4. I downloaded your small parser just now, and
>>> changed the mode by
>>>
>>> chmod a+x parse.bin
>>>
>>> then run parse.bin, I got the following error,
>>>
>>> Floating point exception
>>>
>>> Could you please tell me how I can run it successfully?
>>>
>>> Best wishes,
>>> Defeng
>>> Quoting Simon Fristed Eskildsen <se at hst.aau.dk>:
>>>
>>>> Hi Defeng,
>>>>
>>>> If you're dealing with triangular mesh and pure ascii, you can try my
>>>> small parser found here:
>>>> 32bit linux: http://www.hst.aau.dk/~se/software/parse.bin
>>>> 64bit linux: http://www.hst.aau.dk/~se/software/parse.bin64
>>>>
>>>> Also, more information about the .obj format can be found here:
>>>> http://wiki.bic.mni.mcgill.ca/index.php/ObjectFiles
>>>>
>>>> Simon
>>>>
>>>> Defeng WANG wrote:
>>>>> Dear MINC Users,
>>>>>
>>>>> I have one mesh in VTK format at hand, and would like to convert it into
>>>> the
>>>>> .obj format in MINC. Which tool can do this? Or any suggestions on the
>> way
>>>>> to convert it?
>>>>>
>>>>> Many thanks!
>>>>> Defeng
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> MINC-users at bic.mni.mcgill.ca
>>>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>>
>>>
>>> _______________________________________________
>>> MINC-users at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
>
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
More information about the MINC-users
mailing list