Skip to content

Commit

Permalink
Fix black color of points and wireframe for datasets with point normals
Browse files Browse the repository at this point in the history
- geometry appeared black when viewed from behind.
  • Loading branch information
jspanchu committed Apr 11, 2024
1 parent f0a5bc0 commit fdd6b4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/GeometryViewer/GeometryViewer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,14 @@ void GeometryViewer::SetRepresentation(int rep) {
std::cout << __func__ << '(' << rep << ')' << std::endl;
if (rep <= VTK_SURFACE) {
this->P->Actor->GetProperty()->SetRepresentation(rep);
if (rep != VTK_SURFACE)
{
this->P->Actor->GetProperty()->SetAmbient(1.0);
}
else
{
this->P->Actor->GetProperty()->SetAmbient(0.0);
}
this->P->Actor->GetProperty()->SetEdgeVisibility(false);
} else if (rep == 3) {
this->P->Actor->GetProperty()->SetRepresentationToSurface();
Expand Down

0 comments on commit fdd6b4d

Please sign in to comment.