zhnny

Results 9 comments of zhnny

这主要是由于[baseLayer.ts](https://github.com/antvis/L7/blob/master/packages/three/src/core/baseLayer.ts)中根据函数构造器名字来判断面剔除(gl.cullFace),然而,打包时通常会进行代码压缩混淆,函数名字随之改变,所以得到了错误的函数名字,面剔除判断随之错误。 [baseLayer.ts](https://github.com/antvis/L7/blob/master/packages/three/src/core/baseLayer.ts)中判断面剔除的函数大致如下: ```typescript public renderModels() { // ... // 获取到 L7 的 gl const gl = this.rendererService.getGLContext(); this.rendererService.setCustomLayerDefaults(); const cullFace = this.mapService.constructor.name === 'AMapService' ? gl.BACK : gl.FRONT; gl.cullFace(cullFace); //...

> > ```ts > > this.mapService.constructor.name === 'AMapService' > > ``` > > this.mapService.constructor.name === 'AMapService' 这个判断吗? 是的

误点击unassign,请求重新恢复一下

Three.js中的Line2对象在L7的绘制中存在问题,下图中的红色线条和蓝色圆形物体(分别是Line对象和Line2对象),其实Positions是相同的 ![image](https://github.com/antvis/L7/assets/58084743/ee9a4f60-9d4a-479c-97fb-9c5606d13140) ```javascript const geometry = new LineGeometry(); geometry.setPositions(positions); const matLine = new LineMaterial({ color: 0x0000ff, linewidth: 0.1, }); const line = new Line2(geometry, matLine); line.computeLineDistances(); line.scale.set(1, 1, 1); layer.setObjectLngLat(line,...

这是我的尝试: ```javascript import { Scene } from '@antv/l7'; import { GaodeMap } from '@antv/l7-maps'; import { ThreeLayer, ThreeRender } from '@antv/l7-three'; import * as THREE from 'three'; const scene =...