Skip to content

Commit abd8d82

Browse files
committed
just remove AbstractPlotting
1 parent e30ddd8 commit abd8d82

File tree

5 files changed

+5
-92
lines changed

5 files changed

+5
-92
lines changed

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.1.0"
55

66
[deps]
77
GeometryTypes = "4d00f742-c7ba-57c2-abde-4428a4b178cb"
8-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
98
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
109
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
1110
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

src/GeometryBasics.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
module GeometryBasics
22

33
using StaticArrays, Tables, StructArrays
4-
using Requires
54

65
using Base: @propagate_inbounds
76

8-
include("FixedSizeArrays.jl")
9-
using .FixedSizeArrays
10-
7+
include("fixed_arrays.jl")
118
include("basic_types.jl")
129
include("metadata.jl")
1310
include("viewtypes.jl")
1411

15-
16-
function __init__()
17-
@require AbstractPlotting = "537997a7-5e4e-5d89-9595-2241ea00577e" include("abstractplotting.jl")
18-
end
19-
2012
end # module

src/abstractplotting.jl

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/basic_types.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const TetrahedronFace{T} = SimplexFace{4, T}
3333
Face(::Type{<: SimplexFace{N}}, ::Type{T}) where {N, T} = SimplexFace{N, T}
3434

3535

36-
3736
"""
3837
Face index, connecting points to form an Ngon
3938
"""
@@ -295,6 +294,9 @@ struct Mesh{
295294

296295
simplices::V
297296
end
297+
298+
Tables.schema(fw::Mesh) = Tables.schema(getfield(fw, :simplices))
299+
298300
column_names(fw::Mesh) = column_names(getfield(fw, :simplices))
299301
column_types(fw::Mesh) = column_types(getfield(fw, :simplices))
300302

src/FixedSizeArrays.jl renamed to src/fixed_arrays.jl

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,16 @@
1-
"""
2-
Compatibility layer for transferring from FixedSizeArrays. This provides
3-
alternative definitions of `Vec`, `Mat`, `Point`, `FixedVectorNoTuple`, `@fsa`,
4-
etc, using StaticArrays as a backend.
5-
The type definitions are not "perfect" matches because the type parameters are
6-
different. However, it should cover common method signatures and constructors.
7-
"""
8-
module FixedSizeArrays
9-
10-
using StaticArrays
11-
12-
export FixedArray
13-
export FixedVector
14-
export FixedMatrix
151
export Mat
162
export Vec
173
export Point
18-
export FixedVectorNoTuple
4+
export unit
195

20-
const FixedArray = StaticArray
21-
const FixedVector = StaticVector
22-
const FixedMatrix = StaticMatrix
236
const Mat = SMatrix
24-
const FixedVectorNoTuple = FieldVector
257

268
function unit(::Type{T}, i::Integer) where T <: StaticVector
279
T(ntuple(Val(length(T))) do j
2810
ifelse(i == j, 1, 0)
2911
end)
3012
end
3113

32-
export unit
33-
3414
macro fixed_vector(name, parent)
3515
esc(quote
3616
struct $(name){S, T} <: $(parent){S, T}
@@ -126,7 +106,3 @@ macro fixed_vector(name, parent)
126106

127107
end)
128108
end
129-
130-
export @fixed_vector
131-
132-
end

0 commit comments

Comments
 (0)