r/OpenPythonSCAD • • Oct 21 '24

Using ifrep with libfive.

Hi, I would like to use libfive with "normal" PythonOpenSCAD objects, something like this:

from openscad import *

from pylibfive import *

c = lv_coord()

p = sphere(2, fn=10)

s1 = ifrep(p)

# s1 = lv_sphere(lv_trans(c, [2, 2, 2]), 2)

b1 = lv_box(c, [2, 2, 2])

sdf = lv_union_smooth(s1, b1, 0.6)

fobj = frep(sdf, [-4, -4, -4], [4, 4, 4], 20)

output(fobj)

But how can I assign s1 to a coordinate system so that I can move it with translate (lv_trans)?

3 Upvotes

2 comments sorted by