Skip to content

Fix mesh attributes in brash patch#3699

Merged
Grantim merged 3 commits intomasterfrom
Fix_mesh_attributes_in_brash_patch
Nov 16, 2024
Merged

Fix mesh attributes in brash patch#3699
Grantim merged 3 commits intomasterfrom
Fix_mesh_attributes_in_brash_patch

Conversation

@Grantim
Copy link
Copy Markdown
Contributor

@Grantim Grantim commented Nov 16, 2024

  1. Introduce MeshRegion<T> and unify MeshPart and MeshVertPart
  2. Support MeshRegion in attributes projection function
  3. Project new vertices attributes after Patch

@Grantim Grantim requested a review from Fedr November 16, 2024 10:48
// In modern C++ the result doesn't need to be `std::launder`ed, right?
this->~MeshPart();
::new((void *)this) MeshPart(other);
::new( ( void* )this ) MeshPart( other );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MeshPart -> MeshRegion?

Comment on lines +23 to +24
const ObjectMesh& oldMesh,
const MeshPart& mp,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const ObjectMesh& oldMesh,
const MeshPart& mp,
const ObjectMesh& oldMeshObj,
const MeshPart& newMeshPart,


VertBitSet vertRegion;
MeshVertPart mvp( newMesh );
if ( mp.region )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it inside hasVertAttribs branch?

FaceColors faceColors;
};

// projecting the attributes of the old mesh onto the new
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// projecting the attributes of the old mesh onto the new
/// finds attributes of new mesh part by projecting region's faces/vertices on old mesh

@Grantim Grantim merged commit 1485116 into master Nov 16, 2024
@Grantim Grantim deleted the Fix_mesh_attributes_in_brash_patch branch November 16, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants