changeset 1914:e7f8d11c4670 feature/grids/manifolds

Delete functions related to geometries as they don't belong on this branch
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 03 Feb 2025 15:39:26 +0100
parents e97f4352b8d0
children c003685d9926 27a2d37ff3b4
files src/Grids/manifolds.jl test/Grids/manifolds_test.jl
diffstat 2 files changed, 0 insertions(+), 94 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/manifolds.jl	Sat Feb 01 23:20:31 2025 +0100
+++ b/src/Grids/manifolds.jl	Mon Feb 03 15:39:26 2025 +0100
@@ -72,73 +72,3 @@
 
 charts(a::UnstructuredAtlas) = a.charts
 connections(a::UnstructuredAtlas) = nothing
-
-
-###
-# Geometry
-###
-
-abstract type Curve end
-abstract type Surface end
-
-
-struct Line{PT} <: Curve
-    p::PT
-    tangent::PT
-end
-
-(c::Line)(s) = c.p + s*c.tangent
-
-
-struct LineSegment{PT} <: Curve
-    a::PT
-    b::PT
-end
-
-(c::LineSegment)(s) = (1-s)*c.a + s*c.b
-
-
-function linesegments(ps...)
-    return [LineSegment(ps[i], ps[i+1]) for i ∈ 1:length(ps)-1]
-end
-
-
-function polygon_edges(ps...)
-    n = length(ps)
-    return [LineSegment(ps[i], ps[mod1(i+1,n)]) for i ∈ eachindex(ps)]
-end
-
-struct Circle{T,PT} <: Curve
-    c::PT
-    r::T
-end
-
-function (C::Circle)(θ)
-    (;c, r) = C
-    c + r*@SVector[cos(θ), sin(θ)]
-end
-
-struct TransfiniteInterpolationSurface{T1,T2,T3,T4} <: Surface
-    c₁::T1
-    c₂::T2
-    c₃::T3
-    c₄::T4
-end
-
-function (s::TransfiniteInterpolationSurface)(u,v)
-    c₁, c₂, c₃, c₄ = s.c₁, s.c₂, s.c₃, s.c₄
-    P₀₀ = c₁(0)
-    P₁₀ = c₂(0)
-    P₁₁ = c₃(0)
-    P₀₁ = c₄(0)
-    return (1-v)*c₁(u) + u*c₂(v) + v*c₃(1-u) + (1-u)*c₄(1-v) - (
-        (1-u)*(1-v)*P₀₀ + u*(1-v)*P₁₀ + u*v*P₁₁ + (1-u)*v*P₀₁
-    )
-end
-
-function (s::TransfiniteInterpolationSurface)(ξ̄::AbstractArray)
-    s(ξ̄...)
-end
-
-# TODO: Implement jacobian() for the different mapping helpers
-
--- a/test/Grids/manifolds_test.jl	Sat Feb 01 23:20:31 2025 +0100
+++ b/test/Grids/manifolds_test.jl	Mon Feb 03 15:39:26 2025 +0100
@@ -43,27 +43,3 @@
 @testset "UnstructuredAtlas" begin
     @test_broken false
 end
-
-@testset "Line" begin
-    @test_broken false
-end
-
-@testset "LineSegment" begin
-    @test_broken false
-end
-
-@testset "linesegments" begin
-    @test_broken false
-end
-
-@testset "polygon_edges" begin
-    @test_broken false
-end
-
-@testset "Circle" begin
-    @test_broken false
-end
-
-@testset "TransfiniteInterpolationSurface" begin
-    @test_broken false
-end