changeset 1916:6859089b361e feature/grids/geometry_functions

Remove abstract types for Curve and surface
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 03 Feb 2025 15:44:07 +0100
parents c003685d9926
children 6c1bb9bdb092
files src/Grids/geometry.jl
diffstat 1 files changed, 4 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/geometry.jl	Mon Feb 03 15:43:00 2025 +0100
+++ b/src/Grids/geometry.jl	Mon Feb 03 15:44:07 2025 +0100
@@ -1,12 +1,4 @@
-###
-# Geometry
-###
-
-abstract type Curve end
-abstract type Surface end
-
-
-struct Line{PT} <: Curve
+struct Line{PT}
     p::PT
     tangent::PT
 end
@@ -14,7 +6,7 @@
 (c::Line)(s) = c.p + s*c.tangent
 
 
-struct LineSegment{PT} <: Curve
+struct LineSegment{PT}
     a::PT
     b::PT
 end
@@ -32,7 +24,7 @@
     return [LineSegment(ps[i], ps[mod1(i+1,n)]) for i ∈ eachindex(ps)]
 end
 
-struct Circle{T,PT} <: Curve
+struct Circle{T,PT}
     c::PT
     r::T
 end
@@ -42,7 +34,7 @@
     c + r*@SVector[cos(θ), sin(θ)]
 end
 
-struct TransfiniteInterpolationSurface{T1,T2,T3,T4} <: Surface
+struct TransfiniteInterpolationSurface{T1,T2,T3,T4}
     c₁::T1
     c₂::T2
     c₃::T3