Add support to tessellate 'ngons with holes' in mesh's validate() func? Much useful for importers (FBX, OBJ...) #46761

Open
opened 2015-11-13 16:25:21 +01:00 by paul geraskin · 6 comments
Member

System Information

Blender Version
2.76

Short description of error
fbx does not import NGON. But it imports into Modo.
Blender:
Selection_018.png

Modo:
Selection_020.png

File:
exchange.fbx

Exact steps for others to reproduce the error
import fbx

**System Information** **Blender Version** 2.76 **Short description of error** fbx does not import NGON. But it imports into Modo. Blender: ![Selection_018.png](https://archive.blender.org/developer/F254290/Selection_018.png) Modo: ![Selection_020.png](https://archive.blender.org/developer/F254292/Selection_020.png) File: [exchange.fbx](https://archive.blender.org/developer/F254294/exchange.fbx) **Exact steps for others to reproduce the error** import fbx
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @PaulGeraskin

Added subscriber: @PaulGeraskin

Added subscribers: @ideasman42, @mont29

Added subscribers: @ideasman42, @mont29

Well… FBX does import ngons, the problem is that Blender does not supports ngons with holes (nor ngons using same edge more than once, which is how ngons with holes are represented in formats like FBX or OBJ).

OBJ importer does handle that situation, but the issue here is that doing the same thing with a format as complex as FBX is not really possible (would be a nightmare to correctly map newly generated geometry to old one for all the datalayers). It’s already really complex code in OBJ, btw.

Think the solution here would rather be to add an additional step to our (C-coded) mesh.validate() func, which would check for those blender-invalid specific cases and modify the geometry accordingly. Would also be much more efficient than doing this in py.

@ideasman42 if you agree, I can try to make a patch?

Well… FBX does import ngons, the problem is that Blender does not supports ngons with holes (nor ngons using same edge more than once, which is how ngons with holes are represented in formats like FBX or OBJ). OBJ importer does handle that situation, but the issue here is that doing the same thing with a format as complex as FBX is not really possible (would be a nightmare to correctly map newly generated geometry to old one for all the datalayers). It’s already really complex code in OBJ, btw. Think the solution here would rather be to add an additional step to our (C-coded) mesh.validate() func, which would check for those blender-invalid specific cases and modify the geometry accordingly. Would also be much more efficient than doing this in py. @ideasman42 if you agree, I can try to make a patch?
Bastien Montagne changed title from FBX: fbx does not import NGON to Add support to tessellate 'ngons with holes' in mesh's validate() func? Much useful for importers (FBX, OBJ...) 2015-11-13 17:15:27 +01:00
Bastien Montagne self-assigned this 2015-11-13 17:15:27 +01:00

@mont29, hi, yes - this can be added to validate. (port from OBJ's Python code).

However I'd like it to be optional, since this is an invalid face for Blender.

@mont29, hi, yes - this can be added to validate. (port from OBJ's Python code). However I'd like it to be optional, since this _is_ an invalid face for Blender.

Yes of course, this has to be an option, we do not want that to validate internally-generated meshes ;)

Yes of course, this has to be an option, we do not want that to validate internally-generated meshes ;)
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:30:13 +01:00
Bastien Montagne removed their assignment 2023-02-21 10:34:09 +01:00
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#46761
No description provided.