fougue / mayo

3D CAD viewer and converter based on Qt + OpenCascade
BSD 2-Clause "Simplified" License
1.42k stars 269 forks source link

some model types in dxf data cannot be read #282

Open NoWhere-NowHere-TLD opened 3 months ago

NoWhere-NowHere-TLD commented 3 months ago

e.g the four surface types in dxf(ExtrudedSurface,SweptSurface...). Maybe it doesn't support 3dsolid. Do you plan to support these types? thanks for you looking at this question

HuguesDelorme commented 3 months ago

Mayo doesn't support those types yet. Current development version supports 3D meshes(see this issue) Can you provide some sample DXF files for these surface types? It's probably easy to support them with OpenCascade

NoWhere-NowHere-TLD commented 3 months ago

Mayo doesn't support those types yet. Current development version supports 3D meshes(see this issue) Can you provide some sample DXF files for these surface types? It's probably easy to support them with OpenCascade

thanks for your answer. How can I give you the SweptSurface dxf file, I think it might not be appropriate to put it directly into the github project. If you don't mind I can put it. And I find the group codes 310 in the dxf file, but when I convert the binary codes to ascii myself, I got messy code. I'm the newbie to using OpenCascade(also parsing of dxf), could it parsing the dxf? I am planning to use dxflib or libdxf, could it(also OpenCascade) process the soft or hard pointers?(I think libdxf maybe could). I feel a little daze about it. Thanks again for reading this comment.

HuguesDelorme commented 3 months ago

Hello you can try to put the DXF files in a ZIP archive and share it here in this thread OpenCascade provides support of DXF format but only through a commercial and closed component

NoWhere-NowHere-TLD commented 3 months ago

dxfSample.zip Thank you for your reply. The purpose of parsing dxf is to convert it to obj, It's a part of my supervisor's assignment, and he can't help me much more on this. I couldn't find an open source library to do this, so I try to write(add) it myself. I looked at the code for reading dxf in mayo, but I couldn't find a place to start. I am now looking for the relevant information of dxf to see(like sat format, dxf R13 reference), if there is any better information please recommend. I haven't written much English, so please forgive me if the writing is a little inappropriate. thanks!