pyOptiShared.LayerInfo.LayerInfo
- class pyOptiShared.LayerInfo.LayerInfo
Bases:
object
This class defines a layer. Layers are used to construct layer stack and set the material properties of objects (geometries) definned inside a particular layer. Required properties are: number (must match that of a GDS or STL file), a material (that defines the properties of objects in the layer), a thickness, and a starting point, zmin, along the z-axis in which the object will extrude to.
Methods
GetOffset
(z, zmin, zmax, layer, datatype)This is the base offset calculating function.
GetOffsetAng
(z, zmin, zmax, layer, datatype)This is the method used to determine the straight offset whe sw_ang is different than zero.
Return fabrication tolerance information:
Attributes
The material assigned to empty regions inside the layer.
The name of the cladding material.
Layer number.
Layer thickness (along z).
The base material assign to objects inside the layer.
The name of the base material of the layer.
Defines the tilt angle of the side wall linear profile.
The side wall function.
The point in z where the layer ends.
The point in z where the layer starts.
- static GetOffset(z: float, zmin: float, zmax: float, layer: int, datatype: int) → float
This is the base offset calculating function. This is used to determine the offset of a given polygon at a particlar z locaiton inside the layer. All user defined GetOffset functions passed as arguments for sw_func must follow this method’s signature. A negative offset erodes the polygons (shrinks them), a positive offset dilates the polygons (expand them).
- Parameters:
- Returns:
The offset value at z.
- Return type:
- GetOffsetAng(z: float, zmin: float, zmax: float, layer: int, datatype: int) → float
This is the method used to determine the straight offset whe sw_ang is different than zero. It follows the same signature as the GetOffset method.
- Parameters:
- Returns:
The offset value at z.
- Return type:
- GetTolInfo() → tuple[float, int]
- Return fabrication tolerance information:
A tuple containing the fabrication tolerance and the number of points to sweep.
- property cladd_material
The material assigned to empty regions inside the layer. It can override the background material properties inside the layer.
- Return type:
- property sw_ang
Defines the tilt angle of the side wall linear profile.
It is later used to define the side wall function that calculates a particular offset given inputs like z value, along the thickness of the layer.
- Return type: