如何使用SolidPython创建等效的OpenSCAD模块?

2024-05-13 20:33:34 发布

您现在位置:Python中文网/ 问答频道 /正文

如何使用SolidPython创建等效的OpenSCAD模块?我想使用SolidPython创建定制的模块对象。你知道吗

有没有办法从SolidPython创建OpenSCAD module?或者,这完全在SolidPython的范围内吗?你知道吗

我想在一组对象上使用如下内容。code source.
可以使用对象从SolidPython生成scad文件。然后手动复制粘贴以下模块,将multiHullsequencialHull应用于子级。你知道吗

但我希望有更好的方法。你知道吗

// openscad modules  

module multiHull(){
    for (i = [1 : $children-1])
        hull(){
            children(0);
            children(i);
        }
}

module sequentialHull(){
    for (i = [0: $children-2])
        hull(){
            children(i);
            children(i+1);
        }
}

我应该使用SolidPython的OpenSCADObject来定义module object^{}


Tags: 模块文件对象source内容forcodemodule