ShapeQuery

class ShapeQuery(transformation: Type[HomogeneousTransformation] | Evaluatable[Type[HomogeneousTransformation]], shape: Shape, parameters: ShapeQueryParameters = ShapeQueryParameters(direct=True, indirect=True, indet_scale=1.0, indet_angle=0.0, indet_fit_max=False, indet_fit_uniform_scale=True), *, flavor_shape: Shape | None = None)

A ShapeQuery represents a query used in query().

Parameters:

Attributes

indet_type

Returns the type of transformation indeterminacy present within the shape.

parameters

The ShapeQueryParameters to use when searching for the shape.

transformation

The HomogeneousTransformation to use when searching for the shape.

Methods

set_dynamic_evaluation_context

Set the evaluation context used when evaluating transformation or parameters, as necessary.

set_dynamic_evaluation_context(context: dict)

Set the evaluation context used when evaluating transformation or parameters, as necessary.

See also maybe_evaluate().

property indet_type: Flag

Returns the type of transformation indeterminacy present within the shape.

If applied not in an automation, this property is used to request the fixed transformation parameter values from a user.

property parameters: ShapeQueryParameters

The ShapeQueryParameters to use when searching for the shape.

property transformation: Type[HomogeneousTransformation]

The HomogeneousTransformation to use when searching for the shape.