Commit d336fe07 authored by iSergio's avatar iSergio
Browse files

Added Cesium3DTileset.clippingPolygons, Globe.clippingPolygons, and...

Added Cesium3DTileset.clippingPolygons, Globe.clippingPolygons, and Model.clippingPolygons properties for defining clipping regions from world positions
parent 7fe8c118
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package org.cesiumjs.cs.scene;

import jsinterop.annotations.*;
import org.cesiumjs.cs.collections.ClippingPlaneCollection;
import org.cesiumjs.cs.collections.ClippingPolygonCollection;
import org.cesiumjs.cs.core.*;
import org.cesiumjs.cs.js.JsObject;
import org.cesiumjs.cs.promise.Promise;
@@ -116,6 +117,13 @@ public class Cesium3DTileset {
     */
    @JsProperty
    public ClippingPlaneCollection clippingPlanes;

    /**
     * The ClippingPolygonCollection used to selectively disable rendering the tileset.
     */
    @JsProperty
    public ClippingPolygonCollection clippingPolygons;

    /**
     * Defines the value used to linearly interpolate between the source color and
     * feature color when the {@link Cesium3DTileset#colorBlendMode} is MIX. A value
+7 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.collections.ClippingPlaneCollection;
import org.cesiumjs.cs.collections.ClippingPolygonCollection;
import org.cesiumjs.cs.collections.ImageryLayerCollection;
import org.cesiumjs.cs.core.*;
import org.cesiumjs.cs.core.providers.TerrainProvider;
@@ -67,6 +68,12 @@ public class Globe {
     */
    @JsProperty
    public ClippingPlaneCollection clippingPlanes;

    /**
     * The ClippingPolygonCollection used to selectively disable rendering the tileset.
     */
    @JsProperty
    public ClippingPolygonCollection clippingPolygons;
    /**
     * Use this to limit terrain and imagery to a specific Rectangle area.
     */
+8 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.collections.ClippingPlaneCollection;
import org.cesiumjs.cs.collections.ClippingPolygonCollection;
import org.cesiumjs.cs.collections.ModelAnimationCollection;
import org.cesiumjs.cs.core.*;
import org.cesiumjs.cs.promise.Promise;
@@ -205,6 +206,13 @@ public class Model {
     */
    @JsProperty
    public ClippingPlaneCollection clippingPlane;

    /**
     * The ClippingPolygonCollection used to selectively disable rendering the tileset.
     */
    @JsProperty
    public ClippingPolygonCollection clippingPolygons;

    /**
     * A URL to a KTX file that contains a cube map of the specular lighting and the
     * convoluted specular mipmaps.