# Ray tracing component

**URL:** <https://discourse.ladybug.tools/t/ray-tracing-component/40>\
**Category:** old forum\
**Created:** [October 7, 2013, 10:02am UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40 "2013-10-07T10:02:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostasmourkos](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/kostasmourkos/32/298_2.png) [@kostasmourkos](https://discourse.ladybug.tools/u/kostasmourkos)\
**Post date:** [October 7, 2013, 10:02am UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40/1 "2013-10-07T10:02:00Z")

</div>

Hi Mostapha and thanks for your help so far.

One more question about the component. If we have surrounding buildings and want to take them into account what do we do? In the example that I attach I have extend the rays towards the sun and then trimed them with the surrounding buildings. How can I delete the trimed rays in grasshopper?

Thanks in advance,

kostas

[sunpath.3dm](https://discourse.ladybug.tools/uploads/default/original/2X/d/d701c905da6daf09032cb3baa16fb90473b98d00.3dm) (201 KB)  
[sunpath1.gh](https://discourse.ladybug.tools/uploads/default/original/2X/c/c47e7fc9c3fdc102803e79b2f1968fb44ee917f9.gh) (48.1 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [October 7, 2013, 9:09pm UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40/2 "2013-10-07T21:09:00Z")

</div>

Hi Kostas,

You need to move the test points first and then use them for raytracing. I also modified the way you generate the test points so they don’t intersect with the wall.

The component also couldn’t take untrimmed surfaces into account that I fixed it. Check the attached script and use the raytracing component in this script for the rest of your studies.

Hope it helps,

Mostapha

[![](http://api.ning.com:80/files/I7biqbcZ7GtmcpoPgyucbYQDuUdlGq-zUuXSV7NUGzJO*8K3ZAdDvNH4-MzE8IRCjVDf9LVWhuhe9i3MHFrtXI3hxg0N1iqu/raytracing_Perspective.png?width=496)](http://api.ning.com:80/files/I7biqbcZ7GtmcpoPgyucbYQDuUdlGq-zUuXSV7NUGzJO*8K3ZAdDvNH4-MzE8IRCjVDf9LVWhuhe9i3MHFrtXI3hxg0N1iqu/raytracing_Perspective.png)

[sunpath1\_msr.gh](https://discourse.ladybug.tools/uploads/default/original/2X/f/faae894f37466147e2a830b4a9c5546c08d6ff9d.gh) (52.7 KB)

---

<div class="post-metadata">

**Author:** ![kostasmourkos](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/kostasmourkos/32/298_2.png) [@kostasmourkos](https://discourse.ladybug.tools/u/kostasmourkos)\
**Post date:** [October 9, 2013, 8:01am UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40/3 "2013-10-09T08:01:00Z")

</div>

Hi Mostapha,

Yes it was very helpfull. Many thsnks.

Kostas

---

<div class="post-metadata">

**Author:** ![Aliarch](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/aliarch/32/39969_2.png) [@Aliarch](https://discourse.ladybug.tools/u/Aliarch)\
**Post date:** [May 6, 2020, 12:39am UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40/4 "2020-05-06T00:39:17Z")

</div>

hi @mostapha . I have a question. Does Ray tracing work with RADIANCE in honeybee?  
thanks

---

<div class="post-metadata">

**Author:** ![devang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/devang/32/21620_2.png) [@devang](https://discourse.ladybug.tools/u/devang)\
**Post date:** [May 6, 2020, 11:24am UTC](https://discourse.ladybug.tools/t/ray-tracing-component/40/5 "2020-05-06T11:24:58Z")

</div>

@Aliarch,  
Radiance is a backward raytracer and raytracing is at the core of radiance. You won’t be able to visualize those rays if that what’s you mean to ask.
