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(body1: ansys.geometry.core.designer.body.Body, body2: ansys.geometry.core.designer.body.Body) Gap#

Find the gap between two bodies.

Parameters:
body1Body

First body to measure the gap.

body2Body

Second body to measure the gap.

Returns:
Gap

Gap between two bodies.