We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 156a560 + 53ad883 commit c5e06caCopy full SHA for c5e06ca
1 file changed
gplugins/meshwell/get_meshwell_cross_section.py
@@ -131,10 +131,17 @@ def get_meshwell_cross_section(
131
else:
132
raise ValueError("name_by must be 'layer' or 'material'")
133
134
+ # Determine mesh order (use layer info if available, otherwise default to layer level mesh order)
135
+ if layer_level.info is not None and "mesh_order" in layer_level.info:
136
+ # cspdk LayerStack has the mesh_order in the info dict, override default mesh_order if specified there
137
+ mesh_order = layer_level.info["mesh_order"]
138
+ else:
139
+ mesh_order = layer_level.mesh_order
140
+
141
surface = PolySurface(
142
polygons=cross_section_polygons,
143
physical_name=physical_name,
- mesh_order=layer_level.mesh_order,
144
+ mesh_order=mesh_order,
145
mesh_bool=True,
146
additive=False
147
)
0 commit comments