Bmesh Operator "diameter" attribute is not diameter but radius #52923

Closed
opened 2017-09-27 16:15:58 +02:00 by Nikolai Janakiev · 10 comments

diameter_test.py

{F888474}Blender Version
Broken: 2.79 5bd8ac9

Short description of error
Bmesh Operators (bmesh.ops.create_circle, bmesh.ops.create_uvsphere, bmesh.ops.create_icosphere, bmesh.ops.create_cone) using the attribute 'diameter' (and attributes 'diameter1' and 'diameter2' for bmesh.ops.create_cone) are creating meshes where 'diameter' is interpreted as radius of the mesh, meaning that the resulting diameter is twice as big.

Exact steps for others to reproduce the error
The script "diameter_test.py" creates a mesh with the Bmesh operators with diameter 1 but having the resulting diameter 2. In diameter_test.blend is the whole scene with the generated meshes and the previous script.

[diameter_test.py](https://archive.blender.org/developer/F888473/diameter_test.py) {[F888474](https://archive.blender.org/developer/F888474/diameter_test.blend)}**Blender Version** Broken: 2.79 5bd8ac9 **Short description of error** Bmesh Operators (bmesh.ops.create_circle, bmesh.ops.create_uvsphere, bmesh.ops.create_icosphere, bmesh.ops.create_cone) using the attribute 'diameter' (and attributes 'diameter1' and 'diameter2' for bmesh.ops.create_cone) are creating meshes where 'diameter' is interpreted as radius of the mesh, meaning that the resulting diameter is twice as big. **Exact steps for others to reproduce the error** The script "diameter_test.py" creates a mesh with the Bmesh operators with diameter 1 but having the resulting diameter 2. In diameter_test.blend is the whole scene with the generated meshes and the previous script.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @paramcookie

Added subscriber: @paramcookie

blender/blender#52922 was marked as duplicate of this issue

blender/blender#52922 was marked as duplicate of this issue
Nikolai Janakiev changed title from Bmesh Operator "diameter" attribute to Bmesh Operator "diameter" attribute is not diameter but radius 2017-09-27 17:41:48 +02:00
Member

Added subscribers: @Sergey, @LazyDodo

Added subscribers: @Sergey, @LazyDodo
Sergey Sharybin was assigned by Ray molenkamp 2017-09-28 17:39:22 +02:00
Member

I can confirm the issue, however fixing it by either renaming the parameter or changing the way the geometry gets generated in bmo_primitive.c would cause quite some breaking for everyone (which i guess we could do for 2.8). not sure what the best way forward is here, paging @Sergey for guidance.

I can confirm the issue, however fixing it by either renaming the parameter or changing the way the geometry gets generated in bmo_primitive.c would cause quite some breaking for everyone (which i guess we could do for 2.8). not sure what the best way forward is here, paging @Sergey for guidance.
Member

Added subscriber: @tiles

Added subscriber: @tiles
Sergey Sharybin removed their assignment 2017-10-02 11:03:24 +02:00
Campbell Barton was assigned by Sergey Sharybin 2017-10-02 11:03:24 +02:00

Added subscriber: @ideasman42

Added subscriber: @ideasman42

@ideasman42, this sounds more like your area?

@ideasman42, this sounds more like your area?

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by blender/blender@d1dfed206b

This issue was referenced by blender/blender@d1dfed206b34b128bb0a972891bcc0a249176209
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#52923
No description provided.