convert iv file to dae file which is always empty

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
albertfq
Posts: 3
Joined: Thu Mar 05, 2020 10:48 pm

convert iv file to dae file which is always empty

Postby albertfq » Thu Mar 05, 2020 11:11 pm

Hi all,

I'm new to FreeCAD and meshes and I'm trying to convert iv files to dae files. With import option, I can import and visualize the models very well. After I export the file with 'dae' format, the file is 1kb and when I import again the generated dae file, it's nothing in the FreeCAD. I also tried to export other format such as 'obj', it's empty too.

Basic Info:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Btw I saw some blog that it might be issue with python 3.6.6, how can we install FreeCAD with python 2.7? If this is the case.
User avatar
sgrogan
Posts: 6166
Joined: Wed Oct 22, 2014 5:02 pm

Re: convert iv file to dae file which is always empty

Postby sgrogan » Fri Mar 06, 2020 12:00 am

albertfq wrote:
Thu Mar 05, 2020 11:11 pm
I also tried to export other format such as 'obj', it's empty too.
I can create a Part Cube and a Mesh cube and export to .dae and Open in another file.
Can you post a sample iv that has this behavior?

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

My exported .dae file
coltt.dae
(7.03 KiB) Downloaded 19 times
"fight the good fight"
albertfq
Posts: 3
Joined: Thu Mar 05, 2020 10:48 pm

Re: convert iv file to dae file which is always empty

Postby albertfq » Fri Mar 06, 2020 7:36 pm

Thks a lot. Here in the attachment is the .iv file that I had trouble with.
Last edited by albertfq on Wed Mar 18, 2020 3:43 pm, edited 1 time in total.
wmayer
Site Admin
Posts: 16649
Joined: Thu Feb 19, 2009 10:32 am

Re: convert iv file to dae file which is always empty

Postby wmayer » Sat Mar 07, 2020 5:02 pm

albertfq wrote:
Fri Mar 06, 2020 7:36 pm
Thks a lot. Here in the attachment is the .iv file that I had trouble with.
The .iv file format is used by OpenInventor (Coin3d) to store the scene graph of the visual representation of the actual data model. Now if you load the .iv file then you just get the visual representation but you don't automatically get the data model, i.e. the mesh object in your case.

You should give MeshLab a chance because this supports quite a lot of mesh formats including the .iv format.
albertfq
Posts: 3
Joined: Thu Mar 05, 2020 10:48 pm

Re: convert iv file to dae file which is always empty

Postby albertfq » Wed Mar 18, 2020 3:45 pm

wmayer wrote:
Sat Mar 07, 2020 5:02 pm
albertfq wrote:
Fri Mar 06, 2020 7:36 pm
Thks a lot. Here in the attachment is the .iv file that I had trouble with.
The .iv file format is used by OpenInventor (Coin3d) to store the scene graph of the visual representation of the actual data model. Now if you load the .iv file then you just get the visual representation but you don't automatically get the data model, i.e. the mesh object in your case.

You should give MeshLab a chance because this supports quite a lot of mesh formats including the .iv format.
Thanks for the tip. I tried meshlab but unfortunately it also cannot import .iv files.
wmayer
Site Admin
Posts: 16649
Joined: Thu Feb 19, 2009 10:32 am

Re: convert iv file to dae file which is always empty

Postby wmayer » Wed Mar 18, 2020 6:55 pm

If you are still interested I have found a way to convert the .iv file into an STL file. This STL can be loaded and converted into an other mesh format.
wmayer
Site Admin
Posts: 16649
Joined: Thu Feb 19, 2009 10:32 am

Re: convert iv file to dae file which is always empty

Postby wmayer » Wed Mar 18, 2020 9:33 pm

Since git commit 601ac707b207c6 it's possible to do:

Code: Select all

import MeshGui
MeshGui.convertToSTL("input_file.iv", "output_file.stl")
Reload the STL and save it into another format.