api.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:OBB 作者: chrisdevito 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号