DistanceDisplayCondition#

class ansys.stk.core.graphics.DistanceDisplayCondition#

Bases: IDisplayCondition

Define an inclusive distance interval that determines when an object, such as a primitive, is rendered based on the distance from the camera to the object.

Overview#

minimum_distance

Get or set the minimum distance of the inclusive distance interval.

maximum_distance

Get or set the maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

minimum_distance_squared

Get the squared minimum distance of the inclusive distance interval.

maximum_distance_squared

Get the squared maximum distance of the inclusive distance interval.

Import detail#

from ansys.stk.core.graphics import DistanceDisplayCondition

Property detail#

property DistanceDisplayCondition.minimum_distance: float#

Get or set the minimum distance of the inclusive distance interval.

property DistanceDisplayCondition.maximum_distance: float#

Get or set the maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

property DistanceDisplayCondition.minimum_distance_squared: float#

Get the squared minimum distance of the inclusive distance interval.

property DistanceDisplayCondition.maximum_distance_squared: float#

Get the squared maximum distance of the inclusive distance interval.