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