Click or drag to resize
AB4D logo

ModelUtilsCenterModel3D Method

CenterModel3D method translates the model3D so that its center is at the centerPosition.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static void CenterModel3D(
	Model3D model3D,
	Point3D centerPosition,
	bool preserveCurrentTransformation = true
)

Parameters

model3D  Model3D
Model3D to center
centerPosition  Point3D
Point3D that specifies the new center position of the model3D
preserveCurrentTransformation  Boolean  (Optional)
if true, then the translate transform is added to the existing transform.
See Also