# Ellipse Based on Vectors

**URL:** https://discourse.paraview.org/t/ellipse-based-on-vectors/10047
**Category:** ParaView Support
**Created:** [July 25, 2022, 8:54am UTC](https://discourse.paraview.org/t/ellipse-based-on-vectors/10047 "2022-07-25T08:54:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jkim](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@jkim](https://discourse.paraview.org/u/jkim)
#### Post date: [July 25, 2022, 8:54am UTC](https://discourse.paraview.org/t/ellipse-based-on-vectors/10047/1 "2022-07-25T08:54:42Z")

</div>

Instead of vector glyphs, I would like to use ellipsoidal shapes based on a scalar factor. Each ellipse should be different which prevents the use of the Custom Glyph filter. Is there any code which will allow me to do this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 25, 2022, 8:56am UTC](https://discourse.paraview.org/t/ellipse-based-on-vectors/10047/2 "2022-07-25T08:56:27Z")

</div>

Hi @jkim ,

Tensor glyph creates these kind of shapes, but you will have to compute the corresponding tensors.

Best

---

<div class="post-metadata">

### Author: ![jkim](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@jkim](https://discourse.paraview.org/u/jkim)
#### Post date: [July 25, 2022, 3:05pm UTC](https://discourse.paraview.org/t/ellipse-based-on-vectors/10047/4 "2022-07-25T15:05:16Z")

</div>

Would I need to compute them in the vtk file? How do I do this in Paraview using the paraview.Simple.TensorGlyph?

---

<div class="post-metadata">

### Author: ![Andrew\_Maclean](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Andrew\_Maclean](https://discourse.paraview.org/u/Andrew_Maclean)
#### Post date: [July 26, 2022, 4:14am UTC](https://discourse.paraview.org/t/ellipse-based-on-vectors/10047/5 "2022-07-26T04:14:35Z")

</div>

These three VTK Examples may give you some ideas:

- [TensorAxes](https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/TensorAxes/)
- [TensorEllipsoids](https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/TensorEllipsoids/)
- [HyperStreamline](https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/HyperStreamline/)
