# How to create an inclined cylinder or a beam like this?

**URL:** <https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704>\
**Category:** CesiumJS\
**Created:** [March 6, 2023, 6:50am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704 "2023-03-06T06:50:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![romee](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/romee/32/12437_2.png) [@romee](https://community.cesium.com/u/romee)\
**Post date:** [March 6, 2023, 6:50am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/1 "2023-03-06T06:50:30Z")

</div>

hi! i’ve ran into a problem of creating an inclined cylinder like this to dipict a beam from satellite, but i can only rotate the whole cylinder which doesn’t look like a beam.  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/f/f0ca79f9b33c30c5608680f0d39c209578ed5237.png)

is there any mehod to dipict a beam? thank you a lot!

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [March 6, 2023, 10:31am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/2 "2023-03-06T10:31:41Z")

</div>

Hi,  
You can check these similar posts:  
[post1](https://community.cesium.com/t/how-to-show-a-satellites-field-of-view-footprint-on-earth/14192), [post2](https://community.cesium.com/t/how-to-add-a-cone-whose-bottom-is-close-to-the-ground-in-cesium/21388/1). Also you can try [ConicSensor](https://cesium.com/learn/ion-sdk/ref-doc/ConicSensor.html).

-Regards

---

<div class="post-metadata">

**Author:** ![romee](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/romee/32/12437_2.png) [@romee](https://community.cesium.com/u/romee)\
**Post date:** [March 7, 2023, 7:31am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/4 "2023-03-07T07:31:19Z")

</div>

could you be more specific? is there any demo or code about ConicSensor? im not very familiar with this.  
thanks a lot!!!

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [March 8, 2023, 1:41am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/5 "2023-03-08T01:41:23Z")

</div>

The `ConicSensor` is not part of CesiumJS, but only the ion SDK.

It’s not entirely clear what the core of the question is. There are some examples that show how to add cones and cylinders. But … from the _very_ short description in the question, a wild guess: Is the main point of the question that you’d like to rotate the cone around its “tip” (i.e. around the ‘satellite’ position in the image)?

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [March 8, 2023, 8:51am UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/6 "2023-03-08T08:51:43Z")

</div>

You can check this [stackoverflow](https://stackoverflow.com/questions/42941855/cone-rotation-around-apex-with-cesium-js) to understand cone rotation around apex.

Another approach is to create multiple polygons(triangles) between the circular coordinates of target position and source position. Here source position will be the satellite position.

I’ve created an example in [sandcastle](https://sandcastle.cesium.com/#c=pVZ9b6M2GP8qXv4iV2ZImvauJO2Wpt31pp6uWqurpiSaXHCCG2Mj27TNdvnuewyEQII27UakAH7ef88b3ruZGGcmlipAv5JwtZ6J2JhUB54XyiTJBDNrHFLNsgTDgZd5zwXXO28mQim0QS+MvlKFzpGgr2hSsH7Nz5xZpxCdSGEIE1TNOi76ayYQYmIhL+VbgBaEa+raI005DQ2T4pOIWEiMdalGjUkkX3WAjMq2JzLj0ViwhBhanW+6w5mwv0Umcm0oSyNguKQkcbTM1LUwEJOLDCkfu4VHFf+SmglTIaeXMhORYlQ7IRWGKh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CLzlu+AG3wWgNlAYvJZmDWuRh5wH8gCgsmYmL55YUqTtaWLe5d3BaHGOORB6/tkkZK/kTUnua/AQ). You can use [CallbackProperty](https://cesium.com/learn/cesiumjs/ref-doc/CallbackProperty.html) to update polygon coordinates.

_PS: It’s not a full fledged solution. You can use it’s idea to optimize it or develop your own_ 🙂

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [March 8, 2023, 2:05pm UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/7 "2023-03-08T14:05:35Z")

</div>

@Jacky The sample looks nice. But a word of caution: `EllipseGeometryLibrary` as a whole (and `computeEllipsePositions` in particular) are marked as `@private`. There are no stability guarantees. This class might be removed entirely in the next release, without notice. (Yes, that’s not going to happen. The point is: It **could** happen…)

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [March 8, 2023, 5:09pm UTC](https://community.cesium.com/t/how-to-create-an-inclined-cylinder-or-a-beam-like-this/22704/8 "2023-03-08T17:09:04Z")

</div>

You’re correct @Marco13 @private methods can be removed anytime but Yes, that’s not going to happen for next few release _ **I believe** _ 🙂. BTW there is always an alternative like given in this interpolation [example](https://sandcastle.cesium.com/?src=Interpolation.html). 🍻
