Cleanup: Mesh calculate edges file cleanup #120189

Merged
Hans Goudey merged 2 commits from mod_moder/blender:cleanup_calc_edges into main 2024-04-02 22:49:08 +02:00

Trivial changes of code:

  1. Const correctness.
  2. Arguments order.
  3. Use regular constructor instead of aggregate one.
  4. Replace stateful iterators of corners by bke::mesh functions.
  5. Offset Indices instead of manual prefix sum.
  6. Slight changes of iterator names which is affected by cleanup.
  7. Cpp allocator.
  8. Explicit template parameter.
Trivial changes of code: 1. Const correctness. 2. Arguments order. 3. Use regular constructor instead of aggregate one. 4. Replace stateful iterators of corners by `bke::mesh` functions. 5. Offset Indices instead of manual prefix sum. 6. Slight changes of iterator names which is affected by cleanup. 7. Cpp allocator. 8. Explicit template parameter.
Iliya Katushenock added 2 commits 2024-04-02 21:32:27 +02:00
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
4f2d10fb29
progress
Iliya Katushenock requested review from Hans Goudey 2024-04-02 21:32:37 +02:00
Hans Goudey approved these changes 2024-04-02 21:37:06 +02:00
Member

@blender-bot build

@blender-bot build
Hans Goudey merged commit 3f3df16ba2 into main 2024-04-02 22:49:08 +02:00
Iliya Katushenock deleted branch cleanup_calc_edges 2024-04-03 06:09:37 +02:00
Johannes J. reviewed 2024-04-09 19:45:59 +02:00
@ -104,3 +105,3 @@
const int task_index = &edge_map - edge_maps.data();
int new_edge_index = edge_index_offsets[task_index];
int new_edge_index = edge_offsets[task_index].first();
Contributor

This might cause an assertion failure:

BLI_assert failed: source/blender/blenlib/BLI_index_range.hh:202, first(), at 'this->size() > 0'

Example repro: blender --background --python-expr 'import bpy; m = bpy.data.meshes.new("test"); m.update(calc_edges=True)'

This might cause an assertion failure: `BLI_assert failed: source/blender/blenlib/BLI_index_range.hh:202, first(), at 'this->size() > 0'` Example repro: `blender --background --python-expr 'import bpy; m = bpy.data.meshes.new("test"); m.update(calc_edges=True)'`
Author
Member
#120330
mod_moder marked this conversation as resolved
Sign in to join this conversation.
No reviewers
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#120189
No description provided.