teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
anoblet has joined #openscad
mmu_man has quit [Ping timeout: 248 seconds]
J25k45 has joined #openscad
J25k4 has quit [Ping timeout: 240 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 265 seconds]
ccox_ has joined #openscad
ccox has quit [Ping timeout: 252 seconds]
howiemnt has quit [Ping timeout: 276 seconds]
ccox has joined #openscad
ccox_ has quit [Ping timeout: 244 seconds]
howiemnt has joined #openscad
stealth_ has quit [Quit: Leaving]
fling has quit [Ping timeout: 264 seconds]
fling has joined #openscad
fling has quit [Ping timeout: 264 seconds]
fling has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
_whitelogger has joined #openscad
_whitelogger has joined #openscad
Guest28 has joined #openscad
Guest28 has quit [Quit: Client closed]
_whitelogger has joined #openscad
fling_ has joined #openscad
fling has quit [Ping timeout: 264 seconds]
guso78k has joined #openscad
guso78k has quit [Client Quit]
fling_ is now known as fling
guerd has joined #openscad
anoblet has quit [Quit: Client closed]
guerd has quit [Read error: Connection reset by peer]
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
Guest32 has joined #openscad
Guest32 has quit [Client Quit]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
mmu_man has joined #openscad
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
snaked has quit [Remote host closed the connection]
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
L29Ah has quit [Ping timeout: 245 seconds]
<bozo16> I was using cgal as default backend
howiemnt has quit [Remote host closed the connection]
howiemnt has joined #openscad
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
L29Ah has joined #openscad
<JordanBrown> bozo16 probably better to use Manifold.
<gbruno> [github] huskier opened issue #5889 (About counter-intuitive variables and scoping) https://github.com/openscad/openscad/issues/5889
<gbruno> [github] jordanbrown0 closed issue #5889 (About counter-intuitive variables and scoping) https://github.com/openscad/openscad/issues/5889
qpla has joined #openscad
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
kintel has joined #openscad
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
aiyion1 has joined #openscad
aiyion has quit [Ping timeout: 264 seconds]
bozo16 has quit [Quit: Leaving]
J25k45 has quit [Quit: Client closed]
J25k45 has joined #openscad
raydenuni has joined #openscad
<raydenuni> Hello. I'm trying to use BOSL2 and dotSCAD in the same file, but I'm getting some errors that I'm not having success interpreting.
<raydenuni> WARNING: undefined operation (vector + number) in file , line 220
<raydenuni> ERROR: Assertion 'is_int(n)' failed in file , line 137
<raydenuni> TRACE: called by 'lerpn' in file , line 220
<raydenuni> TRACE: called by 'bezier_curve' in file Test_Spline.scad, line 156
<raydenuni> TRACE: called by 'sf_splines' in file Test_Spline.scad, line 158
<raydenuni> TRACE: called by 'sf_thicken' in file Test_Spline.scad, line 158
<raydenuni> include <BOSL2/std.scad>
<raydenuni> include <BOSL2/screws.scad>
<raydenuni> include <BOSL2/rounding.scad>
<raydenuni> use <dotSCAD/src/bezier_curve.scad>
<raydenuni> use <dotSCAD/src/surface/sf_splines.scad>
<raydenuni> use <dotSCAD/src/surface/sf_thicken.scad>
<raydenuni> If I don't call `sf_thicken`, it doesn't seem to happen.
<raydenuni> sf_thicken(sf_splines(ctrl_pts, bezier), thickness);
<raydenuni> for full source
<raydenuni> oh, is this trace a callstack? good grief
<raydenuni> there we go, two implementations of bezier_curve()
<raydenuni> What are my options for namespacing? I didn't find anything in the docs.
<InPhase> raydenuni: Does it not show the files, and actually shows "file ,"?
<InPhase> raydenuni: It would sure be easier to understand the issue if we knew exactly which one is tripping up.
<raydenuni> that is copy/pasted
<raydenuni> it doesn't say the file
<InPhase> That's an unfortunate bug in reporting the errors.
<InPhase> I don't think I've seen that before.
<raydenuni> but it seems that there's a collision between dotSCAD/src/bezier_curve.scad and BOSL2/beziers.scad.
<raydenuni> function bezier_curve(t_step, points) = _bezier_curve_impl(t_step, points);
<raydenuni> vs
<raydenuni> function bezier_curve(bezier,splinesteps=16,endpoint=true) =
<raydenuni>     bezier_points(bezier, lerpn(0,1,splinesteps+1,endpoint));
<raydenuni> let me find that error again
<InPhase> Yeah. I see the is_int in BOSL2's tests/test_utility.scad line 137
<raydenuni> although I'm guessing the error handling that prints the file would be somewhere standard
<InPhase> raydenuni: Is this code just for your use, or do you plan on distributing it?
<raydenuni> just for me
<InPhase> raydenuni: What I recommend is opening dotSCAD/src/bezier_curve.scad and editing the module bezier_curve to be ds_bezier_curve. dotSCAD will not be getting any more updates, as unfortunately the maintainer of that impressive work has died. So there will not be anything coming out to clash with your edit.
<raydenuni> ah, I saw that post on github. :(
<raydenuni> I believe the assert is coming from BOSL2/math.scad#137
<raydenuni> function lerpn
<InPhase> Namespacing is clearly needed on the agenda going forward. The quantity of impressive libraries has been increasing, and the capability to use more of them is increasing with all these performance boosts.
<raydenuni> I saw there's a post in 2013 discussing namespacing. :P Holding my breath.
<InPhase> Well there has been discussion of object literals, and progress on this as well. A namespace and an object are not very different in notion.
<InPhase> If you put everything for a set of includes or uses into an object, then that's a namespace.
<raydenuni> oh wow, renaming it worked. I expected there to be approximately 800 internal references I would have to clean up
<InPhase> As long as they can find each other.
<raydenuni> yep
<InPhase> Well, there are internal references to clean up, but only if you call those.
<InPhase> I'll get you the full set.
<InPhase> raydenuni: There are 5 lines to fix: https://bpa.st/HQNQ
<raydenuni> thank you
<raydenuni> now to figure out how I want to define all these splines. wheee
<InPhase> :)
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raydenuni has quit [Quit: Client closed]
snaked has joined #openscad
<teepee> ok, shall we check if the GSoC selections are publushed?
<teepee> and we have: windows build support: https://summerofcode.withgoogle.com/programs/2025/projects/MPJPiTJb
RoyK has quit [Ping timeout: 252 seconds]
RoyK has joined #openscad
teepee_ has joined #openscad
<InPhase> Ooo, offset.
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee