Mesh: Move edge UV seams to a generic attribute #104728

Merged
Hans Goudey merged 11 commits from HooglyBoogly/blender:refactor-mesh-uv-seam-generic into main 2023-03-01 14:13:15 +01:00
Member

As part of #95966, move the ME_SEAM flag on mesh edges
to a generic boolean attribute, called .uv_seam. This is the
last bit of extra information stored in mesh edges. After this
is committed we can switch to a different type for them and
have a 1/3 improvement in memory consumption.

It is also now possible to see that a mesh has no UV seams in
constant time, and like other similar refactors, interacting with
only the UV seams can be done with less memory.

The attribute name starts with a . to signify that the attribute,
like face sets, isn't meant to be used in arbitrary procedural
situations (with geometry nodes for example). That gives us more
freedom to change things in the future.

As part of #95966, move the `ME_SEAM` flag on mesh edges to a generic boolean attribute, called `.uv_seam`. This is the last bit of extra information stored in mesh edges. After this is committed we can switch to a different type for them and have a 1/3 improvement in memory consumption. It is also now possible to see that a mesh has no UV seams in constant time, and like other similar refactors, interacting with only the UV seams can be done with less memory. The attribute name starts with a `.` to signify that the attribute, like face sets, isn't meant to be used in arbitrary procedural situations (with geometry nodes for example). That gives us more freedom to change things in the future.
Hans Goudey added 4 commits 2023-02-14 05:22:13 +01:00
As part of #95966, move the `ME_SEAM` flag on mesh edges
to a generic boolean attribute, called `.uv_seam`. This is the
last bit of extra information stored in mesh edges. After this
is committed we can switch to a different type for them and
have a 1/3 improvement in memory consumption.
Fix Mesh to BMesh conversion
All checks were successful
buildbot/vexp-code-patch-coordinator Build done.
0a2c8104a1
The BMesh edge flag needs to be explicitly zeroed
Author
Member

@blender-bot build

@blender-bot build
Brecht Van Lommel added this to the Module: Modeling project 2023-02-15 09:51:15 +01:00
Hans Goudey added 1 commit 2023-02-23 01:35:24 +01:00
Hans Goudey added 1 commit 2023-02-23 17:36:35 +01:00
Hans Goudey added 1 commit 2023-02-23 19:25:34 +01:00
Hans Goudey added 1 commit 2023-02-27 21:39:38 +01:00
Hans Goudey added 1 commit 2023-02-28 19:10:43 +01:00
Hans Goudey added this to the 3.6 LTS milestone 2023-02-28 19:35:13 +01:00
Hans Goudey added 1 commit 2023-02-28 23:48:54 +01:00
Campbell Barton approved these changes 2023-03-01 04:55:48 +01:00
Hans Goudey added 1 commit 2023-03-01 14:12:39 +01:00
Hans Goudey merged commit cccf91ff83 into main 2023-03-01 14:13:15 +01:00
Hans Goudey deleted branch refactor-mesh-uv-seam-generic 2023-03-01 14:13:16 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 Assignees
2 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#104728
No description provided.