| 333 | |
| 334 | # styling functions |
| 335 | def _apply_style(actor): |
| 336 | props = actor.GetProperty() |
| 337 | props.SetEdgeColor(vtkNamedColors().GetColor3d(meshcolor)) |
| 338 | props.SetVertexColor(vtkNamedColors().GetColor3d(vertexcolor)) |
| 339 | props.SetPointSize(markersize) |
| 340 | props.SetLineWidth(linewidth) |
| 341 | props.SetRenderPointsAsSpheres(spheres) |
| 342 | props.SetRenderLinesAsTubes(tubes) |
| 343 | props.SetEdgeVisibility(mesh) |
| 344 | |
| 345 | if specular: |
| 346 | props.SetSpecular(SPECULAR) |
| 347 | props.SetSpecularPower(SPECULAR_POWER) |
| 348 | props.SetSpecularColor(SPECULAR_COLOR) |
| 349 | |
| 350 | def _apply_color(actor): |
| 351 | props = actor.GetProperty() |