Closed XiXinping closed 8 months ago
Cannot reproduce without you sharing the steps
I have the code in a file called main.py
I run python main.py
And then run f3d result.stl
to view the model
Let me know if there's any other info you need. Thank you!
Sorry, I meant STEPs
, so STEP
files.
Ohhhhh. Sorry about that. Here they are: step_files.zip
Hey there, I'm still struggling with this issue and haven't found any way to fix it. I'd greatly appreciate if someone could let me know if there's a problem with my code or if this is an issue with Cadquery. Thanks!
In left_tubes
you have tagged two vertices. You can check the selection with.:
left_tubes.vertices(tag="bottom_left").vals()
To fix it select a single vertex for the Point constraint.
Change the selector from
.vertices("<Y and <X")
to
.vertices("<YZ")
Do the same for right_tubes
.
That seemed to fix it! Thank you! I'm not 100% sure why it generates different results randomly, but at least I know how to avoid it. Thanks again.
Hey there, I've been using CadQuery for about two weeks, and so far I've been really enjoying it. I've noticed, though, that when I run code that creates an assembly with constraints and save it to a file, the model occasionally renders completely incorrectly. If I run the exact same code with zero modifications, I've found it'll render incorrectly about once or twice per 10 runs. This seems to happen pretty randomly, and I can't think of anything that's causing it. I'm currently outputting to an STL file, but I've found the same thing happens with STEP.
Here are some pictures of what I'm talking about. This is what the model is supposed to look like:
This is one variant of the incorrect rendering:
Here's another flavor:
All three variants were produced with the same code:
I'm currently running CadQuery 2.4.0 installed via pip in a Python 3.11.5 virtual environment. I'm viewing the outputted models in F3D. My operating system is Manjaro Linux, although I've tried running it in a virtual environment on Ubuntu Server 20.04 and I've gotten the same issue. I'm wondering if anyone else can replicate this issue. I'm not sure if this is a bug, or if there's something I'm doing wrong. I'd greatly appreciate help with this. Thank you!