!tBPyYyjOQgVzlwFvEI:matrix.org

CadQuery Showcase

573 Members
3 Servers

Load older messages


SenderMessageTime
5 Nov 2023
@_discord_1170673203773984829:t2bot.ioimalive_86851 joined the room.10:38:35
@_discord_673464882896830475:t2bot.iorealfun67 joined the room.19:50:05
6 Nov 2023
@_discord_389590821755813890:t2bot.ioanderson.pa joined the room.17:32:33
@_discord_287053119001591808:t2bot.iorealet joined the room.17:41:39
@_discord_856491369765928971:t2bot.iomedicationforall Late on the response I apologize. It is a procedural algorithm. The premise is if I know the x,y coordinate of each point I can randomly move each point n number up, down, left or right. and I can apply that random operation for each point. I use a seed to make the generation of the randomized points reproducible.

 python
def random_nudge_points(
        seed, 
        points, 
        x_jiggle = (-2,8), 
        y_jiggle = (-1,1)
    ):
    random.seed(seed)
    mod_points = []
    for point in points:
        if type(x_jiggle) is tuple:
            r_x = random.randrange(x_jiggle[0], x_jiggle[1])
        else: 
            r_x = x_jiggle
            
        if type(y_jiggle) is tuple:
            r_y = random.randrange(y_jiggle[0], y_jiggle[1])
        else: 
            r_y = y_jiggle
            
        new_point = (point[0]+r_x,point[1]+r_y)
        mod_points.append(new_point)
        
    return mod_points


Sometimes you'll generate crap designs and the points will overlap in unintended ways. Eventually I should write some checks to make sure the modified points don't overlap. For the time being it's a good start.
20:46:12
@_discord_856491369765928971:t2bot.iomedicationforall * Late on the response I apologize. It is a procedural algorithm. The premise is if I know the x,y coordinate of each point I can randomly move each point n number up, down, left or right. and I can apply that random operation for each point. I use a seed to make the generation of the randomized points reproducible.

def random_nudge_points(
        seed, 
        points, 
        x_jiggle = (-2,8), 
        y_jiggle = (-1,1)
    ):
    random.seed(seed)
    mod_points = []
    for point in points:
        if type(x_jiggle) is tuple:
            r_x = random.randrange(x_jiggle[0], x_jiggle[1])
        else: 
            r_x = x_jiggle
            
        if type(y_jiggle) is tuple:
            r_y = random.randrange(y_jiggle[0], y_jiggle[1])
        else: 
            r_y = y_jiggle
            
        new_point = (point[0]+r_x,point[1]+r_y)
        mod_points.append(new_point)
        
    return mod_points


Sometimes you'll generate crap designs and the points will overlap in unintended ways. Eventually I should write some checks to make sure the modified points don't overlap. For the time being it's a good start.
20:47:18
@_discord_856491369765928971:t2bot.iomedicationforall45.png
Download 45.png
20:56:13
@_discord_856491369765928971:t2bot.iomedicationforall This image may give a better idea of how I'm cheating to make the final result. 20:56:24
@_discord_515832171047550976:t2bot.iofelix.haeberle thanks I will investigate more 23:46:23
7 Nov 2023
@_discord_856491369765928971:t2bot.iomedicationforall https://github.com/medicationforall/cqterrain/blob/main/src/cqterrain/damage/blast.py
https://github.com/medicationforall/cqterrain/blob/main/example/damage_blast.py
10:14:57
10 Nov 2023
@_discord_368107580498771978:t2bot.iozoli0246 joined the room.10:06:52
@_discord_409032375402758154:t2bot.ioArmanmV joined the room.21:13:05
11 Nov 2023
@_discord_922841153508884562:t2bot.io.jevers joined the room.01:04:27
@_discord_772095982283259925:t2bot.iogreyltc joined the room.17:02:30
@_discord_410193964809977871:t2bot.ioNat_#9350 changed their display name from Nat_#9350 to Nat a Cyborg.23:47:18
12 Nov 2023
@_discord_273278178426880001:t2bot.iokrikun98 joined the room.11:13:18
13 Nov 2023
@_discord_1173504470471155753:t2bot.iojake_57907 joined the room.06:08:23
@_discord_906511295564628008:t2bot.iojake_112358 joined the room.06:29:03
17 Nov 2023
@_discord_160126007783849986:t2bot.iodashlambdaimage.png
Download image.png
22:43:28
@_discord_160126007783849986:t2bot.iodashlambda Just got the design of a small part of a big project to the point where I'm happy with it, and I'm excited so why not post it here X3

This is a test piece for a flippy toggle switch with a removable/swappable flipper, made to be as robust as possible. Went through many revisions.
22:43:28
@_discord_160126007783849986:t2bot.iodashlambda (a spring fits over the blue and green arms, and the flipper is retained by magnets) 22:45:08
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 How large is it? How do you get it to feel right? 22:50:16
@_discord_160126007783849986:t2bot.iodashlambda20231117_175119.jpg
Download 20231117_175119.jpg
23:02:32
@_discord_160126007783849986:t2bot.iodashlambda The distance between the top and bottom axles is 1 inch, so it comes out feeling much smaller than it looks.

I went through a couple mechanisms, for this one the main things I tweaked to get it feeling right are the spring, made variants with different sizes and weights and got people's opinions.

I added the tooth in the middle to make the click more definite, the green arm's set up so the tip of the blue arm's tooth passes through the center of the fork.

Other than that it was mostly trial and error with tolerances. For the receiver assembly, which is the blue, green, and red parts at the top, I used tapers to make them feel solid when they fit together.
23:02:32
@_discord_160126007783849986:t2bot.iodashlambda Also using metal dowels for the axles makes it feel much more rigid and smooth than printed axles. 23:04:32
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 Very cool. Is it for a custom computer case? 23:05:56
@_discord_160126007783849986:t2bot.iodashlambda20231117_180815.jpg
Download 20231117_180815.jpg
23:09:29
@_discord_160126007783849986:t2bot.iodashlambda It's for a DnD tracker board!

There's gonna be a grid of these, and the removable flipper will let you customize the layout for different characters to track stuff like spell slots and ki points.

The hardest part was making the flipper easily swappable without making the whole thing too fragile, wobbly, or complicated.
23:09:29
@_discord_160126007783849986:t2bot.iodashlambda I'm gonna make different flippers with labels and stuff, and also print them in different colors. 23:10:15
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 I could have used these in my D&D game last night! 23:11:49

Show newer messages


Back to Room ListRoom Version: 9