jalovisko / LatticeQuery

Modeling of heterogeneous lattice structures with Open CASCADE
Apache License 2.0
12 stars 0 forks source link

questions #11

Open binfengjiao opened 7 months ago

binfengjiao commented 7 months ago

Hello, I would like to ask the following two questions:

  1. Why do I run the code and get a single lattice instead of a combined number of lattices?
  2. An error is reported after running the given code: raise ValueError(f"Invalid constraint {c}") ValueError: Invalid constraint [1.0, 1.0, 1.0] 进程已结束,退出代码为 1 截图_20240308150713
binfengjiao commented 7 months ago

For example: Nx = 1,Ny = 1,Nz = 2,but I can only get a lattice, such as: 截图_20240308164506 截图_20240308164539

jalovisko commented 7 months ago

Hello @binfengjiao !

These are a bit hard to debug without further information on the system, such as the OS you use, but I have seen it in cases with newer versions of CadQuery due to differences in how surfaces are constructed from wires. Can you confirm that you are running cadquery=2.1 as specified in the lqgui_env.yml file in this repo? Do you use the code from CQ-editor or from this repository for running the GUI? Can you provide more info on your system, environment, Python version, etc.?

Here are some screenshots of similar things built with similar conditions: image image

binfengjiao commented 6 months ago

1 I get an error when I run the code in CQ-editor

binfengjiao commented 6 months ago

I'm using Windows, The python version is 3.11.4

2