Bug in FreeCAD?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
umardastgir
Posts: 32
Joined: Mon Apr 22, 2019 9:29 pm

Bug in FreeCAD?

Post by umardastgir »

Hello everyone.

I was working on a project recently to convert .dae and .3ds files to .stl format and I was using FreeCAD Python libraries for this purpose. After I was done developing, I tested the software with a few input files and it worked fine. I started working on a different module of the project. Recently, I tried using the software again with different files and it turns out that the conversion works for some files and not for others. I believe theres nothing wrong with my code because the file gets poorly displayed in (e.g. half or more missing) and the remaining part gets translated.

To get an idea of what I am saying, I recommend downloading the file attached below and try opening it in FreeCAD. This is the model for a house and half of it is not displayed. When I export this to stl, only the part which is displayed is exported to .stl file. The reason I know its a FreeCAD issue is because I have tried to view the same .dae file in different file editors and I get the proper file displayed (no missing parts)! I have attached the screenshots of the same file displayed in FreeCAD and an example online file editor (https://3dviewer.net/).

I have only attached the file for 3DS, however, the problem is with DAE files as well. Plus, the problem is with every other file; the file attached below is just one example

Image
Image


Is this a bug in FreeCAD? Can someone tell me how to proceed?

Below is the version of FreeCAD I am using
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.17.13528 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 5c3f7bf8ec51e2c7187789f7edba71a7aa82a88b
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
Attachments
247_House 15_3ds.zip
Sample File
(42.81 KiB) Downloaded 44 times
Online Viewer display
Online Viewer display
3DViewer Display.JPG (34.41 KiB) Viewed 1788 times
FreeCAD Display
FreeCAD Display
FreeCAD Display.JPG (49.27 KiB) Viewed 1788 times
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Bug in FreeCAD?

Post by openBrain »

Your FreeCAD version is quite outdated.
However, release 0.18.1 gives same kind of "Picasso" import. :lol:
0.19 daily refuses to import with below error :
3dsErr.png
3dsErr.png (9.58 KiB) Viewed 1732 times
Converting with Assimp before importing (eg. to STEP format) gives a little better result, but still not really usable.

Can't tell more at now.
umardastgir
Posts: 32
Joined: Mon Apr 22, 2019 9:29 pm

Re: Bug in FreeCAD?

Post by umardastgir »

So does that mean FreeCAD has a bug and can not import 3ds/dae files properly?
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Bug in FreeCAD?

Post by openBrain »

Unfortunately, I don't know enough to say if it's a bug or a limitation. :|
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Bug in FreeCAD?

Post by yorik »

the 3DS plugin we use (Dice3DS) seems to have problems with 0.19, probably because of python3. I'll have a better look.
However, the problem seems to be in your file, both Blender and G3DViewer show it "exploded" too:
Screenshot from 2019-06-11 16-23-12.png
Screenshot from 2019-06-11 16-23-12.png (160.87 KiB) Viewed 1609 times
umardastgir
Posts: 32
Joined: Mon Apr 22, 2019 9:29 pm

Re: Bug in FreeCAD?

Post by umardastgir »

Hello Yorik,

I honestly think the problem is not in the file. As I mentioned above, the online website renders it perfectly. I am also having the same problems with .dae format for different files. Should I attach more files that have the same problem? (.dae and .3ds)?

In case you come to know what it is, please do let me know.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug in FreeCAD?

Post by Kunda1 »

@umardastgir do you mind changing the title of this thread to something less generic so it's easier to recognize what the bug may be? Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
freedman
Veteran
Posts: 3475
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Bug in FreeCAD?

Post by freedman »

If you look closely on the main floor there is a break in the gas line.

Sorry if you clicked on this and didn't laugh.
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Bug in FreeCAD?

Post by wmayer »

yorik wrote: Tue Jun 11, 2019 7:26 pm the 3DS plugin we use (Dice3DS) seems to have problems with 0.19, probably because of python3. I'll have a better look.
However, the problem seems to be in your file, both Blender and G3DViewer show it "exploded" too:
But with Meshlab the file looks OK, too. So, the question is if Blender and G3DViewer use the same 3rd party component to load 3ds files which has a bug.
umardastgir
Posts: 32
Joined: Mon Apr 22, 2019 9:29 pm

Re: Bug in FreeCAD?

Post by umardastgir »

Was anyone able to figure this out? I'm quite sure its a problem with FreeCAD library, but is there any possibility of this being fixed in Future Versions?
Post Reply