Matthew D
2018-11-11 10:21:32 UTC
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers