We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

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