Overlapping Models

**Hello all, **

**I have a 3d tile set and a single gltf model. (extruded city and a building model) as you can see in the attachment. I want to hide overlapping part of the 3d tiles . Is there a way to achieve this? **

**Clippingplanes seem the way to go. I tried to use terrain clipping planes example in 3d tiles of NYC, but it is not working. **

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=tVVtbxo5EP4rFl+ySMSGwl0SSqNLk5MaqblGDWpUHaeTWU9Yq157ZXt5SdT/3rF3FxZCv9wLIHZtzzwz88yLGSPvS6mE1AsiuOckNaX14DbEPJE/vl6TTwXom3BQGOu5GpPM+2LM2Gq1GlC9SenCLJmTHpgw0nsmtfSSe7kEx4bidF6D04IvYKaX3JKlhBVY8o5oWJFrcLLM6Ze4l5ykcXlttOdSgz3pkZeZJvjxYC1u3VuzlALsuFFMLXAPj8YqMa1Eku5Mf+++nWm0FlGpS0EDXSgzByqg8NkUnL9aoKzztRJ6420JbS1Ye9Aiqe1Um9VieDOVCtytdgWk3tg7uZY6WAzRyWY3hHRnBCjEriHTo+oRO0pW5hHEBwHw+xztGQefvJDSqi0Rt0Z/BofJS4E+WZNfOZS5Fcno14thl0RC9ugorMxlTBPlQiS1xYq3ekGRW7FBynPpgPoMdPJU6tRLgyTXeakxn43Jp6ZB6bXd/oAgWAD30qfZZ64XkPRpv0dO+/SXXhMonZtSB6mHIgML1KJK6QgjI9rvBp/qhIYvCQSlShYFyheKa0iNUhDdOiCsFroPQtdboaR2nZDmSUjEcWRM/tzthc/P0JL2AQ8NI7keJmQQQiMxQPzrYphn/fjyr2BP/x/YCrDy+T+HPX0Nu0P9q2UBxAIepfDZOLpCDo4wb2bX7nFFHz/cTn9vy2k+VyAwfaGJq/2qYnysGBJrpjA4pqoieeV0bJkbWFgAl6C/Q3pxjp1z0SOjPj0bnQ3fnPfIoB8wm7qp6x+BARvGb3ZtHteybqyXVpE1Doy3r60g5maNBy/71AuZg3YoGGrzON2DUT8S3jzfnB/LYY5T0kquyDEq6Ur67EoVGcfeHB6qmtIrHMY1u8cPI9hR7J3493Zi2sPjn/GVx9n6irHSStw8oZRtf1dF4dgDzwsF4SZjUdOxytc7ruu3v/EVb4n5ySF1eKXlZX4v16Ae5HMgYoDlcMjvOgg9pFwFAczBfuDbAdZMvLTdSQ6L5ycjDdU6vc7E+Y2CywrzN5mHyziM/wTD84CRYXodm5fptwDtXLA2YY3SRMglkeLdrHNwv846aJY7hydPpYrRzTqXE4bye2rKxBn+aQlW8U0QyQaXH6tNSumE4bLR+gE

Thanks.

3D Tilesets define the clipping planes relative to their center. To get the results your looking for, I would copy the clipping plane collection, and then add a modelMatrix to transform them relative to the tileset:

tileset.clippingPlanes.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(tileset.boundingSphere.center);

``

Thanks!

Gabby