Model.hm_findthinsolidproximity#

Model.hm_findthinsolidproximity(solidCollection)#

Finds and returns the proximate solid pairs among selected solids. A list of proximate solid pair data is returned containing the list of two solid IDs that are in proximity, the type of joint (BUT, LAP, or TEE), the list of faces in proximity from the first solid, and the list of faces in proximity from the second solid.

Parameters:

solidCollection (Collection) – The collection containing the solid entities to find proximity for.

Returns:

  • hwReturnStatus - Status object

  • HmQueryResultList - Result list object containing HmQueryResult objects with the following output data:

    • solidPair (Entity) - Entity Type: Solid

    • jointType (str)

    • contactArea (double)

    • faceIdList1 (numpy.ndarray)

    • faceIdList2 (numpy.ndarray)

Example#

Find all the thin solids that are in proximity in the model#
import hm
import hm.entities as ent

model = hm.Model()

_, resultlist = model.hm_findthinsolidproximity(solidCollection=hm.Collection(model, ent.Solid))

for result in resultlist:
    print("solidPair", result.solidPair)
    print("jointType", result.jointType)
    print("contactArea", result.contactArea)
    print("faceIdList1", result.faceIdList1)
    print("faceIdList2", result.faceIdList2)