1. A concise explanation of the problem you’re experiencing.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
1. A concise explanation of the problem you’re experiencing.
I drew line with callback property on mouse move and set “clampToGround” property as true. And it works fine. It draws correctly on point cloud.
But I am going to get all points from this line.
Exactly I am going to get all points from “activeShape” below code. Could anyone teach me about it?
Best
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
if (Cesium.defined(cart3PointsArray[0])) {
if (activeShapePoints.length === 0) {
floatingPoint = createClampedToTerrainPoint(window.MAIN_CESIUM_VIEWER, cart3PointsArray[0]);
activeShapePoints.push(cart3PointsArray[0]);
var dynamicPositions = new Cesium.CallbackProperty(function () {
return activeShapePoints;
}, false);
activeShape = drawPolyShape(window.MAIN_CESIUM_VIEWER, dynamicPositions, “line”, colorRef.current);
}
activeShapePoints.push(cart3PointsArray[0]);
createClampedToTerrainPoint(window.MAIN_CESIUM_VIEWER, cart3PointsArray[0]);
}
for (let i = 0; i < cart3PointsArray.length; i++) {
if (Cesium.defined(floatingPoint)) {
if (Cesium.defined(cart3PointsArray[i])) {
floatingPoint.position.setValue(cart3PointsArray[i]);
activeShapePoints.pop();
activeShapePoints.push(cart3PointsArray[i]);
}
}
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
Version 1.62 latest version