MeasurementTools#

class ansys.geometry.core.tools.measurement_tools.MeasurementTools(grpc_client: ansys.geometry.core.connection.GrpcClient)#

Measurement tools for PyAnsys Geometry.

Parameters:
grpc_clientGrpcClient

gRPC client to use for the measurement tools.

Overview#

min_distance_between_objects

Find the gap between two bodies.

Import detail#

from ansys.geometry.core.tools.measurement_tools import MeasurementTools

Method detail#

MeasurementTools.min_distance_between_objects(object1: ansys.geometry.core.designer.body.Body | ansys.geometry.core.designer.face.Face | ansys.geometry.core.designer.edge.Edge, object2: ansys.geometry.core.designer.body.Body | ansys.geometry.core.designer.face.Face | ansys.geometry.core.designer.edge.Edge) Gap#

Find the gap between two bodies.

Parameters:
object1Union[Body, Face, Edge]

First object to measure the gap.

object2Union[Body, Face, Edge]

Second object to measure the gap.

Returns:
Gap

Gap between two bodies.