different order of face vertices indexes between 2.76b and 2.77a #48444

Closed
opened 2016-05-15 20:44:18 +02:00 by Jakub Uhlik · 9 comments

System Information
Mac OS X

Blender Version
Broken: 2.77a
Worked: 2.76b

Short description of error
different order of face vertices causing problems exporting meshes

Exact steps for others to reproduce the error
list face vertices in both blender versions, lists won't be the same, eg:

l = [p.vertices[:] for p in me.polygons]

hello, i am writing exporter for Maxwell Render (https://github.com/uhlik/blendmaxwell). maxwell has feature of rendertime subdivision modifier. exactly same scene and same exporter revision creates same mesh visually, but because of different order of face vertices indexes, mesh from 2.77a with subdivision modifier refuses to render with error: "An edge connecting two vertices was specified more than once. It's likely that an incident face was flipped". the only difference is order of triangle vertices indexes returned from simple loop like the one above. was the behavior of polygon.vertices changed? haven't seen anything in release notes. or it is a bug? might cause problems for other exporters as well..

**System Information** Mac OS X **Blender Version** Broken: 2.77a Worked: 2.76b **Short description of error** different order of face vertices causing problems exporting meshes **Exact steps for others to reproduce the error** list face vertices in both blender versions, lists won't be the same, eg: ``` l = [p.vertices[:] for p in me.polygons] ``` hello, i am writing exporter for Maxwell Render (https://github.com/uhlik/blendmaxwell). maxwell has feature of rendertime subdivision modifier. exactly same scene and same exporter revision creates same mesh visually, but because of different order of face vertices indexes, mesh from 2.77a with subdivision modifier refuses to render with error: "An edge connecting two vertices was specified more than once. It's likely that an incident face was flipped". the only difference is order of triangle vertices indexes returned from simple loop like the one above. was the behavior of polygon.vertices changed? haven't seen anything in release notes. or it is a bug? might cause problems for other exporters as well..
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @JakubUhlik

Added subscriber: @JakubUhlik

Added subscriber: @mont29

Added subscriber: @mont29

Cannot reproduce that here, tested same file in 2.76b, 2.77a and current master and get exact same result. Please attach a .blend showing the issue.

Cannot reproduce that here, tested same file in 2.76b, 2.77a and current master and get exact same result. Please attach a .blend showing the issue.
Author

here is a blend. run script.a.blend

here is a blend. run script.[a.blend](https://archive.blender.org/developer/F312368/a.blend)

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Ok, so this has nothing to do with py API, it’s just the triangulate BMesh operator that changed somehow… @ideasman42 may know better here, but I cannot see anything wrong in results of 2.76 or 2.77, order may change, but triangles and their winding remains the same.

Ok, so this has nothing to do with py API, it’s just the triangulate BMesh operator that changed somehow… @ideasman42 may know better here, but I cannot see anything wrong in results of 2.76 or 2.77, order may change, but triangles and their winding remains the same.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2016-05-16 11:47:59 +02:00

Triangulation has had some tweaks since 2.76, unless the geometry is invalid. This isn't considered a bug.

Adding the following lines to the Text in a.blend shows there are no duplicate edges.

edges = [tuple(sorted(e.vertices)) for e in me.edges]
print(edges)
print(len(edges), len(set(edges)))

closing.

Triangulation has had some tweaks since 2.76, unless the geometry is invalid. This isn't considered a bug. Adding the following lines to the `Text` in `a.blend` shows there are no duplicate edges. ``` edges = [tuple(sorted(e.vertices)) for e in me.edges] print(edges) print(len(edges), len(set(edges))) ``` closing.
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#48444
No description provided.