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
_whitelogger has joined #openscad
tcurdt has joined #openscad
Joel has joined #openscad
oldlaptop has joined #openscad
mikolajw has quit [Ping timeout: 260 seconds]
drgerg has joined #openscad
trashbird has quit [Quit: Ping timeout (120 seconds)]
trashbird has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
peeps[zen] has joined #openscad
peepsalot has quit [Ping timeout: 256 seconds]
mikolajw has joined #openscad
drgerg has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
drgerg has joined #openscad
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
JakeSays has quit [Ping timeout: 248 seconds]
JakeSays has joined #openscad
KimK has joined #openscad
<joseph_> teepee InPhase: It looks like we'll want to jointly consider how best to handle the following situations: choosing the value of shaderinfo (and when it should be nullptr), and the conditions for activating glUseProgram with the progid of the shader initialized in Renderer's constructor. The approach would need to be compatible with the relevant differences between Renderer and all its derived classes. Hopefully by midday tomorrow
<joseph_> I'll have cleaned up my notes to include links to specific line numbers in VBORenderer, etc. and published them so we can have a more in-depth discussion.
<joseph_> I will also search through the blame for some earlier commits in case there is a specific community member who might have insight about certain aspects of CGALRenderer (currently the blame for the most recent commit always shows teepee because of the beautify script). I was hoping that activating the ExperimentalVxORenderers feature and adding a call to glUseProgram in CGALRenderer::draw would cause the shader to be used for the
<joseph_> F6 render, but instead nothing is rendered. More information about what I've uncovered so far will be available once my latest notes are organized enough to be legible
teepee has quit [Ping timeout: 268 seconds]
teepee has joined #openscad
<InPhase> joseph_: You still around?
J1A8462 has joined #openscad
<InPhase> joseph_: I don't quite understand the nature of the question. I would think this would flow directly from whether or not the feature is enabled and a custom shader is provided.
<InPhase> joseph_: Are there cases where that starting logic misbehaves?
J1A84 has quit [Ping timeout: 252 seconds]
Furor has joined #openscad
hisacro has quit [Ping timeout: 246 seconds]
Colere has quit [Ping timeout: 246 seconds]
hisacro has joined #openscad
Furor is now known as Colere
feuerrot has quit [Ping timeout: 240 seconds]
cheater has joined #openscad
<cheater> hi
<cheater> i want to order a sheet metal cutout (cnc routed) from pcbway and i need to deliver a drawing. what's better for that purpose, openscad or freecad? i don't know either program. the part is relatively simple, it's basically a square with some smaller squares cut out from the inside. i need to indicate things like tolerances. i just need a 2d drawing, since it's sheet metal.
<teepee> cheater: if there's single line cuts somewhere, OpenSCAD may cause some issues as it operates on closed objects, even in 2D
<teepee> e.g. you can't have 2 rectangles touching on an edge and keep that edge. it will merge into a single bigger rectangle
<teepee> another option might be librecad as that's dedicated 2d cad
<teepee> I'm sure freecad can do that too, but I don't have much experience with that, but people in that channel probably will give advise on that :)
<crazy_imp> cheater: which file formats do they accept? that may pose some restrictions too
<crazy_imp> (and if they offer a preview for your uploaded files you can try without loosing money and time)
<crazy_imp> s/loosing/losing/
<cheater> teepee: what's a single line cut?
<cheater> ah
lastrodamo has joined #openscad
<cheater> crazy_imp: 3D CAD: *.step, *.stp, *.x_t , *.iges, *.sldprt 2D Drawing: *.dwg, *.dxf, *.pdf
<J1A8462> go with squares export as dxf
stefanct has quit [Ping timeout: 240 seconds]
stefanct has joined #openscad
M6piz7wk[m] has quit [*.net *.split]
Notkea has quit [*.net *.split]
M6piz7wk[m] has joined #openscad
Notkea has joined #openscad
miique has quit [Ping timeout: 248 seconds]
Cadair has quit [Ping timeout: 248 seconds]
regrin[m] has quit [Ping timeout: 264 seconds]
one-star-chef has quit [Ping timeout: 265 seconds]
M6piz7wk[m] has quit [Ping timeout: 252 seconds]
mikolajw has quit [Ping timeout: 272 seconds]
KimK has quit [Ping timeout: 240 seconds]
Notkea has quit [Ping timeout: 252 seconds]
regrin[m] has joined #openscad
regrin[m] has quit [Client Quit]
Cadair has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee has joined #openscad
mikolajw has joined #openscad
M6piz7wk[m] has joined #openscad
Notkea has joined #openscad
one-star-chef has joined #openscad
miique has joined #openscad
regrin[m] has joined #openscad
Fyr has joined #openscad
<Fyr> hello, I need to analyze stability of a thing I created with OpenSCAD. how can I, at least, calculate projection of density?
<teepee> there's nothing included directly, but I think there's some tools for that using STL as input
<teepee> or as alternative, I believe FreeCAD has some FEM stuff included now and also has an OpenSCAD workbench for loading OpenSCAD designs
<J1A8462> not sure what density is as this would require to define materials .. but you can cut through a model (or use projection) to see thickness
<Fyr> J1A8462, I want to make sure that the model won't fall.
<Fyr> I don't know what my eye can say about thickness.
<InPhase> Fyr: Like a center of mass calculation?
<Fyr> something like that
<Fyr> more like distrubution of mass
<InPhase> Fyr: It seems meshlab has a geometric measures feature that might help with center of mass.
<InPhase> "distribution of mass" is not a well-defined concept. The distribution of mass is roughly the shape itself.
<InPhase> (The only reason it's not exactly the shape is because of options for non-100% infill.)
<Fyr> InPhase, the shape is hollow.
<Fyr> the entire shape, the shape of the void are difficult.
<InPhase> Center of mass of the surface is a much simpler calculation, such that one could write code for that oneself with only a modest geometry effort. I'm not sure if meshlab specifically has a surface calculation for that.
<InPhase> The calculation is to just iterate over the triangles and add up their area times their center position vector in a loop, then divide by the summed surface area.
<InPhase> If you select the ascii output you could write that in a pretty small Python script.
<othx> Fyr linked to "Outline vase by mishkin2" on thingiverse => 1 IRC mentions
<Fyr> surface calculations won't help.
<J1A8462> you don't need calculation for that .. as it is vertical .. the problem is what you put into the vase
<peeps[zen]> as I understand from the keywords of projection, density and distribution: sounds like you would want to project a grid of rays through a geometry. for each ray, record the total length which intersect the object, then basically view those data points as an input to surface() ?
<peeps[zen]> there's not any particular straightforward way to do a detailed analysis like that via openscad
<peeps[zen]> oh, just looked at the vase example. I wouldn't really describe that as a projection of density, its more a very abstract representation of shape derived from projection outlines, from couple orthogonal planes
<InPhase> Fyr: Yeah, basically if the thing inserted is centered or balanced toward the back, that's stable. If the thing inserted leans outward and it's heavy it will tip. Make sure the thing inserted is lighter than the printed vase, and not super long, and it will be stable. If it's a heavy object inserted, it needs to tilt back or it will fall.
<Fyr> it was just an example of a complex shape.
<InPhase> Fyr: That is not a good vase design for a boquet of flowers. :) It's suitable only for small things like inserted.
<Fyr> my shape is even more complex and hollow.
<InPhase> If truly hollow (like zero infill), then it is, in fact, a surface mass calculation.
<Friithian> put it into blender, make it ridgid body, see what happens
<InPhase> Fyr: The engineer in me will suggest finding an artistic way to add stability so it's not an issue in the first place. But the mathematician in me says you can just add up the surface center of mass from the STL file like I explained, and know the limits from that.
<peeps[zen]> Fyr: is my grid of rays example more or less what you are asking for then?
<peeps[zen]> Fyr: maybe a better question is, what do you need this "mass distribution" for? what would you do with that information?
<peeps[zen]> you mention analyzing stability, but stability in what context?
Fyr has quit [Ping timeout: 252 seconds]
<peeps[zen]> of course none of my messages reach them *rolleyes*
<Friithian> is it really irc if someone doesn't disconnect when you're trying to help
<J1A8462> i like that rigid body approach ..  or  print it  small and see if it tips  over
<Friithian> throwing into blender and putting a rigid body on it and a plane would be pretty quick and show any obvious issues, but printing it would be the best way to see if it'll tip. If only we knew the reason they needed this info
<J1A8462> .oO in the end it always is a dildo
<Friithian> well I hope they're using body safe materials
<J1A8462> i mean if it is likely to tip over .. just add a big suction cup at the bottom
teepee has quit [Ping timeout: 268 seconds]
teepee has joined #openscad
little_blossom has quit [Ping timeout: 256 seconds]
little_blossom has joined #openscad
Colere has quit [*.net *.split]
milza has quit [*.net *.split]
joseph_ has quit [*.net *.split]
RoyK has quit [*.net *.split]
crazy_imp has quit [*.net *.split]
Alexer has quit [*.net *.split]
mlaga97 has quit [*.net *.split]
one-star-chef has quit [*.net *.split]
miique has quit [*.net *.split]
mikolajw has quit [*.net *.split]
Cadair has quit [*.net *.split]
Notkea has quit [*.net *.split]
drgerg has quit [*.net *.split]
M6piz7wk[m] has quit [*.net *.split]
Azelphur has quit [*.net *.split]
sauce has quit [*.net *.split]
ABSHK has quit [*.net *.split]
InPhase has quit [*.net *.split]
ndnihil has quit [*.net *.split]
lf94 has quit [*.net *.split]
Ekho has quit [*.net *.split]
extor has quit [*.net *.split]
regrin[m] has quit [*.net *.split]
jonasbits has quit [*.net *.split]
gwillen has quit [*.net *.split]
ccox has quit [*.net *.split]
clemens3 has quit [*.net *.split]
milza has joined #openscad
miique has joined #openscad
brianx has joined #openscad
regrin[m] has joined #openscad
jonasbits has joined #openscad
crazy_imp has joined #openscad
Notkea has joined #openscad
one-star-chef has joined #openscad
M6piz7wk[m] has joined #openscad
drgerg has joined #openscad
mikolajw has joined #openscad
joseph_ has joined #openscad
011AAN0PL has joined #openscad
Cadair has joined #openscad
Colere has joined #openscad
RoyK has joined #openscad
Azelphur has joined #openscad
mlaga97 has joined #openscad
gwillen has joined #openscad
Alexer has joined #openscad
ccox has joined #openscad
clemens3 has joined #openscad
lf94 has joined #openscad
sauce has joined #openscad
extor has joined #openscad
InPhase has joined #openscad
ABSHK has joined #openscad
Ekho has joined #openscad
ndnihil has joined #openscad
la1yv_a has joined #openscad
la1yv has quit [Ping timeout: 268 seconds]
ur5us has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
lastrodamo has quit [Quit: Leaving]
<joseph_> InPhase: A reproduction of my current approach is now pushed. I thought it would be easiest to show the changes in the form of a draft PR within my own fork, so not to conflict with development in the actual openscad repo. https://github.com/jbinvnt/openscad/pull/1. This shows how I removed the showedges requirement so that the shader is used in F5 preview once the VBO feature is on. But for the F6 render, my call to glUseProgram
<joseph_> leads to nothing rendered. I didn't see any OpenGL errros logged
<brianx> nevermind, i killed the process and it's gone.
brianx has left #openscad [#openscad]
<teepee> joseph_: did you try running with debug to enable those PRINTD statements?
<teepee> maybe that helps tracking down which of the draw code is active
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
<teepee> otherwise there's also renderdoc for tracing OpenGL calls, but it's a bit difficult to use, at least I did struggle a bit making sense of it's traces
<joseph_> teepee: I didn't know a debug mode needed to be enabled in order for PRINTD to be displayed. This might be my issue. I have used the debug build args during compilation of course, but I didn't see anything in the docs about an environment variable or similar requirement to show debug messages at runtime. What do I need to change?
<teepee> I think it's independent from code debug stuff. you can enable via --debug=<SourceFileName>,...
<teepee> or just --debug=all should be quite verbose
<teepee> yep, openscad --debug=CGALRenderer works even on the release version
<teepee> the output is not great though, at least for the render code