Page MenuHome

blender 2.77 fails to import VRML file exported from freecad
Closed, ResolvedPublic

Description

System Information
Linux Mint

Blender Version
Broken: 2.77 (22a2853)
Worked: 2.76

When importing a VRML file which is exported from Freecad, not all objects are imported. Mainly the mesh object is missing. Only a single 'IndexedLineSet' is added to the scene. This is the error message I get:

Traceback (most recent call last):
  File "/usr/share/blender/2.77/scripts/addons/io_scene_x3d/__init__.py", line 81, in execute
    return import_x3d.load(context, **keywords)
  File "/usr/share/blender/2.77/scripts/addons/io_scene_x3d/import_x3d.py", line 3597, in load
    global_matrix=global_matrix,
  File "/usr/share/blender/2.77/scripts/addons/io_scene_x3d/import_x3d.py", line 3494, in load_web3d
    importShape(bpyscene, node, ancestry, global_matrix)
  File "/usr/share/blender/2.77/scripts/addons/io_scene_x3d/import_x3d.py", line 3118, in importShape
    bpydata = geom_fn(geom, ancestry, bpyima)
  File "/usr/share/blender/2.77/scripts/addons/io_scene_x3d/import_x3d.py", line 1887, in importMesh_IndexedFaceSet
    if len(points) >= 2 * len(index):  # Need to cull
TypeError: object of type 'NoneType' has no len()

location: <unknown location>:-1

location: <unknown location>:-1

I'm attaching the VRML file which contains a simple cube shaped object.

Note: I've tried "import x3d" addon from the previous version of blender with this (2.77) version, and it worked fine.

Event Timeline

Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.Mar 28 2016, 4:06 PM
Tibor (therman) changed the task status from Unknown Status to Resolved.EditedMar 21 2017, 11:15 PM
Tibor (therman) added a subscriber: Tibor (therman).

I found a solution to this in the FreeCAD forum. See here: http://forum.freecadweb.org/viewtopic.php?t=10815#p103529