What I want to do
For a boundary meteorological application in complex terrain I would like to check whether a sun ray hits the topography so that the cell under consideration is shaded (see photo)
What I have done and what the problem is
PyVista has in form of a lightweight ray tracing procedure the perfect template for my need. It can be found here and here. These examples are based on sphere = pv.Sphere()
.
But I use a structured grid myMesh = pv.StructuredGrid()
and this rises the error message : AttributeError: 'StructuredGrid' object has no attribute 'ray_trace'
My question
Is there a work-around so that I can use PyVista.ray_trace
with a structured grid?