Bmesh Operator "diameter" attribute is not diameter but radius #52923
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#52923
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Changed status to: 'Open'
Added subscriber: @paramcookie
blender/blender#52922 was marked as duplicate of this issue
Bmesh Operator "diameter" attributeto Bmesh Operator "diameter" attribute is not diameter but radiusAdded subscribers: @Sergey, @LazyDodo
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.
Added subscriber: @tiles
Added subscriber: @ideasman42
@ideasman42, this sounds more like your area?
Changed status from 'Open' to: 'Resolved'
This issue was referenced by blender/blender@d1dfed206b