Rotate vtkDiskSource/vtkPolyDataMapper by Normals
up vote
0
down vote
favorite
I need to put multiple vtkDiskSource over the mesh surface (represented as vtkPolyDataMapper) so that the disks lay on the 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())
python data-visualization vtk
add a comment |
up vote
0
down vote
favorite
I need to put multiple vtkDiskSource over the mesh surface (represented as vtkPolyDataMapper) so that the disks lay on the 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())
python data-visualization vtk
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to put multiple vtkDiskSource over the mesh surface (represented as vtkPolyDataMapper) so that the disks lay on the 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())
python data-visualization vtk
I need to put multiple vtkDiskSource over the mesh surface (represented as vtkPolyDataMapper) so that the disks lay on the 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())
python data-visualization vtk
python data-visualization vtk
asked Nov 10 at 22:31
Matthew
11
11
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43
add a comment |
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244072%2frotate-vtkdisksource-vtkpolydatamapper-by-normals%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you trying to add disks on all points of the polyData and use its normals?
– Michael M.
Nov 19 at 9:43