Click or drag to resize

ModelPrimitiveScale Property

Gets or sets the linear scale used to increase or decrease the size of the rendered model.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.4.401.0 (19.4.401.0)
Syntax
public double Scale { get; set; }

Property Value

Type: Double
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionScale is less than 0.
Remarks

A Scale of 1 renders the model using its actual size. Values less than 1 decrease the size of the rendered model and values greater than 1 increase the size of the rendered model.

If the model's AutomaticallyComputeBoundingSphere property is true when setting Scale, the Radius of the model's BoundingSphere is set to fit around the model. Otherwise, it is the caller's responsibility to update the model's BoundingSphere to a sphere that encompasses the model.

See Also