<UltimateCodeWarr>
if i set rc=true; The following doesn't work right
Guest78 has quit [Ping timeout: 256 seconds]
UltimateCodeWarr has quit [Quit: Client closed]
greenbigfrog has joined #openscad
greenbigfrog has quit [Ping timeout: 265 seconds]
greenbigfrog has joined #openscad
hyperair has quit [Ping timeout: 252 seconds]
greenbigfrog has quit [Ping timeout: 276 seconds]
hyperair has joined #openscad
<Scopeuk>
what that code is doing is modifying the variables inside the {} for the if (inner scope overriding outer scope). you cant create a variable and then update it in open scad. I expect you would need to use the ternary operator to do what it looks like you want to
califax has quit [Remote host closed the connection]
califax has joined #openscad
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
guso78 has joined #openscad
guso78 has quit [Quit: Client closed]
guerd871 has joined #openscad
mmu_man has quit [Ping timeout: 244 seconds]
mmu_man has joined #openscad
guerd87 has quit [Ping timeout: 260 seconds]
<J24k43>
can someone explain this bug? difference(){ #cube(10); #translate([10,0])cube(10); }
<J24k43>
happens with intersection too.. moving the second cube out and it becomes visible .. but in general having both objects highlighted is causing issues
UltimateCodeWarr has joined #openscad
<J24k43>
intersection(){ #cube(10); #translate([10.00,0])cube(10); } // as soon as there is intersection the objects vanish
<InPhase>
J24k43: "Traditional transforms (translate, rotate, scale, mirror & multimatrix) are performed using OpenGL in preview, while other more advanced transforms, such as resize, perform a CGAL operation, behaving like a CSG operation affecting the underlying object, not just transforming it. In particular this can affect the display of modifier characters, specifically "#" and "%", where the highlight may
<InPhase>
not display intuitively, such as highlighting the pre-resized object, but highlighting the post-scaled object." The manual.
<InPhase>
J24k43: So your weirdness is at least categorically documented. :)
<J24k43>
glad "this is fine"
<InPhase>
It's interesting that it does fine if you do only one.
<J24k43>
it looks like if both are highlighted they are in the same "scope" and the operation is done there too
<J24k43>
so we need a #1 and #2
<J24k43>
maybe the proper workflow would be just using % and not #
<InPhase>
I bet in practice there's a highlighted-object space which is previewed and given its own color.
<InPhase>
And so you end up with interactions on them.
greenbigfrog has quit [Ping timeout: 252 seconds]
<J24k43>
intersection(){ %cube(10); %translate([10,0])cube(10); } // works
<InPhase>
Well, do Design, Display CSG Products, and compare those two, # # vs % %
greenbigfrog has joined #openscad
<InPhase>
It has the structure in the products for # # in the Highlights CSG rendering chain, but not % % in the Background CSG rendering chain
<J24k43>
intersection(){ #cube(10); %color("pink",.5)translate([10,0])cube(10); } // now the second is influencing the color of the first
<InPhase>
That might be an error, if it goes and makes a whole separate chain for each, but one of them has the structure and one doesn't.
<InPhase>
I don't think the documented behavior should be different in that part.
<J24k43>
hm why is #cube(10); not transparent?
<InPhase>
teepee: Do you have historical insight into # # on two objects doing +cube3 *cube5, but % % on two objects doing +cube5 +cube3? Or does this require poking kintel?
<teepee>
not sure
<J24k43>
didn't you already summoned him by "speaking" his name?
<teepee>
I suspect it's different behavior due to handling of "empty" geometry
<teepee>
regarding %
<InPhase>
Hmm. Yeah, intersection() { cube(1); #cube(10); %color("pink",.5)translate([10,0])cube(10); } restores the transparent highlight of cube(10)
<InPhase>
But I think that's a whole separate issue, for whatever is going wrong there.
<teepee>
I think those are rendered in different passes so the outcome might not be easy to control
<InPhase>
There must be some unplanned cruft that gets shoved in there on an empty geometry.
<InPhase>
Even a file with nothing in it but #cube(10); does not make it transparent.
<J24k43>
only invisible objects get alpha transparency?
Junxter has quit [Remote host closed the connection]
Junxter has joined #openscad
mmu_man has quit [Ping timeout: 272 seconds]
little_blossom has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
snaked has joined #openscad
UltimateCodeWarr has quit [Quit: Client closed]
UltimateCodeWarr has joined #openscad
kintel has joined #openscad
<kintel>
pca006132 You probably missed my question from a few days ago: Do you think Manifold's convex hull is robust enough to start using in OpenSCAD?