# how can i build custom primitive with my vertex data

**URL:** <https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163>\
**Category:** CesiumJS\
**Created:** [October 19, 2017, 3:11pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163 "2017-10-19T15:11:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![x1617301803](https://avatars.discourse-cdn.com/v4/letter/x/c2a13f/32.png) [@x1617301803](https://community.cesium.com/u/x1617301803)\
**Post date:** [October 19, 2017, 3:11pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163/1 "2017-10-19T15:11:25Z")

</div>

Hi，My Name is Zhao.

And Now I am confused in how to build myself custom primitive with my vertex data?

some shape that the Entity is not support.

or how can I search some useful Information to build it.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [October 20, 2017, 6:47pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163/2 "2017-10-20T18:47:56Z")

</div>

Hi Zhao,

While a little less simple than working with the Entity API, you can try using [the lower-level geometries](https://cesiumjs.org/tutorials/Geometry-and-Appearances/).

Hope that helps.

Thanks!

Gabby

---

<div class="post-metadata">

**Author:** ![x1617301803](https://avatars.discourse-cdn.com/v4/letter/x/c2a13f/32.png) [@x1617301803](https://community.cesium.com/u/x1617301803)\
**Post date:** [October 22, 2017, 1:30pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163/3 "2017-10-22T13:30:08Z")

</div>

Hi Gabby，

Thank you very much for your reply.This is my Problem：

I can’t use primitive like BoxGeometry too, because I want to build a geometry like tetrahedron ,4 vertex or 5 vertex…

and I can’t find any information in sandbox or your tutorials.Can you give me some guidance?

By the way, I found some images of sensor in your cesiumPro.

How can I get cesiumPro and How to buy it?

Thanks a lot.

在 2017年10月21日星期六 UTC+8上午2:48:19，Gabby Getz写道：

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [October 24, 2017, 9:03pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163/4 "2017-10-24T21:03:42Z")

</div>

Hi Zhao,

I think the closest you could get is create a [PolylineGeometry](https://cesiumjs.org/Cesium/Build/Documentation/PolygonGeometry.html) and extrude the height for a volume. If that’s not sufficient, could you perhaps create a [model](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=3D%20Models.html&label=Showcases) from your data?

Email [todd@agi.com](mailto:todd@agi.com) for info on CesiumPro.

Thanks!

Gabby

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [October 24, 2017, 10:39pm UTC](https://community.cesium.com/t/how-can-i-build-custom-primitive-with-my-vertex-data/6163/5 "2017-10-24T22:39:46Z")

</div>

For custom geometry, check out [https://github.com/AnalyticalGraphicsInc/cesium/wiki/Geometry-and-Appearances](https://github.com/AnalyticalGraphicsInc/cesium/wiki/Geometry-and-Appearances)
