Sort Elements Node #109983

Closed
opened 2023-07-11 21:08:18 +02:00 by Hans Goudey · 1 comment
Member

image

Inputs

  • Domain All domains except for "corner" are supported
  • Selection Only selected elements are affected
  • Group ID Elements with the same group ID are sorted together (though there may be gaps of unselected elements), without considering outside elements. In the final geometry, the elements in each group are moved together, ordered by the value of the ID.
  • Sort Weight The sorted values used to do the reordering. If this and the group ID are single values, the node does nothing

Behavior

Sorting some domains implicitly reorders or changes other domains too. Reordering faces and curves will reorder their points. Reordering vertices will remap corner vertices and edge vertex indices. Reordering edges will remap corner edges.

Like other nodes, attributes need to be interpolated, so all attribute data is reordered, not just the topology attributes.

Performance Notes

  • When reordering faces or curves, if every face/curve has the same size, their offsets won't be affected, so they shouldn't be changed.

Background

Normally the order of elements in a geometry doesn't matter, but sometimes it does, and it's nice to have control in those situations. For example, edit mode already has the operators in the screenshot below. With fields, these can be better generalized.

image

![image](/attachments/c7424027-2d23-4c24-b8ef-f48498a75864) ## Inputs - **Domain** All domains except for "corner" are supported - **Selection** Only selected elements are affected - **Group ID** Elements with the same group ID are sorted together (though there may be gaps of unselected elements), without considering outside elements. In the final geometry, the elements in each group are moved together, ordered by the value of the ID. - **Sort Weight** The sorted values used to do the reordering. If this and the group ID are single values, the node does nothing ## Behavior Sorting some domains implicitly reorders or changes other domains too. Reordering faces and curves will reorder their points. Reordering vertices will remap corner vertices and edge vertex indices. Reordering edges will remap corner edges. Like other nodes, attributes need to be interpolated, so all attribute data is reordered, not just the topology attributes. #### Performance Notes - When reordering faces or curves, if every face/curve has the same size, their offsets won't be affected, so they shouldn't be changed. ## Background Normally the order of elements in a geometry doesn't matter, but sometimes it does, and it's nice to have control in those situations. For example, edit mode already has the operators in the screenshot below. With fields, these can be better generalized. ![image](/attachments/3d115cf0-ff36-4dc9-bd6b-e69594857965)
Hans Goudey added the
Type
Design
label 2023-07-11 21:08:18 +02:00
Hans Goudey added this to the Nodes & Physics project 2023-07-11 21:08:19 +02:00
Hans Goudey added the
Interest
Geometry Nodes
label 2023-07-11 21:08:37 +02:00

Commit of new node itself: 37b2c12cfa
Commit of manual page for node: fb6063ff26
Not sure if it is necessary to add developers documentation about new functions in geometry modul, so no need for change in documentation.

Commit of new node itself: https://projects.blender.org/blender/blender/commit/37b2c12cfa5eb8def2428ec7a7cf36328382dc34 Commit of manual page for node: https://projects.blender.org/blender/blender-manual/commit/fb6063ff263357ada6418f7399baea3759ed0cef Not sure if it is necessary to add developers documentation about new functions in geometry modul, so no need for change in documentation.
Blender Bot added the
Status
Archived
label 2024-03-22 17:56:24 +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 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#109983
No description provided.