-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotating geometries does not work #1538
Comments
Thanks for the report, @samuelkim16 Geometry transformations can't yet handle I'll see if/how we can implement proper handling of |
Signed-off-by: Lucas Heitzmann Gabrielli <lucas@flexcompute.com>
Thank you for the reply! For the box, I replaced it with the following lines: box_geom = td.Box(center=[0, 0, 0], size=[2, 100, 1])
box_geom = box_geom.rotated(axis=[0, 0, 1], angle=np.pi/4) but I am still getting the I am on tidy3d version 2.5.2 |
Strange, I can't reproduce this error. Do you have all your dependencies updated? In particular shapely and trimesh are heavily used for transformations. |
Strange. I updated shapely from 2.0.2 to 2.0.3, and trimesh from 4.0.9 to 4.2.0, and I am still getting the same error. |
Ok, I see the problem. Your trimesh is actually too recent! We fix trimesh version at 3.20 (see the requirements file). It seems |
Ah perfect, that was it! Thank you for your help! Are there any plans to upgrade to trimesh 4+? One of the other packages (gdsfactory) lists >=4 as a requirement, although I haven't played around with it yet to see if downgrading to 3.20 breaks anything in gdsfactory. |
That was not on our roadmap, but I've just created the necessary ticket (#1544) to investigate all the places where we use it and how it can be upgraded! |
Signed-off-by: Lucas Heitzmann Gabrielli <lucas@flexcompute.com>
I'm unable to rotate geometries - or rather, the simulation seems to build just fine but I'm unable to plot simulations with rotated geometries. I have not tried running the simulation yet. It seems that the objects are somehow being transformed to on or outside the simulation boundaries, which may be messing up the simulation?
which gives the below error message
If I uncomment the line to rotate the
box
rather than thepoly
, it gives a different error message:Note that without rotation, I expect the plot to look something like the below:
The text was updated successfully, but these errors were encountered: