Convert to curve poor result #60859

Closed
opened 2019-01-25 13:23:57 +01:00 by stephen leger · 21 comments
Member

System Information
Operating system: Linux Mint 19
Graphics card: Nvidia 1070

Blender Version
Broken: 2.8
Worked: 2.79

Short description of error
Convert to curve fails.

Exact steps for others to reproduce the error
Load the file, use object -> convert to curve, only half of object succeed.
bug_to_curve.blend

**System Information** Operating system: Linux Mint 19 Graphics card: Nvidia 1070 **Blender Version** Broken: 2.8 Worked: 2.79 **Short description of error** Convert to curve fails. **Exact steps for others to reproduce the error** Load the file, use object -> convert to curve, only half of object succeed. [bug_to_curve.blend](https://archive.blender.org/developer/F6399630/bug_to_curve.blend)
Author
Member

Added subscriber: @StephenLeger

Added subscriber: @StephenLeger
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Can you try to create a simpler example that works in 2.79 but not in 2.8?
I noticed that converting Suzanne to seems to have a similar problem, but it works the same in both versions of Blender.

Can you try to create a simpler example that works in 2.79 but not in 2.8? I noticed that converting Suzanne to seems to have a similar problem, but it works the same in both versions of Blender.
Author
Member

Both samples does work in 2.79 but not in 2.8
Basically i do slice geometry using

bpy.ops.mesh.bisect(
                        'INVOKE_DEFAULT',
                        plane_co=plane_co,
                        plane_no=plane_no,
                        use_fill=True,
                        clear_inner=True,
                        clear_outer=True)

and then convert result to curve.
Doing so never was a problem in 2.79, even on complex meshes as shown in file 1.

bug_to_curve.blend

Both samples does work in 2.79 but not in 2.8 Basically i do slice geometry using ``` bpy.ops.mesh.bisect( 'INVOKE_DEFAULT', plane_co=plane_co, plane_no=plane_no, use_fill=True, clear_inner=True, clear_outer=True) ``` and then convert result to curve. Doing so never was a problem in 2.79, even on complex meshes as shown in file 1. [bug_to_curve.blend](https://archive.blender.org/developer/F6400733/bug_to_curve.blend)
Member

Maybe it helps when you don't use the use_fill option so that you don't have any faces left?

Maybe it helps when you don't use the `use_fill` option so that you don't have any faces left?
Author
Member

Ok,
removing faces does fix the issue, but it's a regression from 2.79

Ok, removing faces does fix the issue, but it's a regression from 2.79

Added subscriber: @ZedDB

Added subscriber: @ZedDB

Do you get the same problem with the 2.79 build from here? https://builder.blender.org/download/

I get the exact same result on both the latest 2.79 build and 2.8. So I'm guessing this it is not really 2.8 related. (So it's a regression for both)

Do you get the same problem with the 2.79 build from here? https://builder.blender.org/download/ I get the exact same result on both the latest 2.79 build and 2.8. So I'm guessing this it is not really 2.8 related. (So it's a regression for both)
Author
Member

Same geometry is failing on both 2.79c and 2.8 (using crtl+c and paste to move between apps)

However building geometry using bpy.ops.bisect() and then convert does succeed in both
2.79c and 2.79 d377cd5db1
but fails in 2.8 690478027b (i've to remove faces to make it work as in 2.79)

So looks like bisect output is not consistent across blender's versions.

Same geometry is failing on both 2.79c and 2.8 (using crtl+c and paste to move between apps) However building geometry using bpy.ops.bisect() and then convert does succeed in both 2.79c and 2.79 d377cd5db19a but fails in 2.8 690478027bd7 (i've to remove faces to make it work as in 2.79) So looks like bisect output is not consistent across blender's versions.

How do i bisect the mesh in 2.79 to make it work?

How do i bisect the mesh in 2.79 to make it work?
Author
Member

In edit mode if i recall correctly

- plane co: coord of one point in bisect plane
- plane no: vector of bisect plane normal
bpy.ops.mesh.bisect(
                        'INVOKE_DEFAULT',
                        plane_co=plane_co,
                        plane_no=plane_no,
                        use_fill=True,
                        clear_inner=True,
                        clear_outer=True)

see in action:
https://youtu.be/AmPDyhwBA8w?t=31

In edit mode if i recall correctly ``` - plane co: coord of one point in bisect plane - plane no: vector of bisect plane normal bpy.ops.mesh.bisect( 'INVOKE_DEFAULT', plane_co=plane_co, plane_no=plane_no, use_fill=True, clear_inner=True, clear_outer=True) ``` see in action: https://youtu.be/AmPDyhwBA8w?t=31

Yes, but in the example files you have to slice it somewhere.

Or are you not bisecting the mesh in bug_to_curve.blend ?

Yes, but in the example files you have to slice it somewhere. Or are you not bisecting the mesh in `bug_to_curve.blend` ?
Author
Member

The bug_to_curve.blend file is a result of bisect done through same code as seen in video, but under 2.8

The bug_to_curve.blend file is a result of bisect done through same code as seen in video, but under 2.8

Added subscriber: @ideasman42

Added subscriber: @ideasman42

@ideasman42 any ideas?

@ideasman42 any ideas?

There are many duplicate faces in this mesh causing curve conversion to fail in those cases.

Blender should never create duplicate faces, so the issue is likely a spesific tool or script.

While removing double faces on entering edit-mode is possible, it's going to slow things down so I'd rather first find out how the mesh was created.

There are many duplicate faces in this mesh causing curve conversion to fail in those cases. Blender should never create duplicate faces, so the issue is likely a spesific tool or script. While removing double faces on entering edit-mode is possible, it's going to slow things down so I'd rather first find out how the mesh was created.
Author
Member

Will check twice the mesh generation code - to ensure there is no dups as i do join() meshes together before bisect().
But as far as i can tell, exact same code was (is) working without any trouble under 2.79c and 2.79 lastest buildbot

The workaround for this issue in code is to remove all faces.

Will check twice the mesh generation code - to ensure there is no dups as i do join() meshes together before bisect(). But as far as i can tell, exact same code was (is) working without any trouble under 2.79c and 2.79 lastest buildbot The workaround for this issue in code is to remove all faces.
Member

Is this still an issue?

Is this still an issue?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Philipp Oeser self-assigned this 2019-03-19 09:39:42 +01:00
Member

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.
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#60859
No description provided.