Skip to content

Commit

Permalink
update around refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Feb 14, 2024
1 parent 9f458e6 commit ca125dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,26 +152,26 @@ plot(M; controlpoints=(markersize=2,))
![](docs/src/img/rational_bspline_surface_plotly.png)

### Refinement
#### h-refinement
#### h-refinement (knot insertion)
Insert additional knots to knot vectors without changing the shape.

```julia
k₊ = (KnotVector([3.1, 3.2, 3.3]), KnotVector([0.5, 0.8, 0.9])) # additional knot vectors
M_h = refinement(M, k₊) # refinement of B-spline manifold
plot(M_h; controlpoints=(markersize=2,))
```
![](docs/src/img/rational_bspline_surface_href_plotly.png)

Note that this shape and the last shape are equivalent.
#### p-refinement (degree elevation)
Increase the polynomial degrees of B-spline manifold without changing the shape.

#### p-refinement
```julia
p₊ = (Val(1), Val(2)) # additional degrees
M_p = refinement(M, p₊) # refinement of B-spline manifold
plot(M_p; controlpoints=(markersize=2,))
```
![](docs/src/img/rational_bspline_surface_pref_plotly.png)

Note that this shape and the last shape are equivalent.

### Fitting B-spline manifold
The next example shows the fitting for [the following graph on Desmos graphing calculator](https://www.desmos.com/calculator/2hm3b1fbdf)!

Expand Down
8 changes: 4 additions & 4 deletions docs/src/math/refinement.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ nothing # hide

![](refinement_2dim_original.png)

### h-refinement
Insert additional knots to knot vector without changing the shape.
### h-refinement (knot insertion)
Insert additional knots to knot vectors without changing the shape.

```@repl math_refinement
k₊ = (KnotVector([3.3,4.2]), KnotVector([3.8,3.2,5.3])) # additional knot vectors
Expand All @@ -40,8 +40,8 @@ nothing # hide

![](refinement_2dim_h.png)

### p-refinement
Increase the polynomial degree of B-spline manifold without changing the shape.
### p-refinement (degree elevation)
Increase the polynomial degrees of B-spline manifold without changing the shape.

```@repl math_refinement
p₊ = (Val(1), Val(2)) # additional degrees
Expand Down

0 comments on commit ca125dd

Please sign in to comment.