def minimum_distance(occtopology1, occtopology2): """ This function calculates the minimum distance between the two OCCtopologies. Parameters ---------- occtopology1 : OCCtopology The OCCtopology to be analysed. OCCtopology includes: OCCshape, OCCcompound, OCCcompsolid, OCCsolid, OCCshell, OCCface, OCCwire, OCCedge, OCCvertex occtopology2 : OCCtopology The OCCtopology to be analysed. OCCtopology includes: OCCshape, OCCcompound, OCCcompsolid, OCCsolid, OCCshell, OCCface, OCCwire, OCCedge, OCCvertex Returns ------- minimum distance : float The minimum distance between the two topologies. """ min_dist, min_dist_shp1, min_dist_shp2 = Common.minimum_distance(occtopology1, occtopology2) return min_dist
def minimum_distance(occtopology1, occtopology2): """ This function calculates the minimum distance between the two OCCtopologies. Parameters ---------- occtopology1 : OCCtopology The OCCtopology to be analysed. OCCtopology includes: OCCshape, OCCcompound, OCCcompsolid, OCCsolid, OCCshell, OCCface, OCCwire, OCCedge, OCCvertex occtopology2 : OCCtopology The OCCtopology to be analysed. OCCtopology includes: OCCshape, OCCcompound, OCCcompsolid, OCCsolid, OCCshell, OCCface, OCCwire, OCCedge, OCCvertex Returns ------- minimum distance : float The minimum distance between the two topologies. """ min_dist, min_dist_shp1, min_dist_shp2 = Common.minimum_distance( occtopology1, occtopology2) return min_dist
def minimum_distance(occ_shape1, occ_shape2): min_dist, min_dist_shp1, min_dist_shp2 = Common.minimum_distance( occ_shape1, occ_shape2) return min_dist