Ansys Learning Forum Forums Discuss Simulation Photonics Creating a polygon with tilted sidewalls via python API Reply To: Creating a polygon with tilted sidewalls via python API

Kirill
Ansys Employee

Hello Matthias,

It seems you are not able to complete the layer setting with

mode.set("geometry", {"1:0": vertices})


Try to use

mode.set("geometry", {"1:0": [vertices]})

instead and see if it helps.

Also, since you're calculating the vertices yourself, you can pass them directly to the LayerBuilder without the need to create an extruded polygon.

Best regards,
Kirill