Click or drag to resize
AB4D logo

ModelUtilsGetBounds(IListVisual3D, Transform3D, Boolean) Method

GetSceneBounds calculates the bounds of all 3D objects in the rootVisuals after the specified Transform3D has been applied to all positions or all mesh bounds.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Rect3D GetBounds(
	IList<Visual3D> rootVisuals,
	Transform3D transform = null,
	bool checkOnlyBounds = false
)

Parameters

rootVisuals  IListVisual3D
IList of Visual3D objects
transform  Transform3D  (Optional)
Transform3D that will be applied to all child objects
checkOnlyBounds  Boolean  (Optional)
if true true, then each MeshGeometry3D's Bounds will be checked; if false (by default) then every position will be checked

Return Value

Rect3D
Rect3D that represents the bounds
Remarks

GetSceneBounds calculates the bounds of all 3D objects in the rootVisuals after the specified Transform3D has been applied to all positions or all mesh bounds.

DXEngine notice:
When scene contains 3D objects defined by SceneNodes that are not created from WPF 3D objects (for example MeshObjectNode), this method can get the bounds of those SceneNodes but cannot access individual positions.

See Also