Click or drag to resize
AB4D logo

ModelUtilsGetBounds(Model3D, Transform3D, Boolean) Method

GetSceneBounds calculates the bounds of the rootModel3D with checking all positions (when checkOnlyBounds is false) or all mesh bounds (when checkOnlyBounds is true).

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Rect3D GetBounds(
	Model3D rootModel3D,
	Transform3D rootTransform = null,
	bool checkOnlyBounds = false
)

Parameters

rootModel3D  Model3D
Model3D
rootTransform  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