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
neb has left #openscad [Leaving]
<gbruno> [github] hzeller synchronize pull request #5374 (Work around bad interaction of including glew and QOpenGLContext) https://github.com/openscad/openscad/pull/5374
<gbruno> [github] hzeller synchronize pull request #5375 (Fix typo in CMakeLists.) https://github.com/openscad/openscad/pull/5375
mmu_man has joined #openscad
ccox_ has quit [Ping timeout: 245 seconds]
J24k45 has joined #openscad
J24k80 has quit [Ping timeout: 256 seconds]
ccox has joined #openscad
LordOfBikes has quit [Ping timeout: 248 seconds]
LordOfBikes has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
<gbruno> [github] kintel closed pull request #5372 (Remove WASM CMake message) https://github.com/openscad/openscad/pull/5372
<gbruno> [github] kintel pushed 1 modifications (Remove WASM CMake message (#5372) WASM variable was removed in: 1d5586dda ("`build`: move WASM build options into CMakeLists.txt, remove unneeded steps (#5199)", 2024-07-03)) https://github.com/openscad/openscad/commit/f43c1bd3006db7bb9b36d8ce7ad83cc75a25b3b4
<gbruno> [github] kintel pushed 1 modifications (Work around bad interaction of including glew and QOpenGLContext (#5374) Context: https://github.com/openscad/openscad/pull/5371#issuecomment-2409121011) https://github.com/openscad/openscad/commit/dba8512b95b412252bdd98d17a3b3c6ee529807c
<gbruno> [github] kintel closed pull request #5374 (Work around bad interaction of including glew and QOpenGLContext) https://github.com/openscad/openscad/pull/5374
<gbruno> [github] kintel pushed 1 modifications (Fix typo in CMakeLists. (#5375) USE_GLEW not mutually exclusive itself but with USE_GLAD) https://github.com/openscad/openscad/commit/fbf9ba8535694fd22d70f607c3e3c0be6787eeb2
snakedGT has quit [Quit: Leaving]
snaked has joined #openscad
othx has quit [Ping timeout: 260 seconds]
othx has joined #openscad
snakedGT has joined #openscad
snaked has quit [Ping timeout: 252 seconds]
snakedGT has quit [Read error: Connection reset by peer]
snaked has joined #openscad
<UltimateCodeWarr> are there any programs to take a 2d image and convert it to a polygon for openscad
<teepee> inkscape?
<othx> inkscape is a SVG editor which has an extension to export in OpenSCAD format. See http://www.thingiverse.com/thing:25036/
<Scopeuk> I'm not aware of anything explicitly for openscad, you can probably find something that goes to svg and import that as your basis
<teepee> I think there's a potrace website too
<UltimateCodeWarr> ok, got it 2 a svg, will try inkscape
<UltimateCodeWarr> thx all
<UltimateCodeWarr> Didn't see any export to .scad in Inkscape, is that a plugin?
rvt has joined #openscad
teepee_ has joined #openscad
<UltimateCodeWarr> So I downloaded the extension, but inkscape's extension manager is crashing
<UltimateCodeWarr> Any other way to convert svg to .scad?
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
<Scopeuk> openscad can import an svg
<gbruno> [github] lgarron opened issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude` rotates a shape with a point on the rotation axis.) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude` rotates a shape with a point on the rotation axis.) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude` rotates a shape with a point on the rotation axis.) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude(rotate_extrude)` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude(rotate_extrude)` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude(rotate_extrude)` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
guso78 has joined #openscad
<guso78> @kintel,  thank you for taking over the task with the localslicer temp file name. it will make my life easier with the local slicer.
<UltimateCodeWarr> So I was able to convert the svg->dxf with   https://cloudconvert.com/svg-to-dxf
<buZz> why though? you can already import svg as-is
<UltimateCodeWarr> Then I dragged and drop the .dxf into openscad window and it created an import command
<buZz> also, inkscape can export dxf :)
<UltimateCodeWarr> Well, my next question is, once you import something like this, how do you address it within openscad
<UltimateCodeWarr> It's not like the import command assigns it to a variable right?
<buZz> its imported into the scene
<buZz> what is the goal of the vector import?
<UltimateCodeWarr> Its rendering in the window
<buZz> with just the import() the F5 render would add a linear_extrude to make it visible, but i dont think the F6 render will
<buZz> typically, you'd add a linear_extrude before the import, and maybe a scale before that
<UltimateCodeWarr> BOth work, but F6 has a neon color scheem
<buZz> cool
<buZz> so whats the goal?
<guso78> Why is it so common , that people believe that something "created" must go to a variable '=D
<UltimateCodeWarr> well, because ever other program language does?
<UltimateCodeWarr> File handle = open(filename)
<buZz> #include bla.h doesnt add the 'bla.h' to a variable ;)
<teepee> where are the variables in CSS?
<UltimateCodeWarr> Well in some languages there is the notion of a package namespace or a class
<buZz> so whats the goal of the vector
<UltimateCodeWarr> so you would do something like bla.functioncall()
<guso78> CSS is yet another descriptive language :)
<UltimateCodeWarr> So, the goal of the imported vector would be to maybe make either a raised/lowered embossed emblem.
<UltimateCodeWarr> And the liner extrude did work
<UltimateCodeWarr> Is there any way to take an inverse of what you included?
<buZz> difference() ?
<UltimateCodeWarr> Let me try that
<UltimateCodeWarr> https://imgur.com/a/6Dv23JC
<UltimateCodeWarr> difference() {
<UltimateCodeWarr> translate([0,-8,0.1])
<UltimateCodeWarr>     cylinder(h=4,r=120);
<UltimateCodeWarr>     linear_extrude(5)
<UltimateCodeWarr>         translate([-140,-140,0])
<UltimateCodeWarr>           import("/home/Downloads/snake.dxf");
<UltimateCodeWarr>  }
<guso78> looks scary ;)
<J24k45> UltimateCodeWarr you don't need an extension - openscad can import SVG
<UltimateCodeWarr> let me try it with the svg
<buZz> you can put # before a item to make it light up, inside the difference
<buZz> maybe put one before the cylinder() to see where you are placing it
<J24k45> import(center=true) can help too and resize()
<buZz> is resize() a alias for scale() ?
<buZz> oh, fancy
<buZz> its for target size :)
<J24k45> no resize renders the object to get the size and then scales to match the desired size
<buZz> nice
<UltimateCodeWarr> JK, that center trick is nice.    The SVG wasn't the same size.  so some tweaking is necessary.  Also  F6 works in the render of it once it's been extruded, but since it's a poly mesh, it takes a few seconds.
<gbruno> [github] lgarron edited issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude(rotate_extrude)` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<J24k45> using offset(-.1) can help remove jagged edges / double points
<buZz> J24k45: oh, nice trick
<J24k45> if you have convex and concave  you might use  offset(.2)offset(-.1)
<UltimateCodeWarr> Where do I use that?
<J24k45> offset(-.1)resize()import();
<J24k45> offset is a 2D operation
<UltimateCodeWarr> I think the SVG is cleaner, a little better format and it renders with F6, so I will stick with it.
<UltimateCodeWarr> I guess what I was expecting was some sort of polygon array that you could include in your file vs just including the .svg
<UltimateCodeWarr> Are there any functions that would allow you to wrap a coaster like this around a sphere or cylinder's curved side?
<Scopeuk> there is nothing native in openscad I know os, someone may have done it with slicing the model into lots of parts. I believe that functionality is now integrated into prusa slicer
<Scopeuk> bar to psi
<Scopeuk> hmm wrong keyboard
<J24k45> you can copy the content of the svg into a function that i converting the curves into points .. no having points you can make a polar transformation so they are on a sphere or cylinder
guso78 has quit [Quit: Client closed]
<J24k45> if the object is only on a smaller part of the curved surface it is easier to use a difference of the extrusion and a smaller surface
<J24k45> difference(){sphere(50);linear_extrude(100,convexity=5)text("ABC",size=20,valign="center",halign="center");}color("cornflowerblue")sphere(49);
pca006132 has quit [Remote host closed the connection]
pca006132 has joined #openscad
pca006132 has quit [Remote host closed the connection]
pca006132 has joined #openscad
guso78 has joined #openscad
<guso78> UltimateCodeWarr, I have coded a "wrap" function which wraps an (y thin) solid around a cylider, but you have to specify its radius.
<InPhase> guso78: Is that in the python bits?
<InPhase> Doing that in regular OpenSCAD properly would require that data = render() PR.
<guso78> InPhase yes exactly. the procedure is render, split segments to a maximum fs size, and finally do coordinate transformation
<guso78> Any feature which is not app;lied already during the creating of an object(=primitives) anyway needs a render. And as all objects are cached anyway it does not make a difference if the time for rendering is spent earlier or later.
mmu_man has joined #openscad
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
aiyion1 has quit [Ping timeout: 260 seconds]
aiyion1 has joined #openscad
UltimateCodeWarr has quit [Quit: Client closed]
guso78 has quit [Quit: Client closed]
<gbruno> [github] kintel closed issue #5376 ("The given mesh is not closed" rendering error when `rotate_extrude(rotate_extrude)` rotates a shape with a point on the rotation axis with even `$fn`) https://github.com/openscad/openscad/issues/5376
<gbruno> [github] kintel pushed 2 additions 9 modifications (Generalize extern tool services) https://github.com/openscad/openscad/commit/d0bcfa00e8dd23cbbad972ccca69a5459757208e
<gbruno> [github] kintel synchronize pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
rvt has quit [Ping timeout: 255 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
pca006132 has quit [Quit: pca006132]
mmu_man has quit [Ping timeout: 265 seconds]
mmu_man has joined #openscad
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
J24k45 has quit [Client Quit]
J24k45 has joined #openscad
<tcurdt-> I need a cube with the side walls leaning in with a certain angle alpha. Is there anything easier than just calculating the points for a polyhedron?
<tcurdt-> which is not hard but... I am wondering
<tcurdt-> I tried a hull with two squares - but the squares are in 2d and there is no translate in the 3rd dimension to form a hull
<teepee> all angles the same?
<teepee> if yes, linear_extrude with scale
<teepee> if you don't fuzz about imperfections you can hull() two very thin extruded squares in 3d
<J24k45> use lin_extrude(scale=0)square(center=true)..  and turn the upper [180]   and there are no imperfections
<J24k45> but as math would be same .. using only the linear_extrusion would be also my choice  .. (have a function that calculates scale for a certain angel and radius)
<J24k45> tcurdt- https://bpa.st/V4VQ
<teepee> it's dancing on the edge though. who knows if scale = 0 will always work
<J24k45> scale=.1 ?   you only need a single edge for the hull
<tcurdt-> thanks folks ... I ended up going the polyhedron route ... a little more verbose ... but the math is so simple ... in end felt the most straight forward
<gbruno> [github] kintel pushed 2 additions 10 modifications (Generalize extern tool services) https://github.com/openscad/openscad/commit/b4c5589686c4ef4bc1c827dc98b5b0ef08976a6b
<gbruno> [github] kintel synchronize pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
<gbruno> [github] kintel pushed 4 modifications (Partial cleanup of FileFormat<->string conversions) https://github.com/openscad/openscad/commit/e49123d4e14bd5b5ecc560e2f9322ce6422bdd96
<gbruno> [github] kintel synchronize pull request #5368 (Refactoring: Split openscad_gui.cc from openscad.cc, slimmed down ExportInfo) https://github.com/openscad/openscad/pull/5368
<gbruno> [github] kintel edited pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
aiyion1 has quit [Ping timeout: 260 seconds]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
J24k45 has quit [Quit: Client closed]
J24k45 has joined #openscad
UltimateCodeWarr has joined #openscad
Guest73 has joined #openscad
Guest73 has quit [Client Quit]
guso78 has joined #openscad
ooxoo has quit [Ping timeout: 252 seconds]
<J24k45> the PovRay export is cool but the light seems to be very strange https://imgur.com/a/2BfZoh3  we should have lights that cast a soft shadow
<J24k45> f0lkert did you find a fix for the viewport?
<gbruno> [github] kintel pushed 4 modifications (Added suffix vs. identifier to fileformat, added toSuffix()) https://github.com/openscad/openscad/commit/9fcea658cb9cd937ac6d445b7987ef62aaaa21b6
<gbruno> [github] kintel synchronize pull request #5368 (Refactoring: Split openscad_gui.cc from openscad.cc, slimmed down ExportInfo) https://github.com/openscad/openscad/pull/5368
<gbruno> [github] kintel pushed 2 additions 7 modifications (Generalize extern tool services) https://github.com/openscad/openscad/commit/de26edb94360ee37e6cc5467858df8fefbc7cf13
<gbruno> [github] kintel synchronize pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
guso78 has quit [Quit: Client closed]
kintel has joined #openscad
<kintel> Does anyone happen to have a working OctoPrint remote setup for OpenSCAD? I need some help validating that I'm not breaking anything.
<kintel> guso78 Your filename feature is also part of that PR
<teepee> I'm not actively using it, but the octoprint raspi is still sitting there just doing camera
<kintel> cool. I'm not done yet, will do some cleanup first, but I believe it should work now
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Smeef has quit [Read error: Connection reset by peer]
Smeef has joined #openscad
Smeef has quit [Max SendQ exceeded]
Smeef has joined #openscad
Smeef has quit [Max SendQ exceeded]
Smeef has joined #openscad
Smeef has quit [Max SendQ exceeded]
Smeef has joined #openscad
<gbruno> [github] kintel pushed 2 additions 5 modifications (Generalize extern tool services) https://github.com/openscad/openscad/commit/3efad23247410f89dc84295edc8c3c4a55b7f580
<gbruno> [github] kintel synchronize pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
<gbruno> [github] kintel edited pull request #5357 (Add support for multiple 3D print services) https://github.com/openscad/openscad/pull/5357
kintel has joined #openscad