# Surface LIC python

**URL:** https://discourse.vtk.org/t/surface-lic-python/8386
**Category:** Support
**Created:** [April 27, 2022, 9:09am UTC](https://discourse.vtk.org/t/surface-lic-python/8386 "2022-04-27T09:09:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![s195t](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/54ee81/32.png) [@s195t](https://discourse.vtk.org/u/s195t)
#### Post date: [April 27, 2022, 9:09am UTC](https://discourse.vtk.org/t/surface-lic-python/8386/1 "2022-04-27T09:09:42Z")

</div>

Dear everyone,

I would need to systematically produce LICs from randomly generated velocity fields in python, which I am doing now modifying a third party library

I have seen that Paraview has a plugin to do so, wanted to implement it in my code without firing paraview and I found out it’s just all VTK calls. So I thought it could be more efficient to call VTK directly for that…

I would now have a velocity field in terms of two matrices, U and V, and each entry corresponds to a point in space (ca. 1700x800), my goal would be to have vtk in python to output a LIC picture

Actually I am using my script to produce huge amounts of data, so I might also be a bit concerned on about how long it takes to load the matrices, produce the LIC and save it as now I am at 2.5s/image and it would be a problem to double that time

Thanks you
