!tBPyYyjOQgVzlwFvEI:matrix.org

CadQuery Showcase

575 Members
3 Servers

Load older messages


SenderMessageTime
6 Jan 2024
@_discord_565948985630785578:t2bot.iobarnabyw 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.iobernhard42 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
@_discord_825395471031861309:t2bot.iobernhard42 The funny thing is, "show_all" was built for visual debugging only, but many people use it as their default show command. I didn't expect that 😂 22:02:33
@_discord_565948985630785578:t2bot.iobarnabyw “always show (almost) everything” is the default behaviour of any GUI CAD software, so it doesn’t surprise me that people like show_all() so much 22:04:46
@_discord_825395471031861309:t2bot.iobernhard42 The nice thing about build123d and ocp_vscode, these helpers usually can be built easily.
In algebra mode, I love to see locations, planes and axes by default.
22:43:04
@_discord_565948985630785578:t2bot.iobarnabyw yep, it’s like having a CAD program which you can easily script UI improvements for! 22:44:31
7 Jan 2024
@_discord_644607511088857107:t2bot.ioRed Sand Robot joined the room.00:11:30
@_discord_399898718817484812:t2bot.ioAntti Tuominen now in b3d, 01:39:59
@_discord_399898718817484812:t2bot.ioAntti Tuominenimage.png
Download image.png
01:40:24
@_discord_399898718817484812:t2bot.ioAntti Tuominen20240107_030712.jpg
Download 20240107_030712.jpg
01:40:39
@_discord_399898718817484812:t2bot.ioAntti Tuominen20240107_031905.jpg
Download 20240107_031905.jpg
01:40:40
@_discord_515832171047550976:t2bot.iofelix.haeberle Bike Mount 07:42:00
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 Is it made from laser cut carbon fibre? 12:51:24
@_discord_399898718817484812:t2bot.ioAntti Tuominen TPU :D 13:29:11
@_discord_399898718817484812:t2bot.ioAntti Tuominen20240107_152950.jpg
Download 20240107_152950.jpg
13:30:25
@_discord_399898718817484812:t2bot.ioAntti Tuominen Just a textured sheet 13:30:26
@_discord_896482168103125002:t2bot.ioRoger Maitland#7070 Nicely done 😀 13:31:02
@_discord_958400055889510440:t2bot.ioclairbee It's been two weeks since the initial version of PartCAD was released. Check out how far it has gone on https://github.com/openvmp/partcad/ . Now with Assembly YAML and OpenSCAD support. Parametrized parts and more intuitive ways of joining parts into an assembly are coming up next. 19:56:54
@_discord_431819838986387457:t2bot.ionibnibs joined the room.20:12:55
@_discord_209043174960660490:t2bot.ioJern#4673 https://jdegenstein.github.io/parts-build123d/ was able to set up a test page here! thanks for setting it up 23:22:16
8 Jan 2024
@_discord_435510354634866688:t2bot.iokaljr. joined the room.01:06:55
@_discord_209043174960660490:t2bot.ioJern#4673image.png
Download image.png
03:08:18

Show newer messages


Back to Room ListRoom Version: 9