AccessSampling#

class ansys.stk.core.stkobjects.AccessSampling#

Define properties and methods to configure the sampling strategy used in access computations.

Overview#

set_type

Set the type of sampling method.

is_type_supported

Get a value indicating whether the specified type can be used.

type

Type of sampling method used.

supported_types

Return an array of valid choices.

strategy

Sampling method strategy.

Import detail#

from ansys.stk.core.stkobjects import AccessSampling

Property detail#

property AccessSampling.type: SamplingMethod#

Type of sampling method used.

property AccessSampling.supported_types: list#

Return an array of valid choices.

property AccessSampling.strategy: ISamplingMethodStrategy#

Sampling method strategy.

Method detail#

AccessSampling.set_type(self, sampling_method: SamplingMethod) None#

Set the type of sampling method.

Parameters:

sampling_method : SamplingMethod

Returns:

None

AccessSampling.is_type_supported(self, sampling_method: SamplingMethod) bool#

Get a value indicating whether the specified type can be used.

Parameters:

sampling_method : SamplingMethod

Returns:

bool