!tBPyYyjOQgVzlwFvEI:matrix.org

CadQuery Showcase

573 Members
3 Servers

Load older messages


SenderMessageTime
3 Jan 2024
@_discord_425108579540795393:t2bot.ioshehabattia96 not sure if that would work on engineering models that need to be precise, but possibly on more artistic ones 22:51:17
@_discord_856491369765928971:t2bot.iomedicationforallPXL_20240103_205310880.jpg
Download PXL_20240103_205310880.jpg
23:25:59
@_discord_856491369765928971:t2bot.iomedicationforall19_palenite.png
Download 19_palenite.png
23:26:00
@_discord_856491369765928971:t2bot.iomedicationforallPXL_20240103_204956834.jpg
Download PXL_20240103_204956834.jpg
23:26:01
@_discord_856491369765928971:t2bot.iomedicationforall Made a display stand for more mini's I'll post later when the whole kit get's painted. 23:26:02
4 Jan 2024
@_discord_629036863977422869:t2bot.iolishine1 joined the room.10:23:48
@_discord_1192466041360629810:t2bot.ioregattaguru_70755 joined the room.13:55:05
@_discord_1177689617521188924:t2bot.ioregattaguru joined the room.13:57:37
@_discord_1191889870625456139:t2bot.iojackfairhaven joined the room.15:11:09
5 Jan 2024
@_discord_1063508683406987356:t2bot.iomeneelyt joined the room.12:17:21
@_discord_900568854047100928:t2bot.ioewald7730 joined the room.15:08:42
@_discord_493464753323114505:t2bot.iomofef joined the room.22:26:10
@_discord_343251468335185923:t2bot.iorlane joined the room.23:59:40
6 Jan 2024
@_discord_298140820572340235:t2bot.ioring_raitch joined the room.19:19:00
@_discord_277205859635822593:t2bot.ioyeicorScreenshot_20240106_203046.png
Download Screenshot_20240106_203046.png
19:35:09
@_discord_277205859635822593:t2bot.ioyeicor I made this bike handlebar/stem mount. Sources and 3D viewer here: https://github.com/yeicor-3d/bike-stem-mount

I'm still learning, so any tips or suggestions on how to improve the code are more than welcome!
19:35:09
@_discord_565948985630785578:t2bot.iobarnaby very impressive! how are you going to manufacture it? looks like it’d be quite a task to 3D print 19:40:37
@_discord_277205859635822593:t2bot.ioyeicor The top is not finished, I will add a flat surface with holes to actually mount stuff. I will use that flat surface as the bottom of the print. I don't have a solution for the screw holes other than add supports as necessary and hope for the best. 19:43:33
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 Your site if very impressive as well. How do you create the interactive 3D view? 19:44:39
@_discord_277205859635822593:t2bot.ioyeicor I made a GitHub Action that takes care of building the models, generating that website and previews for all my projects. You can check it out here: https://github.com/Yeicor/ocp-action 19:48:41
@_discord_565948985630785578:t2bot.iobarnaby very interesting. I’m planning on putting my codecad repo on github soon, I will look into using that or something similar for it 19:49:55
@_discord_277205859635822593:t2bot.ioyeicor Sure, go ahead 19:57:18
@_discord_277205859635822593:t2bot.ioyeicor I am using ocp-vscode with the show_all function, and I found it easier to delete old "helper" objects than toggle their visibility in the interface 19:58:54
@_discord_277205859635822593:t2bot.ioyeicor * I am using ocp-vscode with the show_all function, and I found it easier to delete old "helper" objects than to toggle their visibility in the interface 19:59:09
@_discord_186253289476587521:t2bot.ioDraek#9615 Ah I see, fair point ! 19:59:10
@_discord_217311013400346625:t2bot.iophilipsd6 I do that too— the alternative iirc is to keep a list of objects to show and pass that into the show function. Because sometimes when troubleshooting I want to still show a helper object. But for the final version del makes sense. 20:00:54
@_discord_515832171047550976:t2bot.iofelix.haeberle Hi yeicor I love your project.
I started to read through the code and you wanted feedback so I write some questions here:

1. Is there a reason why you use the del function extensively

(Python would not need it, because it does its own garbage collection (but maybe there is a good reason why you do it...)

2. concerning handlebar_side_xy = (80, 25) # (center, start) and handlebar_size = (10, wall) # (width, height) I personally would find the code more readable if you would not use tuples here. The references with [0] and [1] are more cryptic (indirect) than a real name (data classes and named tuples might be something that you could use)

3. do you know that the python script can use a
if __name__ === "__main__":  
   ... do something if the script is run directly
else: 
    .... do the stuff for importing it

Many python scripts use this for calling a function like main, but the concept can also be applied during the import phase.
I really like your concept with the to_fillet. I was not aware that this works the way you do it.
Furthermore is the split a nice.
21:03:35
@_discord_515832171047550976:t2bot.iofelix.haeberle * Hi yeicor I love your project.
I started to read through the code and you wanted feedback so I write some questions here:

1. Is there a reason why you use the del function extensively

(Python would not need it, because it does its own garbage collection (but maybe there is a good reason why you do it...)

ok that was already answered this is a neat trick.

2. concerning handlebar_side_xy = (80, 25) # (center, start) and handlebar_size = (10, wall) # (width, height) I personally would find the code more readable if you would not use tuples here. The references with [0] and [1] are more cryptic (indirect) than a real name (data classes and named tuples might be something that you could use)

3. do you know that the python script can use a
if __name__ === "__main__":  
   ... do something if the script is run directly
else: 
    .... do the stuff for importing it

Many python scripts use this for calling a function like main, but the concept can also be applied during the import phase.
I really like your concept with the to_fillet. I was not aware that this works the way you do it.
Furthermore is the split a nice.
21:04:15
@_discord_277205859635822593:t2bot.ioyeicor 2. Yes, that would definitely help readability. Thanks!

3. I did not think of that. However, when I import a script I want to run all of its code in order to generate the part, and when I run the script I want to generate the part and also call ocp_vscode.show_all(); so I guess I wouldn't gain anything by restructuring the code in this case.
21:39:28
@_discord_825395471031861309:t2bot.iobernhard#0011 Yes, I also use del for this case. On the other side, if you de-select a variable the viewer keeps it de-selected across runs, which is helpful for re-running code after changes 22:01:09

Show newer messages


Back to Room ListRoom Version: 9