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
snaked has joined #openscad
mmu_man has quit [Ping timeout: 256 seconds]
mmu_man has joined #openscad
kintel has joined #openscad
<kintel> J24k15 Can you share the file? Could be that VBO generation takes time..
<J24k15> it is using my lib but i just put cubes between two cubes
mmu_man has quit [Ping timeout: 256 seconds]
<J24k15> 5000 in 15  sec  -  10000 in 45 sec  - 15000 1min 16 - 20000 ↦ longer
<J24k15> but it is not that cpu at 90% i had before .. let me check that again
mmu_man has joined #openscad
<J24k15> hm my script is doing the same but with modules and cpu run at 90%
<J24k15> kintel this does the trick https://pastebin.com/6fVCCMqA
<J24k15> preview is fast but render takes long and 90% cpu
<J24k15> oh and now openscad crashed and closed
<kintel> You're pushing some limits :)
<kintel> ..but that's good. We haven't squeezed Manifold to the limit yet
<J24k15> 15000 is now 3min and 20000 4min .. not the 10min i had in my design .. however the print looks awesome
<kintel> The main difference between your two approaches is caching. By splitting the for loop, you can cache the results of the inner loop
<J24k15> thought maybe because children were used
<J24k15> or a chain of childrens children
<kintel> We simply cache based on text
<J24k15> here the print https://imgur.com/a/3elpbYX  .. trying to print some fur example for my students (only about 1500 strings)
<kintel> -> once you instantiate your modules and replace variables with concrete numbers: If that code is the same as some other code, it's free :)
<J24k15> but why does it take 3× the time and 2.5× the CPU load  when using modules
mmu_man has quit [Ping timeout: 268 seconds]
guerd871 has joined #openscad
guerd87 has quit [Ping timeout: 268 seconds]
be7b5 has joined #openscad
be7b5 has quit [Client Quit]
<kintel> J24k15 Wait, didn't it go faster?
<kintel> I got 55 seconds with modules vs. 4 minutes without
<J24k15> oh that is the new version with that caching improvement?
<J24k15> oh wow that was fast
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LordOfBikes has quit [Ping timeout: 256 seconds]
kintel has joined #openscad
<kintel> J24k15 No, just the master branch. on a MacBook M1
<kintel> ..but I didn't fire up the GUI
<J24k15> kintel  i get 3:40 (multi CPU cores) with modules and 2:45 (single CPU core) without  (version 2024.03.28) 15 000 cubes
<J24k15> are there benefits from modern cpu architecture?
LordOfBikes has joined #openscad
<J24k15> oh maybe that is lazy union
parahola has joined #openscad
<J24k15> yeah when putting unions around the loop it takes much longer.
<J24k15> much longer - Ü
<J24k15> there are the 10min
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J24k68 has joined #openscad
J24k15 has quit [Ping timeout: 250 seconds]
parahola has quit [Remote host closed the connection]
arebil has joined #openscad
foul_owl has quit [Ping timeout: 252 seconds]
foul_owl has joined #openscad
aiyion3 has quit [Ping timeout: 260 seconds]
aiyion3 has joined #openscad
arebil has quit [Quit: arebil]
Reisga2 has quit [Quit: The Lounge - https://thelounge.chat]
Reisga2 has joined #openscad
Reisga2 has quit [Quit: The Lounge - https://thelounge.chat]
Reisga2 has joined #openscad
<J24k68> Kintel .. found a Manifold issue
<J24k68> https://pastebin.com/yLT9YUVY   if  the scale within linear_extrusion is increased to .24 it works
<J24k68> Kintel seems serious i simplified it further ↦ intersection(){linear_extrude(50,scale=+0.2,convexity=5)circle(d=5,$fn=6);cube(250,true);}
<J24k68> union() or difference() is also not working with it
<J24k68> i am down to union(){linear_extrude(scale=+0.2347794)circle($fn=6);cube();}
<J24k68> seems very specific scales hit a float calculation  - a little more or less works union(){linear_extrude(scale=+0.23481)circle($fn=3);cube();}
aiyion3 has quit [Remote host closed the connection]
aiyion3 has joined #openscad
mmu_man has joined #openscad
Guest24 has joined #openscad
Guest24 has quit [Client Quit]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
snaked has quit [Remote host closed the connection]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
califax_ has joined #openscad
califax has quit [Ping timeout: 260 seconds]
califax_ is now known as califax
kintel has joined #openscad
<kintel> J24k68 What is the actual issue? It seems to work for me..
arebil has joined #openscad
<J24k68> oh WARNING: PolySet -> Manifold conversion failed: NotManifold
<J24k68> Trying to repair and reconstruct mesh..
<J24k68> preview works only render fails
<kintel> Render works for me
<kintel> That's a warning - the repair should work
<J24k68> ah  i have "stop at first warning" which ends in "no top level geometry to render"
arebil has quit [Client Quit]
<kintel> oh
<kintel> that should perhaps not be a warning, as it's an internal thing with little user-actionable info
<kintel> This is the ticket we need to solve to fix the root cause of the warning: https://github.com/openscad/openscad/issues/5046
<J24k68>  i expect issues with scale to zero  but strange it happens with a triangle at scale .2
<kintel> the whole stop at first warning needs an overhaul. JordanBrown started on it, but it's a bit tedious to clean up
<kintel> I think two vertices get merged causing a degenerate triangle
<kintel> I'd have to look at the code, but I added your example to the issue so we can look into it
<J24k68> great thanks!
arebil has joined #openscad
<J24k68> btw makerworld has the prototype for openSCAD (not public) looks nice
<kintel> for web-customizer using wasm on the front-end?
<J24k68> yes
<J24k68> creates even bambu 3mf (by converting openscad stl)
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kintel has joined #openscad
<kintel> My hope is that one of these days, one of those companies will become large (but friendly) enough to contribute to OpenSCAD :)
<kintel> (perhaps a bit naively hope)
kintel has quit [Client Quit]
pca006132 has joined #openscad
<J24k68> i hope that too -Ü
guso78k has joined #openscad
<guso78k> Does anybody have the link for the algorithm, which can nicely fill such 2D bezier curves ?
<guso78k> itrs important, that all 3 corners are equal in importance
Guest92 has joined #openscad
kintel has joined #openscad
<gbruno> [github] kintel closed issue #2167 (CGAL 4.7 assertion errors in tests) https://github.com/openscad/openscad/issues/2167
<gbruno> [github] kintel edited issue #2220 (Two ways to break hull() in 2D preview) https://github.com/openscad/openscad/issues/2220
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest51 has joined #openscad
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
Guest51 has quit [Ping timeout: 250 seconds]
<gbruno> [github] kintel edited issue #2398 (render fails with polyhedron + cylinder union()) https://github.com/openscad/openscad/issues/2398
guso78k has quit [Ping timeout: 250 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
Guest92 has quit [Quit: Client closed]
arebil has quit [Ping timeout: 272 seconds]
analoq has joined #openscad
<analoq> i'm looking for a way to create an o-ring groove, but can't really find anything helpful.
<analoq> my thought process was using extruding a cross section along a spline
<peepsalot> analoq: is the groove not circular?
<InPhase> analoq: If circular, rotate_extrude. If non-circular in an unusually curvy shape, I recommend this approach: https://github.com/rcolyer/closepoints
<analoq> peepsalot: not too familiar with oring groove design, reading up on that currently. My initial idea was to do a c shaped circular groove
<InPhase> analoq: Demo: https://bpa.st/AOMA
<peepsalot> the cross section of the groove is often just rectangular. what is most important is the amount of squeeze. https://www.marcorubber.com/o-ring-groove-design-considerations.htm
<peepsalot> what i meant was whether the overall groove path was circular
<InPhase> peepsalot: Interesting link.
<peepsalot> it was like the first result for o-ring squeeze (couldnt' remember if that was the exact terminology)
<analoq> peepsalot: yeah i figured that out while looking for a solution too :). No the path won't be circular
<InPhase> analoq: A demo that follows those guidelines from the link. https://bpa.st/F46Q
mmu_man has quit [Ping timeout: 256 seconds]
<analoq> that's a nice looking profile
<InPhase> Is your actual groove composed of circular and straight stretches, or an artistic curvy type path?
califax_ has joined #openscad
califax has quit [Ping timeout: 260 seconds]
califax_ is now known as califax
<analoq> InPhase: the former
califax has quit [Remote host closed the connection]
<guso78> Anybody Has an actual Idea for algorithm about my 2d bezier curve
califax has joined #openscad
<InPhase> guso78: That's bezier? Looks like a stretched circle.
mmu_man has joined #openscad
<InPhase> So let me start by pointing out it's trivial as a hull between scale deformed spheres at the corners. :)
califax has quit [Remote host closed the connection]
califax has joined #openscad
<guso78> ITS actual a simple bezier with 3 Control Points
<InPhase> Can you show the control points? I have like 70% of a idea.
califax has quit [Remote host closed the connection]
<InPhase> I think you should be able to make a bezier corner coordinate map with beziers of beziers.
califax has joined #openscad
<guso78> Take 3 of 4 Points of a square aß Control Points and linear Extrude it to Form the Edges
J24k68 has quit [Quit: Client closed]
J24k68 has joined #openscad
<guso78> Issue with Corner IS that the bezier should bei symmmetrical around the 3 axes, so No hierarchy possible
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
SamantazFox has quit [Remote host closed the connection]
<InPhase> True symmetry is quite challenging. Even spheres are hard to make truly 3D symmetric.
J24k68 has quit [Quit: Client closed]
J24k68 has joined #openscad
<InPhase> guso78: peepsalot made some nice 3-axis oxtahedral symmetric spheres once by interpolating and pushing the points out to the radius.
<InPhase> guso78: But you lack the starting symmetries that let this work.
SamantazFox has joined #openscad
<guso78> Sounds Like construction of geodesoc spheres ...??
<peepsalot> yeah
<guso78> In Phase ITS.not necessarily a sphere or Radius.its Just needs to bei round and balanced
<InPhase> Heading into a meeting for a little bit. I'll ponder it more after.
<peepsalot> you could do something like a sweep between each three pairs of edges, and intersect between them all. this will likely leave a Y-shaped crease
<guso78> Peeps I cant afford a Gap for Manifold reasons but your proposal Sounds promising. Would you have time to create a Sketch ?
<peepsalot> maybe later this evening. would help to have your source to start from
califax has quit [Remote host closed the connection]
califax has joined #openscad
mmu_man has quit [Ping timeout: 268 seconds]
mmu_man has joined #openscad
fred_ has joined #openscad
<fred_> hello
<J24k68> hi!
<othx> Welcome J24k68!
<fred_> anybody around here?
<InPhase> fred_: Yes, we exist. :)
<fred_> aah good to know :-)
* J24k68 muffles in the dark
<fred_> not much action here..
<J24k68> depends on the topic
<fred_> yeah I thought just to listen first to see whats happening here
<InPhase> Reasonable choice, but think more on the 24-hour to 48-hour lurking scale for that. :)
<InPhase> Conversations will have time gaps between them on a channel of this size scale.
<InPhase> guso78: So I feel like it might be doable special-casing for corners bezier modeled out of rectangles.
<InPhase> guso78: I'm thinking about how one would arrange that at the moment.
mohammad1722 has joined #openscad
mohammad1722 has quit [Client Quit]
kintel has joined #openscad
rawgreaze has quit [Quit: ZNC 1.8.2 - https://znc.in]
<InPhase> guso78: https://bpa.st/VZAA
<InPhase> guso78: Triangulation is left as an exercise for the reader? :)
rawgreaze has joined #openscad
<InPhase> guso78: There's a slight axial bias left, but it's very hard to not have one when you're left with the problem of needing to quantize points into a 2D map...
<InPhase> guso78: But it's not very spatially strong. Certainly less biased than with a sphere.
<InPhase> guso78: It at least has the highly desireable property of the points aligning exactly with the bezier results of all 3 axes.
<InPhase> guso78: Start the triangles for the facet generation leaning in the forward direction as you iterate through the lists, to address the declining number of points as the rows rise in z.
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<InPhase> And then you might have to special case the top. The top can go from 2 to 1, or 3 to 1, but there's only ever one row, the top one, that has 1 point on it.
<InPhase> N is always forced upward to the nearest odd number if even.
fred_ has quit [Ping timeout: 255 seconds]
<JordanBrown1> guso78, InPhase: I would think in terms of BOSL2's Bézier patches.
<JordanBrown1> Though for some reason they dropped support for triangular patches. I don't know why. Maybe they just expect you to use rectangular patches with one side degenerate.
<JordanBrown1> Back to pretending to work.
<InPhase> I heavily preference small libraries (making and using) for OpenSCAD work, but am fond of looking at examples in other libraries if they're clear in isolation.
snaked has joined #openscad
Joel has quit [Ping timeout: 256 seconds]
Joel has joined #openscad