For further queries, however, I need to get the position (i.e., the center of the bounding box) of the picked entity/feature.
I tried in many ways, but I did not succeed. Is there any known solution for this? Should I use scene.pickPosition or is there any other way to accomplish this? I was expecting a way to get the position of the pickedFeature directly.
It isn’t possible to get the position or bounding volume of the feature, but yeah, you can use scene.pickPosition to get the exact location where the mouse picked.
I find it strange that I cannot get the bounding volume of the feature but I can change its color :S
scene.pickPosition returns the position where the mouse picked, thus, in case I pick a feature (say, a building) I get a position that ‘touches’ one of the walls of the picked building. Am I right?
So, you all confirm that — besides using scene.pickPosition and obtain the position where the mouse picked — there is no way to access the bounding volume of the picked feature.
I need to check whether a given point is inside the bounding volume of the picked feature. Is there any known way to achieve this?
The Cesium3DTileset feature does not have the underlying model information tied to the object. So no, there is currently no way to retrieve the model itself from a pick that I’m aware of.
Yeah, geometry is tougher because we offload that to GPU memory so its not easily accessible, whereas colors are stored on the CPU and updated on the GPU as textures. It’s a different kind of problem.