MCPcopy Create free account
hub / github.com/Kitware/VTK / buildPolyDataLine

Function buildPolyDataLine

Rendering/Context2D/Testing/Python/multiPolyDataItems.py:29–45  ·  view source on GitHub ↗
(pt1, pt2)

Source from the content-addressed store, hash-verified

27
28
29def buildPolyDataLine(pt1, pt2):
30 pd = vtkPolyData()
31
32 pts = vtkPoints()
33 pts.InsertNextPoint(pt1)
34 pts.InsertNextPoint(pt2)
35
36 pd.SetPoints(pts)
37
38 lines = vtkCellArray()
39 lines.InsertNextCell(2)
40 lines.InsertCellPoint(0)
41 lines.InsertCellPoint(1)
42
43 pd.SetLines(lines)
44
45 return pd
46
47
48def buildPolyDataItemMixed():

Callers 1

Calls 8

InsertCellPointMethod · 0.80
SetLinesMethod · 0.80
vtkPolyDataClass · 0.50
vtkPointsClass · 0.50
vtkCellArrayClass · 0.50
InsertNextPointMethod · 0.45
SetPointsMethod · 0.45
InsertNextCellMethod · 0.45

Tested by

no test coverage detected