    

 ## On this page

  

 

 # refine\_spline

 Last update: 17.07.2025 

<a id="ansys.meshing.prime.BoundaryFittedSpline.refine_spline"></a>

#### BoundaryFittedSpline.refine\_spline(part\_id, spline\_ids, refine\_spline\_params)

Refine boundary fitted splines.

Now H and P refinement are supported. Refinement along one or more dimension can be suppressed using refinement parameters in the input.

- **Parameters:**
    
    **part\_id**: Id of the part.
    
    **spline\_ids**: Ids of the splines on which refinement is performed.
    
    **refine\_spline\_params**: Structure containing parameters for spline refinement.
- **Returns:**
    
    [`IGAResults`](ansys.meshing.prime.IGAResults.md#ansys.meshing.prime.IGAResults): Returns the IGAResults Structure.
- **Return type:**
    
    [`IGAResults`](ansys.meshing.prime.IGAResults.md#ansys.meshing.prime.IGAResults)

### Examples

```pycon
&gt;&gt;&gt; from ansys.meshing.prime import BoundaryFittedSpline
&gt;&gt;&gt; #connect client to server and get model from it
&gt;&gt;&gt; client = Client(ip="localhost", port=50060)
&gt;&gt;&gt; model = client.model
&gt;&gt;&gt; boundary_fitted_spline = BoundaryFittedSpline(model = model)
&gt;&gt;&gt; results = boundary_fitted_spline.refine_spline(part_id, spline_ids, refine_spline_params)

```