Closed Clarkszw closed 1 year ago
Thank you for this issue and analyse.
Clearly, we have to spend time to understand what is the rotation difference between primitive and vtk source. This will fix the issue of many actors
I am investigating it now, interesting to refresh some mathematic concept in rotation ;)
The cause is directions = np.array([1, 0 ,0 ])
It is ok for repeat_primitive
to use 1d array, it will be processed to np.ndarray
in the function.
But for VTK method, directions
parameter has to be np.ndarry(N,3)
Issue 1 can be resolved by modify the directions to directions = np.array([[1, 0, 0]])
For Issue 2, I have add a condition to cover the case directions = [-1, 0, 0]
, I will make a pull request for it.
closed by #771
Description
There are two issues present in the picture below: Note: red arrow is
repeat_primitive = True
, green arrow isrepeat_primitive = False
repeat_primitive = False
) method (VTK)repeat_primitive = True
) does not return the arrow actor.below is the code: