Ansys Learning Forum Forums Discuss Simulation Photonics Adding new structure to lumerical via Python using ‘addplanarsolid’ Reply To: Adding new structure to lumerical via Python using ‘addplanarsolid’

jordankim
Subscriber
Thank you for your advice
I have tried to convert the facets variable "a" to matrix, before that I also have converted the facets variable in "Planar solid" script from cell array to matrix in order to apply this method to our project.
I'm finally do it, so I don't have no error code in my python script.
But As I open the lumerical fsp file from python file, I can't see Any completed solid structure like this image
Any help would be appreciated

facet(matrix)
[[ 1.9. 15.]
[ 4. 10. 16.]
[ 3. 11. 17.]
[ 2.0.0.]]
[[1. 0. 0.]
[5. 0. 0.]
[8. 0. 0.]
[4. 0. 0.]]
.
.
.
[[15.0.0.]
[17.0.0.]
[20.0.0.]
[18.0.0.]]
[[17.0.0.]
[16.0.0.]
[19.0.0.]
[20.0.0.]]

As a result of checking, I think it is same in lumerical script facet matrix