|
@@ -187,12 +187,60 @@ export class QingXiCheAndQvThreeWorldEvent {
|
|
|
// // pickResult
|
|
|
// objMesh, objPosition, getNormal
|
|
|
// );
|
|
|
+
|
|
|
+ if (thisClass.experimentMeshBool(pickResult) == true) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
- QingXiCheAndQvCarEventClick.find().main(pickResult);
|
|
|
+ // QingXiCheAndQvCarEventClick.find().main(pickResult);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 判断是否是点击物体的范围内
|
|
|
+ * pickResult 点击的具体坐标,物体等信息
|
|
|
+ *
|
|
|
+ */
|
|
|
+ experimentMeshBool = function(pickResult) {
|
|
|
+
|
|
|
+ var thisClass = this;
|
|
|
+ var objScene = this.objScene;
|
|
|
+ var objIframe = this.objIframe;
|
|
|
+ var BABYLON = this.BABYLON;
|
|
|
+
|
|
|
+ // console.log("experimentMeshBool =====>", pickResult, QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore);
|
|
|
+ var objMesh = pickResult.pickedMesh;
|
|
|
+
|
|
|
+ if (typeof objMesh.id != 'string') {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ let meshId = objMesh.id;
|
|
|
+
|
|
|
+ for (let i = 0; i < QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore.obj.list.length; i++ ) {
|
|
|
+ let thisList = QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore.obj.list[i];
|
|
|
+ // console.log("experimentMeshBool thisList =====>", thisList);
|
|
|
+ if (typeof thisList.correctAnswerMesh == 'object' ) {
|
|
|
+ for (let key in thisList.correctAnswerMesh) {
|
|
|
+
|
|
|
+ let json = thisList.correctAnswerMesh[key];
|
|
|
+ console.log("experimentMeshBool key =====>", key, json, meshId);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 鼠标按住并且拖拽事件
|
|
|
* pickResult 返回的鼠标参数
|