<div dir="ltr"><div>Hello again, everyone.</div><div><br></div>I've found my mistake. I didn't use my eigenvalues to make normals instead I used them as centre point.<div><br></div><div>Best Regards,</div><div>Rustem Khabetdinov</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-16 20:09 GMT+03:00 Rustem Khabetdinov <span dir="ltr"><<a href="mailto:rustem.khabetdinov@gmail.com" target="_blank">rustem.khabetdinov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I have eigenvectors and eigenvalues and when I use them to create tensor it never shows up as an ellipsoid. Here's my code:</div><div><br></div><div><div>vectors = [-0.99912958, 0.04171436, 0, 0, 0, 1, -0.04171436, -0.99912958, -0]</div><div>values = [ -5.05684034e+14, 5.09855264e+14, 6.13882990e+14]</div><div>points = vtk.vtkPoints()</div><div>points.InsertNextPoint(values)</div><div>poly_data = vtk.vtkPolyData()</div><div>poly_data.SetPoints(points)</div><div>tensor_data = vtk.vtkDoubleArray()</div><div>tensor_data.SetNumberOfTuples(<wbr>1)</div><div>tensor_data.<wbr>SetNumberOfComponents(9)</div><div>tensor_data.InsertTuple(0, vectors)</div><div>poly_data.GetPointData().<wbr>SetTensors(tensor_data)</div><div><br></div><div>sphere = vtk.vtkSphereSource()</div><div>sphere.SetThetaResolution(8)</div><div>sphere.SetPhiResolution(8)</div><div>sphere.Update()</div><div><br></div><div>tensor = vtk.vtkTensorGlyph()</div><div>tensor.SetInputData(poly_data)</div><div>tensor.SetSourceData(sphere.<wbr>GetOutput())</div><div>tensor.SetScaleFactor(10)</div><div>tensor.ClampScalingOn()</div><div>tensor.ThreeGlyphsOff()</div><div>tensor.ExtractEigenvaluesOff()</div><div>tensor.Update()</div></div><div><br></div><div>Am I doing something wrong?</div><div><br></div><div>Thanks</div></div>
</blockquote></div><br></div>