Bevel by Offset produces inconsistent results on identical edges. #53459

Closed
opened 2017-12-03 15:22:26 +01:00 by Matt Matteri · 13 comments

System Information
Windows 10 Pro
GTX 1080 Ti

Blender Version
Broken: 2.79 5bd8ac9

Short description of error
When beveling with the 'Offset' Amount Type:

  1. Edges are both not beveled by the given offset but by some other amount.
  2. Edges (even identical edges) are not beveled by the same offset.

Exact steps for others to reproduce the error
Create a symmetrical object
Select symmetrically identical edges and bevel them using the offset amount type
Observe result

Note: Even this is not consistent. I have created the exact same mesh, with vertices in the exact same positions, but different vertex indeces, and the edges bevel differently. beveldemo.blend

**System Information** Windows 10 Pro GTX 1080 Ti **Blender Version** Broken: 2.79 5bd8ac9 **Short description of error** When beveling with the 'Offset' Amount Type: 1. Edges are both not beveled by the given offset but by some other amount. 2. Edges (even identical edges) are not beveled by the same offset. **Exact steps for others to reproduce the error** Create a symmetrical object Select symmetrically identical edges and bevel them using the offset amount type Observe result Note: Even this is not consistent. I have created the exact same mesh, with vertices in the exact same positions, but different vertex indeces, and the edges bevel differently. [beveldemo.blend](https://archive.blender.org/developer/F1278418/beveldemo.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Rekov

Added subscriber: @Rekov

Added subscribers: @howardt, @Sergey

Added subscribers: @howardt, @Sergey
Howard Trickey was assigned by Sergey Sharybin 2017-12-04 10:19:14 +01:00

@howardt, mind having a look here? Thanks! :)

@howardt, mind having a look here? Thanks! :)
Member

Yes, I see what you mean. I will look into it.

Yes, I see what you mean. I will look into it.
Author

This bug might not be related to bevel specifically. Here is the discussion thread that led to this bug report, and it looks like the mesh itself might somehow have become corrupted?

There's a good chance something wonky is going on, though it might not be the bevel tool specifically.

This bug might not be related to bevel specifically. Here is [the discussion thread ](https://blenderartists.org/forum/showthread.php?441822-Why-does-bevelling-by-offset-produce-uneven-results-on-identical-edges) that led to this bug report, and it looks like the mesh itself might somehow have become corrupted? There's a good chance something wonky is going on, though it might not be the bevel tool specifically.
Member

The mesh isn't corrupted. But it does hit a non-determinism in the current algorithm. Here is what I wrote on that thread, which shows my current understanding of this bug:

The problem here is that there are too many constraints that bevel has to satisfy simultaneously in this situation, and it is impossible to satisfy them all, so some compromises are made. Among the constraints are:

  • we would like the newly created vertices to slide along the existing non-beveled edges (users kind of expect this)
  • the slide distance should depends on the (sine of the) angle between the beveled edge and the slide-along edge -- because we want the perpendicular distance to the offset edge to satisfy the offset=amount spec of the user
  • there are two angles involved, and their sines may not be equal
  • all of these constraints hold at the other end of a beveled edge too, and again, the sines of the angles may be different; yet we would like the width of the offset strips to stay constant along their lengths to the extent possible

Because it is impossible to satisfy all these constraints simultaneously, there are compromise values chosen for how far to slide each vertex along their edges. Then there is an "adjustment" pass that tries to propagate slide the compromises to adjacent edges. That process unfortunately is non-deterministic - it depends on the original ordering of vertices to some extent, though there is an effort to try to chain the propagation together after initial choices are made among connected components of edges. Unfortunately in the model here, different choices of propagation order are chosen for two of the edge chains vs the other two, resulting in different end results.

The mesh isn't corrupted. But it does hit a non-determinism in the current algorithm. Here is what I wrote on that thread, which shows my current understanding of this bug: The problem here is that there are too many constraints that bevel has to satisfy simultaneously in this situation, and it is impossible to satisfy them all, so some compromises are made. Among the constraints are: - we would like the newly created vertices to slide along the existing non-beveled edges (users kind of expect this) - the slide distance should depends on the (sine of the) angle between the beveled edge and the slide-along edge -- because we want the perpendicular distance to the offset edge to satisfy the offset=amount spec of the user - there are two angles involved, and their sines may not be equal - all of these constraints hold at the other end of a beveled edge too, and again, the sines of the angles may be different; yet we would like the width of the offset strips to stay constant along their lengths to the extent possible Because it is impossible to satisfy all these constraints simultaneously, there are compromise values chosen for how far to slide each vertex along their edges. Then there is an "adjustment" pass that tries to propagate slide the compromises to adjacent edges. That process unfortunately is non-deterministic - it depends on the original ordering of vertices to some extent, though there is an effort to try to chain the propagation together after initial choices are made among connected components of edges. Unfortunately in the model here, different choices of propagation order are chosen for two of the edge chains vs the other two, resulting in different end results.

Added subscriber: @dhoni

Added subscriber: @dhoni

This comment was removed by @dhoni

*This comment was removed by @dhoni*

Added subscriber: @printerrepairDubai

Added subscriber: @printerrepairDubai

This comment was removed by @printerrepairDubai

*This comment was removed by @printerrepairDubai*

This issue was referenced by 561d738eaa

This issue was referenced by 561d738eaa2f64044f5266a480d9bc822bd0296e
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
6 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#53459
No description provided.