File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11
11
from gdsfactory .technology import LayerStack
12
12
from skfem .io import from_meshio
13
13
14
- from gplugins .gmsh . mesh import create_physical_mesh , get_mesh
14
+ from gplugins .gmsh import create_physical_mesh , get_mesh
15
15
16
16
gf .config .rich_output ()
17
17
PDK = get_generic_pdk ()
Original file line number Diff line number Diff line change 18
18
)
19
19
20
20
21
- def define_entities (model , shapes_dict : OrderedDict , atol = 1e-3 ):
21
+ def define_entities (model , shapes_dict : OrderedDict , atol : float = 1e-3 ):
22
22
"""Adds the polygons and lines from a "shapes_dict" as physical entities in the pygmsh model "model".
23
23
24
24
Args:
@@ -127,7 +127,7 @@ def mesh_from_polygons(
127
127
verbosity : bool | None = False ,
128
128
atol : float | None = 1e-4 ,
129
129
periodic_lines : tuple [(str , str )] | None = None ,
130
- ):
130
+ ) -> meshio . Mesh :
131
131
"""Return a 2D mesh from an ordered dict of shapely polygons.
132
132
133
133
Args:
@@ -222,7 +222,7 @@ def mesh_from_polygons(
222
222
return mesh
223
223
224
224
225
- def create_physical_mesh (mesh , cell_type ):
225
+ def create_physical_mesh (mesh , cell_type ) -> meshio . Mesh :
226
226
cells = mesh .get_cells_type (cell_type )
227
227
cell_data = mesh .get_cell_data ("gmsh:physical" , cell_type )
228
228
points = mesh .points
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ def create_2D_surface_interface(
176
176
layer_polygons: shapely polygons.
177
177
thickness_min: distance to define the interfacial region towards the polygon.
178
178
thickness_max: distance to define the interfacial region away from the polygon.
179
- simplify: simplification factor for over-parametrized geometries
179
+ simplify: simplification factor for over-parametrized geometries.
180
180
181
181
Returns:
182
182
shapely interface polygon
You can’t perform that action at this time.
0 commit comments