> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DetectAndTreatHolesParams

### *class* ansys.meshing.prime.DetectAndTreatHolesParams(model=None, detect\_and\_defeature\_edges\_near\_holes=None, detect\_circular\_holes=None, detect\_non\_circular\_holes=None, offset\_holes=None, mesh\_offset\_faces=None, detect\_holes\_params=None, detect\_circular\_holes\_params=None, detect\_non\_circular\_holes\_params=None, hole\_proximity\_tolerance=None, merge\_face\_normals\_angle=None, edge\_sharp\_corner\_angle=None, fragmented\_edge\_tolerance=None, offset\_distance=None, edge\_mesh\_constant\_size=None, surface\_mesh\_constant\_size=None, json\_data=None, \*\*kwargs)

Parameters for detect and treat holes operation.

* **Parameters:**

  **model: Model**
  : Model to create a `DetectAndTreatHolesParams` object with default parameters.

  **detect\_and\_defeature\_edges\_near\_holes: bool, optional**
  : Option to detect and defeature edges near all holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **detect\_circular\_holes: bool, optional**
  : Option to detect circular holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **detect\_non\_circular\_holes: bool, optional**
  : Option to detect non-circular holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **offset\_holes: bool, optional**
  : Option to offset holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **mesh\_offset\_faces: bool, optional**
  : Option to mesh the offset holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **detect\_holes\_params: DetectHolesParams, optional**
  : Parameters for detect holes operation.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **detect\_circular\_holes\_params: DetectCircularHolesParams, optional**
  : Parameters for detect circular holes operation.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **detect\_non\_circular\_holes\_params: DetectNonCircularHolesParams, optional**
  : Parameters for detect non circular holes operation.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **hole\_proximity\_tolerance: float, optional**
  : Edge proximity tolerance for holes.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **merge\_face\_normals\_angle: float, optional**
  : Merge faces when the normal angle between the faces is below the provided value.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **edge\_sharp\_corner\_angle: float, optional**
  : Merge edges when the angle between the edges are below the provided value.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **fragmented\_edge\_tolerance: float, optional**
  : Fragmented edge length tolerance for merging edges.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **offset\_distance: float, optional**
  : Offset distance for creating offset edge.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **edge\_mesh\_constant\_size: float, optional**
  : Constant size used for edge meshing.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **surface\_mesh\_constant\_size: float, optional**
  : Constant size used for surface meshing.

  **This is a beta parameter**. **The behavior and name may change in the future**.

  **json\_data: dict, optional**
  : JSON dictionary to create a `DetectAndTreatHolesParams` object with provided parameters.

### Examples

```python theme={null}
>>> detect_and_treat_holes_params = prime.DetectAndTreatHolesParams(model = model)
```

### Methods

| Name | Description |
| - | - |
| [`DetectAndTreatHolesParams.print_default`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.print_default)() | Print the default values of `DetectAndTreatHolesParams` object. |
| [`DetectAndTreatHolesParams.set_default`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.set_default)(\[...]) | Set the default values of the `DetectAndTreatHolesParams` object. |

### Attributes

| Name | Description |
| - | - |
| [`DetectAndTreatHolesParams.detect_and_defeature_edges_near_holes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_and_defeature_edges_near_holes) | Option to detect and defeature edges near all holes. |
| [`DetectAndTreatHolesParams.detect_circular_holes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_circular_holes) | Option to detect circular holes. |
| [`DetectAndTreatHolesParams.detect_circular_holes_params`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_circular_holes_params) | Parameters for detect circular holes operation. |
| [`DetectAndTreatHolesParams.detect_holes_params`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_holes_params) | Parameters for detect holes operation. |
| [`DetectAndTreatHolesParams.detect_non_circular_holes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_non_circular_holes) | Option to detect non-circular holes. |
| [`DetectAndTreatHolesParams.detect_non_circular_holes_params`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.detect_non_circular_holes_params) | Parameters for detect non circular holes operation. |
| [`DetectAndTreatHolesParams.edge_mesh_constant_size`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.edge_mesh_constant_size) | Constant size used for edge meshing. |
| [`DetectAndTreatHolesParams.edge_sharp_corner_angle`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.edge_sharp_corner_angle) | Merge edges when the angle between the edges are below the provided value. |
| [`DetectAndTreatHolesParams.fragmented_edge_tolerance`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.fragmented_edge_tolerance) | Fragmented edge length tolerance for merging edges. |
| [`DetectAndTreatHolesParams.hole_proximity_tolerance`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.hole_proximity_tolerance) | Edge proximity tolerance for holes. |
| [`DetectAndTreatHolesParams.merge_face_normals_angle`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.merge_face_normals_angle) | Merge faces when the normal angle between the faces is below the provided value. |
| [`DetectAndTreatHolesParams.mesh_offset_faces`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.mesh_offset_faces) | Option to mesh the offset holes. |
| [`DetectAndTreatHolesParams.offset_distance`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.offset_distance) | Offset distance for creating offset edge. |
| [`DetectAndTreatHolesParams.offset_holes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.offset_holes) | Option to offset holes. |
| [`DetectAndTreatHolesParams.surface_mesh_constant_size`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp03/api/_autosummary/ansys.meshing.prime.DetectAndTreatHolesParams.surface_mesh_constant_size) | Constant size used for surface meshing. |
