Skip to content

Geometry visualization issue after clip operation and rotation #2560

Open
@FilipeFcp

Description

@FilipeFcp

After subtracting one geometry from another of the same size along a given dimension and rotating the object, a one-pixel artifact appears in the plot:

Image

To Reproduce

 import tidy3d as td

box  = td.Box(center = (0,-9.01,10),
              size = (10,0.01,10))
cylinder = td.Cylinder(radius = 9,
                       center = (0,-9.01,0),
                       length=0.01,
                       axis = 1)
ax = (box-cylinder).plot(x=0)
ax.set_aspect('auto')
ax = (box-cylinder).rotated(np.pi/2,axis = 0).plot(x=0)
ax.set_aspect('auto') 

Expected behavior
Adding a small extra value for the length argument of the cylinder produces the expected behavior: length=0.01+ 0.01

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions