Flying to a certain part of an entity

For this case, assume I have an entity that contains a label, some 3d-object and a polygon. Those can be in different places and have different dimensions. The viewer.flyTo method is a very convinient way to shoot a quick zoom to entities.

Is there a way to fly only to a certain part of an entity? Like - flyTo the polygon? or flyTo the 3d-object?

There’s no one-liner to do what you want, for now you would have to use the Camera object directly and determine the point you want to fly to yourself by interrogating the entity.

I thought so… but I really liked the viewer flyTo feature. Makes flyTo a breeze.