Skip to content
Snippets Groups Projects
Verified Commit f1b02bbe authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon:
Browse files

emscripten: Example for surface with edges

parent 37cad402
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include "vtkNew.h"
#include "vtkPolyData.h"
#include "vtkPolyDataMapper.h"
#include "vtkProperty.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
......@@ -38,6 +39,8 @@ int main(int argc, char* argv[])
vtkNew<vtkActor> actor;
actor->SetMapper(mapper);
actor->GetProperty()->SetEdgeVisibility(1);
actor->GetProperty()->SetEdgeColor(1, 0, 1);
// Add the actors to the scene
renderer->AddActor(actor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment