How to enable classificationPrimitive to affect custom 3D objects

Hi

The classificationPrimitive affects the 3D terrain and 3D tiles as per the provided sample.
However, how to modify it to affect for custom 3D geometry ? I am adding a 3D box using viewer.entities.add() function and I require the classificationPrimitive apply on this.

Kindly help.

Thanks.

Hi,

It’s currently not possible to use classification primitives to classify custom 3D geometry that are not terrain or 3D Tiles. However, you can create your own primitives to classify custom 3D geometry with polygons (PolygonGeometry - Cesium Documentation).

1 Like