# How to render an entity that has same type of primitives

**URL:** <https://community.cesium.com/t/how-to-render-an-entity-that-has-same-type-of-primitives/28624>\
**Category:** CesiumJS\
**Created:** [December 10, 2023, 10:45am UTC](https://community.cesium.com/t/how-to-render-an-entity-that-has-same-type-of-primitives/28624 "2023-12-10T10:45:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sorcerer](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sorcerer/32/19854_2.png) [@sorcerer](https://community.cesium.com/u/sorcerer)\
**Post date:** [December 10, 2023, 10:45am UTC](https://community.cesium.com/t/how-to-render-an-entity-that-has-same-type-of-primitives/28624/1 "2023-12-10T10:45:01Z")

</div>

I want to add an entity that has same name primitives is this possible with entity API?  
What I want is something like this:

```auto
 entities.add({
    position: Cesium.Cartesian3.fromDegrees(-106.0, 45.0, 200000),
    box: {
      dimensions: new Cesium.Cartesian3(90000.0, 90000.0, 90000.0),
      material: Cesium.Color.fromRandom({ alpha: 1.0 }),
    },
    box: {
      dimensions: new Cesium.Cartesian3(9000.0, 9000.0, 9000.0),
      material: Cesium.Color.fromRandom({ alpha: 1.0 }),
    },
  }

```

---

<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:** [December 12, 2023, 2:17pm UTC](https://community.cesium.com/t/how-to-render-an-entity-that-has-same-type-of-primitives/28624/2 "2023-12-12T14:17:13Z")

</div>

Hi there,

Yes, you would add a second entity:

```auto
entities.add({
    position: Cesium.Cartesian3.fromDegrees(-106.0, 45.0, 200000),
    box: {
      dimensions: new Cesium.Cartesian3(90000.0, 90000.0, 90000.0),
      material: Cesium.Color.fromRandom({ alpha: 1.0 }),
    },
  });
entities.add({
    position: Cesium.Cartesian3.fromDegrees(-106.0, 45.0, 200000),
    box: {
      dimensions: new Cesium.Cartesian3(9000.0, 9000.0, 9000.0),
      material: Cesium.Color.fromRandom({ alpha: 1.0 }),
    },
  }

```
