now able to choose vector that is used for warpvector filter via option.dispLabel
This commit is contained in:
parent
75ee54146b
commit
19dc95a915
|
@ -184,9 +184,10 @@ for filename in filenames:
|
||||||
|
|
||||||
if options.verbose: sys.stdout.write("\nDEFORM MESH\n")
|
if options.verbose: sys.stdout.write("\nDEFORM MESH\n")
|
||||||
warpVector = vtkWarpVector()
|
warpVector = vtkWarpVector()
|
||||||
|
undeformedMesh.GetPointData().SetActiveVectors(options.dispLabel)
|
||||||
warpVector.SetInput(undeformedMesh)
|
warpVector.SetInput(undeformedMesh)
|
||||||
warpVector.Update()
|
warpVector.Update()
|
||||||
deformedMesh = warpVector.GetOutput() # todo: not clear how to choose other vector data than the first entry
|
deformedMesh = warpVector.GetOutput()
|
||||||
box = deformedMesh.GetBounds() # bounding box in mesh system
|
box = deformedMesh.GetBounds() # bounding box in mesh system
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
sys.stdout.write(" bounding box in lab system\n")
|
sys.stdout.write(" bounding box in lab system\n")
|
||||||
|
|
Loading…
Reference in New Issue