VisualFindVisualAndAncestorsAspectT Method |
Namespace: Demo3D.Visuals
public T FindVisualAndAncestorsAspect<T>() where T : class
BBox GetBoundsVisualAndAncestors(Visual visual) {
// Get the bounding box of the first IRenderable on this visual or its closest ancestor (or null if there isn't one)
return visual.FindVisualAndAncestorsAspect<IRenderable>()?.BoundingBox;
}