MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / removeBVHModelsIfAny

Function removeBVHModelsIfAny

sandbox/simulation_utils.py:86–93  ·  view source on GitHub ↗
(geom_model: pin.GeometryModel)

Source from the content-addressed store, hash-verified

84
85
86def removeBVHModelsIfAny(geom_model: pin.GeometryModel):
87 for gobj in geom_model.geometryObjects:
88 gobj: pin.GeometryObject
89 bvh_types = [hppfcl.BV_OBBRSS, hppfcl.BV_OBB, hppfcl.BV_AABB]
90 ntype = gobj.geometry.getNodeType()
91 if ntype in bvh_types:
92 gobj.geometry.buildConvexHull(True, "Qt")
93 gobj.geometry = gobj.geometry.convex
94
95
96def addFloor(geom_model: pin.GeometryModel, visual_model: pin.GeometryModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected