【文件属性】:
文件名称:ISSofaPython:用于ISSofa的基于pybind11的python插件
文件大小:752KB
文件格式:ZIP
更新时间:2021-03-09 09:53:47
C++
=自述
ISSofaPython包含
一个python模块,用于定义SofaCore库和SofaSimulationTree库的绑定。 python模块的源代码在module文件夹中
一个专用的沙发插件,其中包含一个特定的场景加载器,可用于从主应用程序直接加载python场景文件
它替代了SofaPython插件。 它使用[[ | pybind11库]]公开Python中的c ++类型。
== TL; DR
直接从解释器编写您的python场景
import ISSofaPython as Sofa
class MyObject(Sofa.BaseObject):
def __init__(self,name):
Sofa.BaseObject.__init__(self)
self.setName(name)
def ini