Sg/calc angles #197
Annotations
9 warnings
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L46
failed to run `@example` block in src/source/methods/barycentric.md:28-102
```@example barycentric
import GeometryOps as GO
using GeometryOps.GeometryBasics
using Makie
using CairoMakie
# Define a polygon
polygon_points = Point3f[
(0.03, 0.05, 0.00), (0.07, 0.04, 0.02), (0.10, 0.04, 0.04),
(0.14, 0.04, 0.06), (0.17, 0.07, 0.08), (0.20, 0.09, 0.10),
(0.22, 0.11, 0.12), (0.25, 0.11, 0.14), (0.27, 0.10, 0.16),
(0.30, 0.07, 0.18), (0.31, 0.04, 0.20), (0.34, 0.03, 0.22),
(0.37, 0.02, 0.24), (0.40, 0.03, 0.26), (0.42, 0.04, 0.28),
(0.44, 0.07, 0.30), (0.45, 0.10, 0.32), (0.46, 0.13, 0.34),
(0.46, 0.19, 0.36), (0.47, 0.26, 0.38), (0.47, 0.31, 0.40),
(0.47, 0.35, 0.42), (0.45, 0.37, 0.44), (0.41, 0.38, 0.46),
(0.38, 0.37, 0.48), (0.35, 0.36, 0.50), (0.32, 0.35, 0.52),
(0.30, 0.37, 0.54), (0.28, 0.39, 0.56), (0.25, 0.40, 0.58),
(0.23, 0.39, 0.60), (0.21, 0.37, 0.62), (0.21, 0.34, 0.64),
(0.23, 0.32, 0.66), (0.24, 0.29, 0.68), (0.27, 0.24, 0.70),
(0.29, 0.21, 0.72), (0.29, 0.18, 0.74), (0.26, 0.16, 0.76),
(0.24, 0.17, 0.78), (0.23, 0.19, 0.80), (0.24, 0.22, 0.82),
(0.24, 0.25, 0.84), (0.21, 0.26, 0.86), (0.17, 0.26, 0.88),
(0.12, 0.24, 0.90), (0.07, 0.20, 0.92), (0.03, 0.15, 0.94),
(0.01, 0.10, 0.97), (0.02, 0.07, 1.00)]
# Plot it!
# First, we'll plot the polygon using Makie's rendering:
f, a1, p1 = poly(
polygon_points;
color = last.(polygon_points), colormap = cgrad(:jet, 18; categorical = true),
axis = (;
aspect = DataAspect(), title = "Makie mesh based polygon rendering", subtitle = "CairoMakie"
),
figure = (; resolution = (800, 400),)
)
Makie.update_state_before_display!(f) # We have to call this explicitly, to get the axis limits correct
# Now that we've plotted the first polygon,
# we can render it using barycentric coordinates.
a1_bbox = a1.finallimits[] # First we get the extent of the axis
ext = GeometryOps.GI.Extent(NamedTuple{(:X, :Y)}(zip(minimum(a1_bbox), maximum(a1_bbox))))
a2, p2box = poly( # Now, we plot a cropping rectangle around the axis so we only show the polygon
f[1, 2],
GeometryOps.GeometryBasics.Polygon( # This is a rectangle with an internal hole shaped like the polygon.
Point2f[(ext.X[1], ext.Y[1]), (ext.X[2], ext.Y[1]), (ext.X[2], ext.Y[2]), (ext.X[1], ext.Y[2]), (ext.X[1], ext.Y[1])],
[reverse(Point2f.(polygon_points))]
);
color = :white, xautolimits = false, yautolimits = false,
axis = (;
aspect = DataAspect(), title = "Barycentric coordinate based polygon rendering", subtitle = "GeometryOps",
limits = (ext.X, ext.Y),
)
)
hidedecorations!(a1)
hidedecorations!(a2)
cb = Colorbar(f[2, :], p1.plots[1]; vertical = false, flipaxis = true)
# Finally, we perform barycentric interpolation on a grid,
xrange = LinRange(ext.X..., widths(a2.scene.px_area[])[1] * 4) # 2 rendered pixels per "physical" pixel
yrange = LinRange(ext.Y..., widths(a2.scene.px_area[])[2] * 4) # 2 rendered pixels per "physical" pixel
@time mean_values = barycentric_interpolate.(
(MeanValue(),), # The barycentric coordinate algorithm (MeanValue is the only one for now)
(Point2f.(polygon_points),), # The polygon points as `Point2f`
(last.(polygon_points,),), # The values per polygon point - can be anything which supports addition and division
Point2f.(xrange, yrange') # The points at which to interpolate
)
# and render!
hm = heatmap!(
a2, xrange, yrange, mean_values;
colormap = p1.colormap, # Use the same colormap as the original polygon plot
colorrange = p1.plots[1].colorrange[], # Access the rendered mesh plot's colorrange directly
transformation = (; translation = Vec3f(0,0,-1)), # This gets the heatmap to render "behind" the previously plotted polygon
xautolimits = false, yautolimits = false
)
f
```
exception =
MethodError: no method matching initialize_block!(::LScene; aspect::DataAspect, title::String, subtitle::String)
Closest candidates are:
initialize_block!(::LScene; scenekw) got unsupported keyword arguments "aspect", "title", "subtitle"
@ Makie ~/.julia/packages/Makie/fyNiH/sr
|
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L46
failed to run `@example` block in src/source/methods/distance.md:35-39
```@example rect
GO.distance(point_in, poly) # == 0
GO.signed_distance(point_in, poly) # < 0
GO.signed_distance(point_out, poly) # > 0
```
exception =
MethodError: no method matching iterate(::typeof(poly))
Closest candidates are:
iterate(!Matched::Attributes, Any...)
@ MakieCore ~/.julia/packages/MakieCore/5nuEY/src/attributes.jl:38
iterate(!Matched::Base.MethodSpecializations)
@ Base reflection.jl:1148
iterate(!Matched::Base.MethodSpecializations, !Matched::Nothing)
@ Base reflection.jl:1154
...
Stacktrace:
[1] _foldl_impl(op::Base.MappingRF{GeometryOps.var"#30#31"{Float64, GeometryOps.var"#102#103"{Float64, GeoInterface.PointTrait, Tuple{Float64, Float64}}, typeof(min), Union}, Base.BottomRF{typeof(min)}}, init::Float64, itr::Function)
@ Base ./reduce.jl:56
[2] foldl_impl(op::Base.MappingRF{GeometryOps.var"#30#31"{Float64, GeometryOps.var"#102#103"{Float64, GeoInterface.PointTrait, Tuple{Float64, Float64}}, typeof(min), Union}, Base.BottomRF{typeof(min)}}, nt::Float64, itr::Function)
@ Base ./reduce.jl:48
[3] mapfoldl_impl(f::GeometryOps.var"#30#31"{Float64, GeometryOps.var"#102#103"{Float64, GeoInterface.PointTrait, Tuple{Float64, Float64}}, typeof(min), Union}, op::typeof(min), nt::Float64, itr::Function)
@ Base ./reduce.jl:44
[4] mapfoldl(f::Function, op::Function, itr::Function; init::Float64)
@ Base ./reduce.jl:175
[5] mapreduce(f::Function, op::Function, itr::Function; kw::@kwargs{init::Float64})
@ Base ./reduce.jl:307
[6] _applyreduce(f::Function, op::Function, target::Type, ::Nothing, iterable::Function; threaded::Bool, init::Float64)
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/primitives.jl:224
[7] _applyreduce(f::Function, op::Function, target::Type, geom::Function; threaded::Bool, init::Float64)
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/primitives.jl:210
[8] applyreduce(f::Function, op::Function, target::Type, geom::Function; threaded::Bool, init::Float64)
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/primitives.jl:207
[9] distance(trait1::GeoInterface.PointTrait, point::Tuple{Float64, Float64}, trait2::Nothing, geom::Function, ::Type{Float64}; threaded::Bool)
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/methods/distance.jl:97
[10] distance(geom1::Tuple{Float64, Float64}, geom2::Function, ::Type{Float64}; threaded::Bool)
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/methods/distance.jl:85
[11] distance(geom1::Tuple{Float64, Float64}, geom2::Function, ::Type{Float64})
@ GeometryOps ~/work/GeometryOps.jl/GeometryOps.jl/src/methods/distance.jl:82
[12] top-level scope
@ distance.md:36
[13] eval
@ ./boot.jl:385 [inlined]
[14] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[15] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[16] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[17] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[18] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[19] with_logger
@ ./logging.jl:627 [inlined]
[20] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[21] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter
|
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L46
failed to run `@example` block in src/source/methods/geom_relations/touches.md:30-32
```@example touches
touches(l1, l2) # true
```
exception =
UndefVarError: `touches` not defined
Stacktrace:
[1] top-level scope
@ touches.md:31
[2] eval
@ ./boot.jl:385 [inlined]
[3] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[7] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[8] with_logger
@ ./logging.jl:627 [inlined]
[9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L46
failed to run `@example` block in src/source/methods/geom_relations/within.md:30-33
```@example within
within(l1, l2) # false
within(l2, l1) # true
```
exception =
UndefVarError: `within` not defined
Stacktrace:
[1] top-level scope
@ within.md:31
[2] eval
@ ./boot.jl:385 [inlined]
[3] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[7] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[8] with_logger
@ ./logging.jl:627 [inlined]
[9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
../../../.julia/packages/Documenter/1HwWe/src/html/HTMLWriter.jl#L707
Unable to determine the repository root URL for the navbar link.
This can happen when a string is passed to the `repo` keyword of `makedocs`.
To remove this warning, either pass a Remotes.Remote object to `repo` to completely
specify the remote repository, or explicitly set the remote URL by setting `repolink`
via `makedocs(format = HTML(repolink = "..."), ...)`.
|
../../../.julia/packages/Documenter/1HwWe/src/html/HTMLWriter.jl#L1793
Generated HTML over size_threshold_warn limit: index.md
Generated file size: 106.91 (KiB)
size_threshold_warn: 100.0 (KiB)
size_threshold: 200.0 (KiB)
HTML file: index.html
|
../../../.julia/packages/Documenter/1HwWe/src/html/HTMLWriter.jl#L779
For 18 @example blocks, the 'text/html' representation of the resulting
object is above the the threshold (example_size_threshold: 8192 bytes).
- 18 blocks had 'image/png' fallback image representation available, using that.
On pages: source/methods/angles.md, source/methods/area.md, source/methods/centroid.md, source/methods/distance.md, source/methods/equals.md, source/methods/geom_relations/contains.md, source/methods/geom_relations/coveredby.md, source/methods/geom_relations/covers.md, source/methods/geom_relations/disjoint.md, source/methods/geom_relations/intersects.md, source/methods/geom_relations/overlaps.md, source/methods/geom_relations/touches.md, source/methods/geom_relations/within.md, source/methods/polygonize.md
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3, julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading