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")
|
||||
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")
|
||||
|
|
Loading…
Reference in New Issue