Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling drillPick() on a 3d-tiles point cloud without a limit hangs browser #4895

Closed
denverpierce opened this issue Jan 20, 2017 · 3 comments

Comments

@denverpierce
Copy link
Contributor

scene.pick works fine, but calling scene.drillPick without the optional limit parameter locks the tab.

Load this and click the cloud:

var viewer = new Cesium.Viewer('cesiumContainer', {
    scene3DOnly : true
});

var scene = viewer.scene;
var url = '../../../Specs/Data/Cesium3DTiles/PointCloud/PointCloudWithPerPointProperties/';

var tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
    url : url
}));

tileset.readyPromise.then(function(tileset) {
    var boundingSphere = tileset.boundingSphere;
    viewer.camera.viewBoundingSphere(boundingSphere, new Cesium.HeadingPitchRange(0, -2.0, 0));
});

viewer.screenSpaceEventHandler.setInputAction(function (loc) {
	var picks = viewer.scene.drillPick(loc.position);
	if (Cesium.defined(picks)) {
		console.log(picks.length);
	}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 21, 2017

@denverpierce thanks for the report, I added this to #3241.

If you have any time to narrow this down, the likely suspect is this loop.

@lilleyse
Copy link
Contributor

The problem here is that PointCloud3DTileContent does not have a show property. @denverpierce if you haven't already started investigating I'm happy to work on this.

@denverpierce
Copy link
Contributor Author

I'm full up this week, it's all you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants