Skip to content

Commit

Permalink
reverse all normals
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamiand committed Nov 20, 2023
1 parent f82c470 commit 2214e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Basic_viewer/include/CGAL/Graphics_scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Graphics_scene
update_bounding_box(lp.bbox() + (lp + lv).bbox() + (lp + lpv).bbox());
}

void reverse_normals() const
void reverse_all_normals() const
{
m_buffer_for_mono_faces.negate_normals();
m_buffer_for_colored_faces.negate_normals();
Expand Down
2 changes: 1 addition & 1 deletion Basic_viewer/include/CGAL/Qt/Basic_viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class Basic_viewer : public CGAL::QGLViewer
void reverse_all_normals()
{
m_inverse_normal=!m_inverse_normal;
gBuffer.reverse_normals();
gBuffer.reverse_all_normals();
}

// Returns true if the data structure lies on a plane
Expand Down

0 comments on commit 2214e3d

Please sign in to comment.