MCPcopy
hub / github.com/CadQuery/cadquery / _apply_style

Function _apply_style

cadquery/vis.py:335–348  ·  view source on GitHub ↗
(actor)

Source from the content-addressed store, hash-verified

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()

Callers 1

styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected