STL normals import #44536

Closed
opened 2015-04-28 15:15:07 +02:00 by Zsolt Stefan · 8 comments

Hi, the creator of the STL I/O script Guillaume Bouchard wrote in the wiki to file a bug report if someone needs normals export. Export has been added. We now have custom normals in Blender, I would therefore like to ask if someone could also add STL normals import.

Thank you and cheers,
Zsolt

Hi, the creator of the STL I/O script Guillaume Bouchard wrote in the wiki to file a bug report if someone needs normals export. Export has been added. We now have custom normals in Blender, I would therefore like to ask if someone could also add STL normals import. Thank you and cheers, Zsolt
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @ZsoltStefan

Added subscriber: @ZsoltStefan
Bastien Montagne self-assigned this 2015-04-28 16:09:07 +02:00

Not a bug, but a TODO… Will try to tackle that when I have time.

Not a bug, but a TODO… Will try to tackle that when I have time.

This issue was referenced by e75551f706

This issue was referenced by e75551f7062c6ef3d2eee456492a7c6d6bc6aeb2

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit e75551f706.

Closed by commit e75551f706.
Author

Hi, thank you.
One problem though, this seems to have broken the import scalesetting. Only a scale = 1 works, any other value stops the import script with the following error:

Traceback (most recent call last):
  File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\__init__.py", line 151, in execute
    tris, tri_nors, pts = stl_utils.read_stl(path)
  File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\stl_utils.py", line 265, in read_stl
    for nor, pt in gen(data):
  File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\stl_utils.py", line 160, in _ascii_read
    curr_nor = tuple(map(float, l_item.split()[2:]))
NameError: name 'l_item' is not defined

location: <unknown location>:-1
Hi, thank you. One problem though, this seems to have broken the import **scale**setting. Only a scale = 1 works, any other value stops the import script with the following error: ``` Traceback (most recent call last): File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\__init__.py", line 151, in execute tris, tri_nors, pts = stl_utils.read_stl(path) File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\stl_utils.py", line 265, in read_stl for nor, pt in gen(data): File "C:\Blender\blender-2.74-62b13c6-win64\2.74\scripts\addons\io_mesh_stl\stl_utils.py", line 160, in _ascii_read curr_nor = tuple(map(float, l_item.split()[2:])) NameError: name 'l_item' is not defined location: <unknown location>:-1 ```

Thanks for the headup, fixed typo in 2182a3db54.

Thanks for the headup, fixed typo in 2182a3db54.
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#44536
No description provided.