blender 2.77 fails to import VRML file exported from freecad #47970

Closed
opened 2016-03-27 22:34:05 +02:00 by Hasan Yavuz Özderya · 7 comments

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. cube.wrl

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

**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. [cube.wrl](https://archive.blender.org/developer/F298479/cube.wrl) Note: I've tried "import x3d" addon from the previous version of blender with this (2.77) version, and it worked fine.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @hyOzd

Added subscriber: @hyOzd

Added subscriber: @mont29

Added subscriber: @mont29
Seva Alekseyev (NIH) was assigned by Bastien Montagne 2016-03-28 16:05:46 +02:00

Can confirm the issue here.

Can confirm the issue here.

Added subscriber: @therman

Added subscriber: @therman

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Tibor closed this issue 2017-03-21 23:15:46 +01:00

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

I found a solution to this in the FreeCAD forum. See here: http://forum.freecadweb.org/viewtopic.php?t=10815#p103529
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#47970
No description provided.