Skip to content

Commit

Permalink
Use paramdim for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Nov 30, 2024
1 parent f4518c8 commit 3ce948c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/specializations/Line.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function integral(
)
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]
paramfunction(t) = _parametric(line, t)
param_line = _ParametricGeometry(paramfunction, Meshes.paramdim(line))

# Integrate the _ParametricGeometry using the standard methods
return _integral(f, param_line, rule; kwargs...)
Expand Down
1 change: 1 addition & 0 deletions src/specializations/Plane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function integral(
)
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]²
paramfunction(t1, t2) = _parametric(plane, t1, t2)
param_plane = _ParametricGeometry(paramfunction, Meshes.paramdim(plane))

# Integrate the _ParametricGeometry using the standard methods
return _integral(f, param_plane, rule; kwargs...)
Expand Down
1 change: 1 addition & 0 deletions src/specializations/Ray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function integral(
)
# Generate a _ParametricGeometry whose parametric function spans the domain [0, 1]
paramfunction(t) = _parametric(ray, t)
param_ray = _ParametricGeometry(paramfunction, Meshes.paramdim(ray))

# Integrate the _ParametricGeometry using the standard methods
return _integral(f, param_ray, rule; kwargs...)
Expand Down

0 comments on commit 3ce948c

Please sign in to comment.