Fix: Add Mesh Extra Objects: Inverted normals of solids when vertex positions are inverted #105123

Merged
Thomas Barlow merged 3 commits from Mysteryem/blender-addons:fix_mesh_extra_objects_solid_inverted_normals into main 2024-01-16 21:38:19 +01:00
Member

A number of cases of add_mesh_solid.createSolid invert the vertex
positions, but this turns the solid inside-out, causing the normals to
be flipped.

This is fixed by also flipping the normals of the faces in these cases,
which is done by reversing the order of the vertices of each face.


An alternative to !105117, following discussion in that PR.

A number of cases of `add_mesh_solid.createSolid` invert the vertex positions, but this turns the solid inside-out, causing the normals to be flipped. This is fixed by also flipping the normals of the faces in these cases, which is done by reversing the order of the vertices of each face. --- An alternative to !105117, following discussion in that PR.
Thomas Barlow added 2 commits 2024-01-15 03:14:14 +01:00
A number of cases of `add_mesh_solid.createSolid` invert the vertex
positions, but this turns the solid inside-out, causing the normals to
be flipped.

This is fixed by also reversing the order of the vertices of each face
in these cases, which results in their normals being flipped.
Damien Picard approved these changes 2024-01-15 10:37:04 +01:00
Damien Picard left a comment
Member

Looks good to me!

Looks good to me!
Thomas Barlow added 1 commit 2024-01-16 21:37:34 +01:00
Thomas Barlow merged commit 5cc25e238e into main 2024-01-16 21:38:19 +01:00
Thomas Barlow deleted branch fix_mesh_extra_objects_solid_inverted_normals 2024-01-16 21:38:19 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
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-addons#105123
No description provided.