# Corner Finder Specification

Corner Finder Specification defines which in-plane geometry corners and edges are detected before corner snapping, corner refinement, or edge refinement is applied.

This object corresponds to tidy3d.CornerFinderSpec (opens new window).

Corner detection is used by the corner_finder controls in layer refinement.

# Medium

medium: Medium type considered by the corner finder.

  • GUI label: Medium
  • Options: Metal/Dielectric/All
  • Default: Metal

# Angle Threshold

angle_threshold: Angle threshold used to qualify a vertex as a corner.

  • GUI label: Angle threshold
  • Type: floating-point number
  • Unit: deg (default unit), rad
  • Default: 45 deg

# Distance Threshold

distance_threshold: Optional distance threshold used to disqualify vertices that are too close to neighboring vertices.

  • GUI label: Distance threshold
  • Type: floating-point number
  • Unit: m, mm (default unit), um

# Concave Resolution

concave_resolution: Number of steps used to determine dl_min for concave features.

  • GUI label: Concave resolution
  • Type: integer

# Convex Resolution

convex_resolution: Number of steps used to determine dl_min for convex features.

  • GUI label: Convex resolution
  • Type: integer

# Mixed Resolution

mixed_resolution: Number of steps used to determine dl_min for mixed concave-convex features.

  • GUI label: Mixed resolution
  • Type: integer

# Axis Angle Tolerance

axis_aligned_angle_threshold: Maximum angle from the nearest in-plane axis for an edge to be treated as axis-aligned.

  • GUI label: Axis angle tolerance
  • Type: floating-point number
  • Unit: deg (default unit), rad
  • Default: 1 deg
  • Required field

Axis-aligned edges are already handled by corner refinement. Refine near edges applies to the remaining axis-unaligned edges.

# Corner Collapse Size

corner_rounding_collapse_extent: Maximum local in-plane extent of a small rounded or chamfered corner that can be recovered as a sharp corner at the intersection of its supporting edges.

  • GUI label: Corner collapse size
  • Type: floating-point number
  • Constraint: greater than 0
  • Default: None

Leave this field empty to disable rounded-corner collapse.

NOTE

If a corner resolution field is empty, the corresponding dl_min reduction is not applied.