Click or drag to resize
AB4D logo

ModelUtilsGetBounds(ModelVisual3D, Transform3D, Boolean) Method

GetSceneBounds calculates the bounds of all 3D objects in the rootModelVisual3D 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(
	ModelVisual3D rootModelVisual3D,
	Transform3D transform = null,
	bool checkOnlyBounds = false
)

Parameters

rootModelVisual3D  ModelVisual3D
ModelVisual3D
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
See Also