# Including external functions from other projects in cesium

**URL:** <https://community.cesium.com/t/including-external-functions-from-other-projects-in-cesium/487>\
**Category:** CesiumJS\
**Created:** [May 28, 2013, 10:07am UTC](https://community.cesium.com/t/including-external-functions-from-other-projects-in-cesium/487 "2013-05-28T10:07:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jibin\_Dcruz](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jibin\_Dcruz](https://community.cesium.com/u/Jibin_Dcruz)\
**Post date:** [May 28, 2013, 10:07am UTC](https://community.cesium.com/t/including-external-functions-from-other-projects-in-cesium/487/1 "2013-05-28T10:07:35Z")

</div>

I would like to know how to include external functions in cesium. For example would it be possible to include these following scripts and make them work in cesium?

I could not figure out how include the functions to plot the lines on cesium from connected planets project([http://callum.com/sandbox/webglex/connected\_planet/#](http://callum.com/sandbox/webglex/connected_planet/#)). I already figured out how to plot it using catmullromspline and hermitespline in cesium. But i would like to know how to incorporate third party functions and make it work with the cesium viewer widget. If it could be explained the scope of cesium can be extended to a larger range.

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [May 29, 2013, 12:12pm UTC](https://community.cesium.com/t/including-external-functions-from-other-projects-in-cesium/487/2 "2013-05-29T12:12:22Z")

</div>

Hi Jibin,

I suggest porting this to use the Cesium API. Checkout the polyline and billboard examples in [Sandcastle](http://cesium.agi.com/Cesium/Apps/Sandcastle/index.html).

As for Cesium/Three.js interop, we have plans to explore it. Keep an eye on [#648](https://github.com/AnalyticalGraphicsInc/cesium/issues/648).

Regards,

Patrick

---

<div class="post-metadata">

**Author:** ![Jibin\_Dcruz](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jibin\_Dcruz](https://community.cesium.com/u/Jibin_Dcruz)\
**Post date:** [June 19, 2013, 6:09am UTC](https://community.cesium.com/t/including-external-functions-from-other-projects-in-cesium/487/3 "2013-06-19T06:09:13Z")

</div>

Hey that is cool, even i would love to contribute on this. I would let you know of my progress if i am able to get through something. Please help me and guide me if i encounter some problems on the way.
