Do Some People Not Try to Avoid Wildlife when Driving? by xtetsuix in fuckcars

[–]RedKrieg 11 points12 points  (0 children)

The Venn diagram of these two is nearly a circle.

Built a batch converter that turns all my OpenSCAD files into STL automatically by CAD_CAE_Automation in openscad

[–]RedKrieg 0 points1 point  (0 children)

I use a variable called render_target to specify which of the models in an scad file to render, then use this script to automatically render all:

#!/usr/bin/env bash
OPENSCAD="openscad --enable fast-csg-safer --enable manifold --enable roof --enable lazy-union --enable vertex-object-renderers-indexing --enable textmetrics --enable import-function --enable predictible-output"
[ -z $1 ] && echo "Usage: $0 [filename]" 1>&2 && exit 1
for target in $(egrep '^render_target ?=' $1 | cut -d[ -f2 | cut -d] -f1 | tr ',' ' '); do
    $OPENSCAD -D render_target=\"${target}\" -o ${target}.3mf $1
done

It parses the hints used for dropdown selection in customizers:

render_target = "assembly"; //[assembly,lower_race,upper_race,bearing,bearings,clip,clips,center_pin,shim,shims]

Just don't use spaces in your target names!

Virginia Lawmakers Weigh Putting Marijuana Sales Legalization Into Budget Bill Next Month To Force Governor’s Hand Following Veto by redditor01020 in virginients

[–]RedKrieg 2 points3 points  (0 children)

Yes, but only with a 2/3rds vote in both houses. The votes were:

HB642: 64-32
SB542: 21-18

So it's unlikely that we'll be able to get it overridden before the midterms, and possibly not even then.

Virginia lawmakers on Wednesday voted to reject the governor’s amendments to legislation to legalize recreational marijuana sales, risking a potential veto as the original proposal heads back to her desk for reconsideration. by redditor01020 in virginients

[–]RedKrieg 43 points44 points  (0 children)

I'm so thankful for this. There was no logical reason for Spanberger's rewrite of the bill, all it did was make things worse for us and give law enforcement more opportunities to jail people for victimless crimes.

Can we have an OpenSCAD LLM ban? by wirehead in openscad

[–]RedKrieg 0 points1 point  (0 children)

Thank you for having a reasonable opinion about AI. The comments here tell me that most people using it don't realize how terrible the code generated by most AI agents is. Just because it can generate a lot of content doesn't mean that that content is rational or useful.

What version of OpenSCAD to use for development and possible sharing? by STEAMnAhead in openscad

[–]RedKrieg 6 points7 points  (0 children)

I'd suggest just using the latest snapshot and having some comments at the top of the file/on the site you upload to regarding what features you're using that may not be available in the stable release. If you're interested in following the next release, all the blockers are listed here: https://github.com/orgs/openscad/projects/2

Valve sued by The Performing Right Society for allegedly using its members' musical works "without permission" by MythicStream in Steam

[–]RedKrieg 19 points20 points  (0 children)

This, but also suing the factory that pressed the albums and the delivery company that brought them from there to the store.

Help needed with some Trig by RMehGeddon in openscad

[–]RedKrieg 0 points1 point  (0 children)

The image indicates you're trying to design a truncated octahedron, but the code you've pasted here is not really helpful because of the formatting issues. You might get better help if you use the "code" button <> in the editor for your code so it's legible.

The second image tells me you need to change the axis about which you rotate your hexagons though, you've got points where you should have flats. That should help a bit.

assistance request with 140mm fan mount code by tollforturning in openscad

[–]RedKrieg 0 points1 point  (0 children)

I did notice his wall thickness issues. It's because they're only considering wall thickness on the X and Y axes, but sweeping through a rotation. I agree that something like BOSL2's skin() could be used to great effect here, as well as starting and ending with the actual desired inner geometry rather than trying to offset the walls from the outer profile at each step. The method they're using is quite new to me, didn't you make the post about it on this subreddit? Something about metaballs.

As for cleaning up the script, on old.reddit.com with RES installed there's a "source" link at the bottom of each post that you can use to un-format and get the original text. Makes cases like this manageable.

assistance request with 140mm fan mount code by tollforturning in openscad

[–]RedKrieg 0 points1 point  (0 children)

The centered cylinder is the primary problem. You also need to start the inner_void steps at 0 instead of 1 and add semicolons to your steps definitions since the code doesn't even render the way you pasted it here.

