def create_bounding_box(self, meshName="bounding_GEO"):
"""
Create the bounding box mesh.
:param meshName(string): Name of created mesh.
Raises:
None
Returns:
(string) Cube Transform
"""
obbCube = cmds.polyCube(constructionHistory=False, name="obb_GEO")[0]
for ind, pnt in enumerate(self.boundPoints):
cmds.xform("%s.vtx[%s]" % (obbCube, ind),
translation=[pnt.x, pnt.y, pnt.z])
return obbCube
评论列表
文章目录