now able to choose vector that is used for warpvector filter via option.dispLabel

This commit is contained in:
Christoph Kords 2013-05-22 21:23:01 +00:00
parent 75ee54146b
commit 19dc95a915
1 changed files with 2 additions and 1 deletions

View File

@ -184,9 +184,10 @@ for filename in filenames:
if options.verbose: sys.stdout.write("\nDEFORM MESH\n")
warpVector = vtkWarpVector()
undeformedMesh.GetPointData().SetActiveVectors(options.dispLabel)
warpVector.SetInput(undeformedMesh)
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
if options.verbose:
sys.stdout.write(" bounding box in lab system\n")