Distorted mesh after "Vertices -> Remove Doubles" #47540

Closed
opened 2016-02-23 10:01:30 +01:00 by Wolfgang Geithner · 7 comments

TestFile.blend

System Information
Macbook 13" late 2008 with 4GB RAM, I see this issue on Windows machine too

Blender Version
2.75a, 2.76b

Short description of error
In the attached file I have an object and a duplicate of this object. The object was created by exporting fraom CATIA to STEP, then importing the STEP to Glovius and exporting to 3DS and finally creating the BLEND file from the 3DS.
In the process the object is created with a lot of duplicate vertices (I don't know why...) but with a satisfactory geometry. Without modifying the geometry, I can apply Smooth without problems. The result is OK (object "_object")
If I apply "Vertices -> Remove Doubles" the mesh becomes distorted (see object "_object.001") which results as well in a distorted render result (see areas around holes in render result). If I render the object with Flat geometry and with duplicates removed, the result is OK - but not smooth...

Exact steps for others to reproduce the error
In attached file:

  • Select object "_object" (original object after import of 3DS)
  • best make a duplicate of object _object
  • Go into edit mode
  • Apply "Vertices -> Remove Doubles"
[TestFile.blend](https://archive.blender.org/developer/F285396/TestFile.blend) **System Information** Macbook 13" late 2008 with 4GB RAM, I see this issue on Windows machine too **Blender Version** 2.75a, 2.76b **Short description of error** In the attached file I have an object and a duplicate of this object. The object was created by exporting fraom CATIA to STEP, then importing the STEP to Glovius and exporting to 3DS and finally creating the BLEND file from the 3DS. In the process the object is created with a lot of duplicate vertices (I don't know why...) but with a satisfactory geometry. Without modifying the geometry, I can apply Smooth without problems. The result is OK (object "_object") If I apply "Vertices -> Remove Doubles" the mesh becomes distorted (see object "_object.001") which results as well in a distorted render result (see areas around holes in render result). If I render the object with Flat geometry and with duplicates removed, the result is OK - but not smooth... **Exact steps for others to reproduce the error** In attached file: * Select object "_object" (original object after import of 3DS) * best make a duplicate of object _object * Go into edit mode * Apply "Vertices -> Remove Doubles"

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @WolfgangGeithner

Added subscriber: @WolfgangGeithner

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2016-02-23 10:42:22 +01:00

This is just the way shading works. The inner part of holes (tube-shaped) was a separate geometry from the top cover, which made it so no normals interpolation happens inside of the hole. With removed doubles you just merged all the geometry into a single manifold, which makes it so normals are getting interpolated inside of the hole, causing artifacts for you.

Either don't merge those parts of the mesh, or use autosplit or add an edge split modifier.

Thanks for the report, but it's not a bug at all, just the way shading works.

This is just the way shading works. The inner part of holes (tube-shaped) was a separate geometry from the top cover, which made it so no normals interpolation happens inside of the hole. With removed doubles you just merged all the geometry into a single manifold, which makes it so normals are getting interpolated inside of the hole, causing artifacts for you. Either don't merge those parts of the mesh, or use autosplit or add an edge split modifier. Thanks for the report, but it's not a bug at all, just the way shading works.

Added subscriber: @mont29

Added subscriber: @mont29

Thanks for the report, but there is no bug here.

Issue comes from the fact that your object has 'sharp' edges, i.e. edges which vertices have different normals for each of their faces. Since this is not supported of hand by many application, your exporter at some point “split” you mesh such that you get one vertex per face, and hence expected normals.

If you can export your object directly to .obj or .fbx formats, Blender can now import those while preserving custom normals (and you should not have duplicated normals anymore either) - provided your exporter supports those custom normals.

Re-generating custom normals when un-splitting a mesh is a nice TODO tool, but definitively not a bug. ;)

Thanks for the report, but there is no bug here. Issue comes from the fact that your object has 'sharp' edges, i.e. edges which vertices have different normals for each of their faces. Since this is not supported of hand by many application, your exporter at some point “split” you mesh such that you get one vertex per face, and hence expected normals. If you can export your object directly to .obj or .fbx formats, Blender can now import those while preserving custom normals (and you should not have duplicated normals anymore either) - provided your exporter supports those custom normals. Re-generating custom normals when un-splitting a mesh is a nice TODO tool, but definitively not a bug. ;)
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
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#47540
No description provided.