Skip to content

Commit 242b3f0

Browse files
committed
Merge branch 'remesh' of github.com:JuliaGeometry/MeshIntegrals.jl into remesh
2 parents 42fb93d + 9a83903 commit 242b3f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/specializations/PolyArea.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Specialized Methods for PolyArea
33
#
44
# Why Specialized?
5-
# The PolyArea geometry defines a surface bounded by a polygon but Meshes.jl
6-
# can not define a parametric function for a polyarea because a general solution
5+
# The PolyArea geometry defines a surface bounded by a polygon, but Meshes.jl
6+
# cannot define a parametric function for a polyarea because a general solution
77
# for one does not exist. However, they can be partitioned into simpler elements
88
# and integrated separately before finally summing the result.
99
################################################################################

test/combinations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,15 @@ end
596596
# Geometry
597597
a, b, c = 0.4, 0.6, 1
598598
outer = [(0, 0), (c, 0), (c, c), (0, c)]
599-
hole = [(a, a), (b, a), (b, b), (a,b)]
599+
hole = [(a, a), (a, b), (b, b), (b, a)]
600600
area = PolyArea([outer, hole])
601601

602602
# Integrand & Solution
603603
function integrand(p::Meshes.Point)
604604
x, y = ustrip.(u"m", to(p))
605605
2x * u"A"
606606
end
607-
solution = (c^2 - (b - a)*(b^2 - a^2)) * u"A*m^2"
607+
solution = (c^2 - (b - a) * (b^2 - a^2)) * u"A*m^2"
608608

609609
# Package and run tests
610610
testable = TestableGeometry(integrand, area, solution)

0 commit comments

Comments
 (0)