浏览代码

no message

DESKTOP-CRQ4N2U\jintian 1 年之前
父节点
当前提交
a572a271f2

+ 6 - 6
src/jtMap3d/Widgets/SpatialAnalysis/Cutting.js

@@ -204,7 +204,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 
 
 		//转换矩阵
 		//转换矩阵
 		let inverseTransform = _self._getInverseTransform(tileset)
 		let inverseTransform = _self._getInverseTransform(tileset)
-		debugger
+		
 		// clippingPlane集合
 		// clippingPlane集合
 		// _self.polygon = _self._isDirRes(_self.polygon, false)
 		// _self.polygon = _self._isDirRes(_self.polygon, false)
 		const clippingPlanes1 = []
 		const clippingPlanes1 = []
@@ -283,7 +283,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 					clippingPlanes.modelMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, height));
 					clippingPlanes.modelMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, height));
 				}
 				}
 
 
-				debugger
+				
 				for (let i = 0; i < clippingPlanes.length; ++i) {
 				for (let i = 0; i < clippingPlanes.length; ++i) {
 					const plane = clippingPlanes.get(i);
 					const plane = clippingPlanes.get(i);
 					// let plane = _self._createPlane([121.55814450142213, 37.39658788787028], [121.65814450142213, 37.49658788787028], inverseTransform)
 					// let plane = _self._createPlane([121.55814450142213, 37.39658788787028], [121.65814450142213, 37.49658788787028], inverseTransform)
@@ -353,7 +353,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 		return tileset.readyPromise.then(function() {
 		return tileset.readyPromise.then(function() {
 			//转换矩阵
 			//转换矩阵
 			let inverseTransform = _self._getInverseTransform(tileset)
 			let inverseTransform = _self._getInverseTransform(tileset)
-			debugger
+			
 			// clippingPlane集合
 			// clippingPlane集合
 			_self.polygon = _self._isDirRes(_self.polygon, false)
 			_self.polygon = _self._isDirRes(_self.polygon, false)
 			const clippingPlanes1 = []
 			const clippingPlanes1 = []
@@ -383,7 +383,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 
 
 			let boundingSphere = tileset.boundingSphere; //外包球
 			let boundingSphere = tileset.boundingSphere; //外包球
 			let radius = boundingSphere.radius; //外包球半径
 			let radius = boundingSphere.radius; //外包球半径
-			debugger
+			
 
 
 			// 遍历添加裁切面模型
 			// 遍历添加裁切面模型
 			for (let i = 0; i < clippingPlanes.length; ++i) {
 			for (let i = 0; i < clippingPlanes.length; ++i) {
@@ -475,7 +475,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 
 
 			let boundingSphere = tileset.boundingSphere; //外包球
 			let boundingSphere = tileset.boundingSphere; //外包球
 			let radius = boundingSphere.radius; //外包球半径
 			let radius = boundingSphere.radius; //外包球半径
-			debugger
+			
 
 
 			// // 遍历添加裁切面模型
 			// // 遍历添加裁切面模型
 			// for (let i = 0; i < clippingPlanes.length; ++i) {
 			// for (let i = 0; i < clippingPlanes.length; ++i) {
@@ -512,7 +512,7 @@ Object.assign(Cutting.prototype, /** @lends Cutting.prototype */ {
 	 * 移除裁切面
 	 * 移除裁切面
 	 */
 	 */
 	toggleClipping() {
 	toggleClipping() {
-		// debugger
+	
 		let _self = this;
 		let _self = this;
 		// 	if (_self.isShowTileSet) {
 		// 	if (_self.isShowTileSet) {
 		// _self.tileset.clippingPlanes = null;
 		// _self.tileset.clippingPlanes = null;

+ 3 - 5
src/jtMap3d/Widgets/SpatialAnalysis/GeologyClipPlan.js

@@ -141,7 +141,7 @@ Object.assign(GeologyClipPlan.prototype, /** @lends GeologyClipPlan.prototype */
 
 
 				let boundingSphere = tileset.boundingSphere; //外包球
 				let boundingSphere = tileset.boundingSphere; //外包球
 				let radius = boundingSphere.radius; //外包球半径
 				let radius = boundingSphere.radius; //外包球半径
-				debugger
+				
 
 
 				if (
 				if (
 					!Cesium.Matrix4.equals( // Cesium.Matrix4.equals(a,b)判断两个四维矩阵是否相等
 					!Cesium.Matrix4.equals( // Cesium.Matrix4.equals(a,b)判断两个四维矩阵是否相等
@@ -173,8 +173,6 @@ Object.assign(GeologyClipPlan.prototype, /** @lends GeologyClipPlan.prototype */
 					clippingPlanes.modelMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, height));
 					clippingPlanes.modelMatrix = Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0.0, 0.0, height));
 				}
 				}
 
 
-				// debugger
-
 				//中心点
 				//中心点
 				// let entity = viewer.entities.add({
 				// let entity = viewer.entities.add({
 				// 	position: Cartesian33,
 				// 	position: Cartesian33,
@@ -228,7 +226,7 @@ Object.assign(GeologyClipPlan.prototype, /** @lends GeologyClipPlan.prototype */
 				let lat = Cesium.Math.toDegrees(cartographic.latitude);
 				let lat = Cesium.Math.toDegrees(cartographic.latitude);
 				let alt = cartographic.height; //模型高度
 				let alt = cartographic.height; //模型高度
 				var Cartesian33 = Cesium.Cartesian3.fromDegrees(lng, lat, 105)
 				var Cartesian33 = Cesium.Cartesian3.fromDegrees(lng, lat, 105)
-				debugger
+				
 
 
 				// 遍历添加裁切面模型
 				// 遍历添加裁切面模型
 				for (let i = 0; i < clippingPlanes.length; ++i) {
 				for (let i = 0; i < clippingPlanes.length; ++i) {
@@ -279,7 +277,7 @@ Object.assign(GeologyClipPlan.prototype, /** @lends GeologyClipPlan.prototype */
 		// // 	_self.tileset._clippingPlanes = _self.clippingPlanes;
 		// // 	_self.tileset._clippingPlanes = _self.clippingPlanes;
 		// // 	_self.isShowTileSet = true;
 		// // 	_self.isShowTileSet = true;
 		// // }
 		// // }
-		debugger
+		
 		for (let i = 0; i < _self.planeEntities.length; i++) {
 		for (let i = 0; i < _self.planeEntities.length; i++) {
 			_self._viewer.entities.remove(_self.planeEntities[i]);
 			_self._viewer.entities.remove(_self.planeEntities[i]);
 		}
 		}