tidy3d.components.geometry.base.Planar#
- class Planar[source]#
- Bases: - SimplePlaneIntersection,- Geometry,- ABC- Geometry with one - axisthat is slab-like with thickness- height.- Parameters:
- attrs (dict = {}) โ Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, - attrsare mutable. For example, the following is allowed for setting an- attr- obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a- TypeErrorif- attrscontain objects that can not be serialized. One can check if- attrsare serializable by calling- obj.json().
- axis (Literal[0, 1, 2] = 2) โ Specifies dimension of the planar axis (0,1,2) -> (x,y,z). 
- sidewall_angle (ConstrainedFloatValue = 0.0) โ [units = rad]. Angle of the sidewall. - sidewall_angle=0(default) specifies a vertical wall;- 0<sidewall_angle<np.pi/2specifies a shrinking cross section along the- axisdirection; and- -np.pi/2<sidewall_angle<0specifies an expanding cross section along the- axisdirection.
- reference_plane (Literal['bottom', 'middle', 'top'] = middle) โ The position of the plane where the supplied cross section are defined. The plane is perpendicular to the - axis. The plane is located at the- bottom,- middle, or- topof the geometry with respect to the axis. E.g. if- axis=1,- bottomrefers to the negative side of the y-axis, and- toprefers to the positive side of the y-axis.
 
 - Attributes - Gets the position of the center of the geometry in the out of plane dimension. - Gets the length of the geometry along the out of plane dimension. - Gets the length of the geometry along the out of plane dimension. - Methods - intersections_plane([x,ย y,ย z])- Returns shapely geometry at plane specified by one non None value of x,y,z. - Inherited Common Usage - axis#
 - sidewall_angle#
 - reference_plane#
 - abstract property center_axis#
- Gets the position of the center of the geometry in the out of plane dimension. 
 - abstract property length_axis#
- Gets the length of the geometry along the out of plane dimension. 
 - property finite_length_axis#
- Gets the length of the geometry along the out of plane dimension. If the length is td.inf, return - LARGE_NUMBER
 - intersections_plane(x=None, y=None, z=None)[source]#
- Returns shapely geometry at plane specified by one non None value of x,y,z. - Parameters:
- x (float) โ Position of plane in x direction, only one of x,y,z can be specified to define plane. 
- y (float) โ Position of plane in y direction, only one of x,y,z can be specified to define plane. 
- z (float) โ Position of plane in z direction, only one of x,y,z can be specified to define plane. 
 
- Returns:
- List[shapely.geometry.base.BaseGeometry] โ List of 2D shapes that intersect plane. For more details refer to 
 
 
 - __hash__()#
- Hash method.