# new-CesiumGraph
**Repository Path**: xueyise_admin/new-CesiumGraph
## Basic Information
- **Project Name**: new-CesiumGraph
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2022-06-11
- **Last Updated**: 2022-06-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# new-CesiumGraph
----------------------------------------------------------------------------------------------------------------------------------------
## cesium-graph 插件改造,支持当前最新版Cesium
### 使用
###### 在Cesium下面引入 CesiumGeometry.js
###### 示例
```
let r = new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(90),
Cesium.Math.toRadians(0),
Cesium.Math.toRadians(0));
let l = Cesium.Cartesian3.fromDegrees(117.224, 31.819, 128);
let sensorEntity = viewer.entities.add({
position: l,
orientation: Cesium.Transforms.headingPitchRollQuaternion(l, r),
rectangularSensor: new Cesium.RectangularSensorGraphics({
radius: 100000,
xHalfAngle: Cesium.Math.toRadians(45),
yHalfAngle: Cesium.Math.toRadians(45),
material: new Cesium.Color(1.0, 0.0, 1.0, 0.4),
lineColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
showScanPlane: true,
scanPlaneColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
scanPlaneMode: "vertical",
scanPlaneRate: 3,
showThroughEllipsoid: !1
})
})
```