CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.39k stars 3.38k forks source link

ClippingPlaneCollection as a concave polygon #7665

Open xuncanzhe opened 5 years ago

xuncanzhe commented 5 years ago

I want to use the ClippingPlaneCollection to dig a polygon on 3dtiles, but only the convex polygon succeeds, and the concave shape has no effect. So I would like to ask if ClippingPlaneCollection can dig a concave polygon pit on a 3dtiles?

hpinkos commented 5 years ago

@xuncanzhe ClippingPlaneCollection uses the intersection of the tileset in front of the plane for every plane in the collection, so it does not currently support concave shapes. I'll leave this issue open as a feature request, and we'll give you an update if we implement support for this. Otherwise, if you have time to look into it, we would be happy to review a pull request!

Amber-372 commented 5 years ago

I have the same request too.Have you solved the problem yet?@xuncanzhe

hemincan commented 4 years ago

I need this feature too.

stevenjh commented 4 years ago

I'll add a plus one to this.

TuoLe commented 4 years ago

@xuncanzhe @hpinkos Hello,I have also met this question these two days.

ClippingPlaneCollection doesn't clip terrain when the clip shape is a concave polygon, I'm trying to split the concave polygon into several convex polygons,but i find ClippingPlaneCollection only can receive and clip a plane, i'm so troubled.

I would like to ask if you have solved this problem, can you provide some ideas and methods? Thank you very much!