|
23 | 23 | moveBoxTransform.Translate(20.076142063093318, -8.288617300972092, -53.29349952031101) |
24 | 24 | moveBoxMatrix = moveBoxTransform.GetMatrix() |
25 | 25 |
|
26 | | -identityMatrix = vtkMatrix4x4() |
27 | | - |
28 | 26 | bf = vtkPolyDataBooleanFilter() |
29 | 27 | bf.SetInputData(0, mandibleReader.GetOutput()) |
30 | 28 | bf.SetInputData(1, boxReader.GetOutput()) |
31 | 29 |
|
32 | | -bf.SetMatrix(0, identityMatrix) |
33 | | -bf.SetMatrix(1, moveBoxMatrix) |
| 30 | +# identityMatrix = vtkMatrix4x4() |
| 31 | +# bf.SetMatrix(0, identityMatrix) |
34 | 32 |
|
35 | 33 | for i in range(10): |
36 | 34 | moveBoxTransform.Translate(0, -10, 0) |
37 | 35 | moveBoxMatrix = moveBoxTransform.GetMatrix() |
38 | 36 |
|
39 | 37 | print(moveBoxMatrix.GetElement(1, 3)) |
40 | 38 |
|
41 | | - transformFilter = vtkTransformPolyDataFilter() |
42 | | - transformFilter.SetInputData(boxReader.GetOutput()) |
43 | | - transformFilter.SetTransform(moveBoxTransform) |
44 | | - transformFilter.Update() |
| 39 | + # transformFilter = vtkTransformPolyDataFilter() |
| 40 | + # transformFilter.SetInputData(boxReader.GetOutput()) |
| 41 | + # transformFilter.SetTransform(moveBoxTransform) |
| 42 | + # transformFilter.Update() |
45 | 43 |
|
46 | | - _writer = vtkPolyDataWriter() |
47 | | - _writer.SetFileName(f'out/pdB_{i}.vtk') |
48 | | - _writer.SetInputConnection(transformFilter.GetOutputPort()) |
49 | | - _writer.Update() |
| 44 | + # _writer = vtkPolyDataWriter() |
| 45 | + # _writer.SetFileName(f'out/pdB_{i}.vtk') |
| 46 | + # _writer.SetInputConnection(transformFilter.GetOutputPort()) |
| 47 | + # _writer.Update() |
50 | 48 |
|
51 | 49 | bf.SetMatrix(1, moveBoxMatrix) |
52 | 50 |
|
|
0 commit comments