We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9d6c5 commit 6ff0328Copy full SHA for 6ff0328
1 file changed
public/codes/3d/spatial-analysis/excavate/index.js
@@ -211,7 +211,8 @@ drawTool.on("drawend", () => {
211
212
function getPickedCoordinate(coordinate) {
213
const identifyData = groupGLLayer.identify(coordinate, { orderByCamera: true })[0];
214
- return (identifyData && identifyData.coordinate) || coordinate;
+ coordinate.z = coordinate.z || 0;
215
+ return (identifyData && identifyData.coordinate) || coordinate.toArray();
216
}
217
218
function ExcavateAnalysis(coordinates, height, bottomTexture, sideTexture) {
0 commit comments