Skip to content

Globe Clipping Plane #562

Discussion options

You must be logged in to vote

If you want to bind: clippingPlanes="clippingPlanes", you need to first define a const clippingPlanes = ref(null); and then initialize clippingPlanes in the @ready event of vc-viewer. If you need to use Cesium to initialize, you must write it like this. Unless you put the introduction of Cesium.js into index.html.

You can also write this in the ready event of the vc-primitive-tileset component:
tileset._clippingPlanes = new Cesium.ClippingPlaneCollection({
planes: [new Cesium.ClippingPlane(new Cesium.Cartesian3(0.0, 0.0, -1.0), 0.0)],
edgeWidth: 1.0
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zouyaoji
Comment options

Answer selected by KorecGroup-AliJafri
@KorecGroup-AliJafri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants