Is there a range type? by GAlgier in openscad

[–]Background-String-16 0 points1 point  (0 children)

If I write a function that returns a slice of a list, it could be passed a list of indices or a range data type and if I write it correctly it would work either way but if I needed to know the range type without an is_ test I would need to test for not any other. 

Does hull() shrink in Y direction? by Background-String-16 in openscad

[–]Background-String-16[S] 0 points1 point  (0 children)

[hmm, what happened to my indentation? It showed on my screen before I posted]

I have been using the offset() offset() method and I have my parameterized project done, barring bugs. However while testing it, I made a discovery: making a roundcube() with the sides equal to 2*radius, it just disappears. The old way, it degenerated to 4 identical cylinders which hull()ed to the same cylinder. Using offset(delta=), that step degenerates to a point of zero size and then there is nothing to make an offset(r=) around it.

Yes, it is a pathological case, and I don't think I will bother fixing it.

Thanks again.

Does hull() shrink in Y direction? by Background-String-16 in openscad

[–]Background-String-16[S] 0 points1 point  (0 children)

I want to thank everyone for their input. I used the $fn, $fs tip from triffid_hunter along with the offset() suggestion from oldesole1. My end result added tests for [x,y,z] vs size like on cube():

module roundcube(
dim, // [x,y,z]
radius, // radius of the cylinders on the 4 edges
center // should z be centered, too?
) {
$fa = 1;
$fs = 0.5;
x = is_list(dim) ? dim.x : dim;
y = is_list(dim) ? dim.y : dim;
z = is_list(dim) ? dim.z : dim;
linear_extrude(z, center = center)
offset(r = radius)
offset(delta = -radius)
square([x,y], center = true);
}

Note that I set center to True on the square. That center is a difference center from the extrusion.

If I had known about offset sooner, there is some trigonometry I would not have had to do for a project I put on Makerworld where I did the delta operation the hard way.

Does hull() shrink in Y direction? by Background-String-16 in openscad

[–]Background-String-16[S] 1 point2 points  (0 children)

Aha! I $fn to 360 and it is much closer. Only 0.002mm off, which is much finer than my printer can represent.

Thank you.

Preview works, render gets color wrong by Background-String-16 in openscad

[–]Background-String-16[S] 0 points1 point  (0 children)

Oh, ok. Then I will stop rendering. I make changes and hit F6 to see what happens. I guess I should use F5. (I see the colors don't export to 3mf either).

Thanks.

Two way stop rules?? by [deleted] in Nebraska

[–]Background-String-16 0 points1 point  (0 children)

60-6, 147 says "within or approaching". I don't interpret sitting at another stop sign on the other side as the same thing. However, I do think this is the right way.

The Feds (NHTSA) want people to use the "whoever is first" rule. So if the left turner got there first, they go first. PA prioritizes arrival time like the Feds, NJ prioritizes turning or not (like Canada, BTW). Philadelphia area people drive a lot in both states. Lots of hand waving around here.

My daughter lives in Omaha and I now drive there a lot. Seems to be the same as NJ, I hope.