[vtkusers] How to put vtkDiskSource on vtkPolyDataMapper

Matthew D mat at mgvs.org
Sun Nov 11 05:21:32 EST 2018


I need to put multiple vtkDiskSource over the mesh surface (represented as
vtkPolyDataMapper) so that the disks lay on the mesh surface. Objects like
vtkRegularPolygonSource has SetNormal method which could be used for
"rotation". Also there is vtkTransform but I don't know how to calculate
X,Y,Z values. Can anybody help me with that?

disk = vtk.vtkDiskSource()
disk.SetInnerRadius(1.0)
disk.SetOuterRadius(2.0)

<---- rotation

mapper = vtk.vtkPolyDataMapper()
mapper.SetInputConnection(disk.GetOutputPort())



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list