martinmi
Subscriber

Hi Taylor, 

Thanks for the reply! After many tries I just found the right data type for the facets. So if someone creates a planarsolid object with Python, the vertices and facets should be defined as follows:

  1.  vtx = np.array([[0,0,0], [1e-6,0,0], [1e-6,1e-6,0], [0,1e-6,0], [0,0,1e-6], [1e-6,0,1e-6], [1e-6,1e-6,1e-6], [0,1e-6,1e-6]])
  2. a = [[np.array([[1,4,3,2]], dtype = object)], [np.array([[1,5,8,4]], dtype = object)], [np.array([[1,2,6,5]], dtype = object)], [np.array([[2,6,7,3]], dtype = object)], [np.array([[3,4,8,7]], dtype = object)], [np.array([[5,6,7,8]], dtype = object)]]

After that, as you have already mentioned, you need(can) pass the facets and vertices to Lumerical Workspace:

lum.putv('vertices',vtx)
lum.putv('facets',a)

And then use lum.addplanarsolid(vtx,a),

I have run into another problem, this time I think it is more of a problem with the Lumerical Visualization option. So after I create the structure I want, for example a taper, I can't see one of the sides of the taper. Then when I rotate the object in Lumerical, some of the sides of the taper disappear in a certain position and then come back after I rotate the object back. Do you know if this is a problem that could affect my simulation results or is it more of a Lumerical Visualization problem? I have attached some photos that I took while rotating my taper. All the pictures are from the same object, but taken from a different object rotation angle.

 

Best Regards,

Martin