bevel modifier behave weird with screwed object #39486

Closed
opened 2014-03-28 14:48:26 +01:00 by Jakub Strykowski · 14 comments

Blender Version
Broken: 2.70 official

**Showed on image, when profile is not rotated bevel looks good, but when rotate by 45' it makes mess

{F83212}bevel_bug.blend

**Blender Version** Broken: 2.70 official **Showed on image, when profile is not rotated bevel looks good, but when rotate by 45' it makes mess {[F83212](https://archive.blender.org/developer/F83212/bevel_bug.jpg)}[bevel_bug.blend](https://archive.blender.org/developer/F83214/bevel_bug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @cenobi

Added subscriber: @cenobi

#40100 was marked as duplicate of this issue

#40100 was marked as duplicate of this issue

#39499 was marked as duplicate of this issue

#39499 was marked as duplicate of this issue

Added subscriber: @mont29

Added subscriber: @mont29
Howard Trickey was assigned by Bastien Montagne 2014-03-28 15:23:25 +01:00

Added subscribers: @alihakkidemiral, @gwentiv

Added subscribers: @alihakkidemiral, @gwentiv

◀ Merged tasks: #39499.

◀ Merged tasks: #39499.
Member

I agree that something funny is going on here, and will try to debug it.

I agree that something funny is going on here, and will try to debug it.
Member

Finally looked at this. Uploaded another .blend that is easier to test with.
screw.blend

The problem is that the twist means that there is no perfect place for the beveled verts to go such that the offset distance from the original edge is the spec, at both ends. So it chooses a compromise place that happens to make the one side about 2% too wide and the other about 2% too narrow. There is an adjustment pass that tries to make both ends of the bevel have the same width. Unfortunately, that pass keeps making one side 2% narrower and the other side 2% wider at each edge. After several hundred edges, one side seems to have almost zero width, and the other side is much bigger than the spec.

I need to either (1) find a smarter algorithm for the width adjustment that doesn't allow this accumulation; or (2) add an option to "not try to adjust widths". The latter would fix this case but it is really annoying to accumulate flags whose only purpose is to work around problems that otherwise occur. So will try for a smarter algorithm first.

Finally looked at this. Uploaded another .blend that is easier to test with. [screw.blend](https://archive.blender.org/developer/F98710/screw.blend) The problem is that the twist means that there is no perfect place for the beveled verts to go such that the offset distance from the original edge is the spec, at both ends. So it chooses a compromise place that happens to make the one side about 2% too wide and the other about 2% too narrow. There is an adjustment pass that tries to make both ends of the bevel have the same width. Unfortunately, that pass keeps making one side 2% narrower and the other side 2% wider at each edge. After several hundred edges, one side seems to have almost zero width, and the other side is much bigger than the spec. I need to either (1) find a smarter algorithm for the width adjustment that doesn't allow this accumulation; or (2) add an option to "not try to adjust widths". The latter would fix this case but it is really annoying to accumulate flags whose only purpose is to work around problems that otherwise occur. So will try for a smarter algorithm first.
Member

Added subscribers: @00Ghz, @MarcClintDion, @howardt, @JulianEisel

Added subscribers: @00Ghz, @MarcClintDion, @howardt, @JulianEisel

Added subscriber: @Inwader77

Added subscriber: @Inwader77

This issue was referenced by 0c420a2e49

This issue was referenced by 0c420a2e496963c3f2730333a2c09f788efba39b
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Note that I gave up trying to make an algorithm that works well in all cases. I could fix the bug in this report by clamping the amount of width adjustment in the global width adjustment path; but that made one of the regression tests look bad.

But I really didn't want to add a flag meaning "do global width adjustment" because I felt it would be hard to explain to users. Luckily, the 'Clamp overlap' flag already has a kind of similar meaning -- "don't let the parameters get so out of control so as to make the result crazy". And also luckily, that flag is on by default in the bevel modifier. So I decided to have the clamping effect happen only when the "Clamp overlap" flag is on, which means that the bevel_bug.blend example in this bug now works fine.

Note that I gave up trying to make an algorithm that works well in all cases. I could fix the bug in this report by clamping the amount of width adjustment in the global width adjustment path; but that made one of the regression tests look bad. But I really didn't want to add a flag meaning "do global width adjustment" because I felt it would be hard to explain to users. Luckily, the 'Clamp overlap' flag already has a kind of similar meaning -- "don't let the parameters get so out of control so as to make the result crazy". And also luckily, that flag is on by default in the bevel modifier. So I decided to have the clamping effect happen only when the "Clamp overlap" flag is on, which means that the bevel_bug.blend example in this bug now works fine.
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
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#39486
No description provided.