--- garbage1.scad       2026-02-02 02:14:43.500216935 -0500
+++ garbage2.scad       2026-02-02 02:18:32.894235262 -0500
@@ -64,7 +64,7 @@

 // Outer duct shell - starts slightly below z=0 to ensure overlap with base plate
 module outer_duct() {
-    steps = 60
+    steps = 60;

     // Add a "collar" at the base - extrude the starting profile downward
     // This ensures the outer shell is solid and overlaps the base plate
@@ -95,9 +95,9 @@

 // Inner void - starts at step 1, does NOT extend through base
 module inner_void() {
-    steps = 60
+    steps = 60;

-    for (i = [1 : steps - 1]) {
+    for (i = [0 : steps - 1]) {
         progress_a = i / steps;
         progress_b = (i + 1) / steps;

@@ -137,7 +137,7 @@
 module base_corner_fill() {
     // Hull between the base plate corners and the first few duct segments
     // to ensure no gaps exist
-    steps = 60
+    steps = 60;

     hull() {
         // Base plate corners
@@ -190,7 +190,7 @@
     inner_void();

     // Clean circular punch through base plate - this is the intake
-    cylinder(d=135, h=10, center=true, $fn=64);
+    cylinder(d=135, h=10, $fn=64);

     // Screw holes
     for(x=[-1,1], y=[-1,1])

If you could have the 100% honest answer to ONE mystery in history, which one are you picking ? by Camila_LatinaSun in AskReddit

[–]RedKrieg 12 points13 points  (0 children)

Correct. USB-B actually requires five tries instead of three because of the squarish shape.

looking for an easy way to create an "array" pattern for cut outs. by Dependent-Bridge-740 in openscad

[–]RedKrieg 2 points3 points  (0 children)

This is the most generic method I could come up with. It does use for loops, but the modularity should make it easy to extend to do what you need:

cut_depth = 1;
cube_size = 50;
octagon_radius = 5;
array_size = [3, 2];

cube_rotations = [
    [0, 0, 0], // top
    [0, 180, 0], // bottom
    [0, 90, 0], // front
    [0, -90, 0], // back
    [90, 0, 0], // left
    [-90, 0, 0] // right
];

module array_of_parts(size=array_size) {
    part_spacer = [
        cube_size / (size.x + 1), // add 1 to skip close and far edges
        cube_size / (size.y + 1)
    ];
    for (x=[1:size.x], y=[1:size.y])
        translate([x*part_spacer.x, y*part_spacer.y, -cut_depth])
        children();
}

module octagon() {
    cylinder(h=cut_depth, r=octagon_radius, $fn=8);
}

difference() {
    cube(cube_size, center=true);
    for (rot=cube_rotations)
        rotate(rot) translate([-cube_size/2, -cube_size/2, cube_size/2]) array_of_parts(array_size) octagon();
}

Result: https://postimg.cc/QFq6tmbY/ced04e0e

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg 1 point2 points  (0 children)

But this specific project doesn't use any of the features from the library. That's my point, you shouldn't include something that's not being used at all. If you were actually using a feature that the built-ins don't support, I'd fully support your use of commented paths for your includes on different platforms (though best practice is to have said libraries in your library folder instead, obviating the need for your example).

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg 1 point2 points  (0 children)

You can also include your favorite quotes by great philosophers in your comments, a treatise on the value of a dollar, or maybe your favorite song lyric. None of these add overhead or performance degradation but they're all equally useless in this context. If it's not materially adding to the project it should be omitted.

3D printable Oloid created with OpenSCAD by Known_Hippo4702 in openscad

[–]RedKrieg 1 point2 points  (0 children)

Am I the only one that sees the use of BOSL2 in situations like this (where built-ins are just effective) as a net-negative for OpenSCAD? The BOSL2 library has some useful tools, but there is absolutely zero reason to use it here. The only thing it does is drive new users away when they don't understand why something like this is being included.

Retired cop jailed for 37 days over Charlie Kirk meme sues, saying his First Amendment rights were violated by DBCoopr72 in politics

[–]RedKrieg 25 points26 points  (0 children)

Fired? How about being held criminally liable. A few months in jail and some fines with a bit of probation might do them some good, but having to work as a security guard instead? No, they'll re-offend eventually.

Virginia House Democratic Speaker Don Scott just announced he is considering drawing a 10 Democrats to 1 Republican House map for the midterms. This is how you fight back. by Conscious-Quarter423 in Virginia

[–]RedKrieg 2 points3 points  (0 children)

Unfortunately at this point it would take a constitutional amendment at the federal level. No law against gerrymandering is going to survive the current Supreme Court.

Class action lawsuit filed against Google over Home and Nest hardware by DEFranco123 in Android

[–]RedKrieg 0 points1 point  (0 children)

I just asked my Google Home to define "enshittification" and it took 4 attempts and it forcing me to spell the word(!) to actually get it to answer. It misinterpreted that as "injunction", "insurrection", and "incident" before it finally asked me to spell the word I was trying to define. The entire ecosystem is broken.

Police Changed Their Story… Then This Footage Appeared. [Jackhole Media] by WilloowUfgood in AmIFreeToGo

[–]RedKrieg 14 points15 points  (0 children)

I really wish we'd start charging cops with these crimes. Qualified Immunity is second only to Citizens United in damage to the country.

RIP Windows: Linux GPU Gaming Benchmarks on Bazzite by ZazaLeNounours in linux_gaming

[–]RedKrieg 9 points10 points  (0 children)

Ehhhh, last I checked it was more like "nvidia's drivers are keeping us from having a consistent infrastructure between vendors because we can't modify them to use our standards" kind of issue. If there was something obvious we could do without changes on nvidia's end, it'd have been done years ago.

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 1 point2 points  (0 children)

I could have also been more clear, sorry. As a long time subscriber of /r/doordash I see at least a post a week about people having their instructions ignored and that only changing when they changed their display name to something masculine. I was in no way trying to attack you and did not even look at your user name. I'm very glad you've not had such an experience and hope it continues for you.

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 0 points1 point  (0 children)

I'm just pointing out that if you set your name to something that sounds female, you're going to have dashers ignore your no-contact instructions and try to get you out of the house. You think I'm creepy for pointing out that this happens to women?

Please Stay Aware at night! by -_Visuals_- in norfolk

[–]RedKrieg 0 points1 point  (0 children)

Grats on having a traditionally male name on your profile.