@@ -62,6 +62,17 @@ top(c::Cylinder) = c.top
6262
6363radius (c:: Cylinder ) = c. radius
6464
65+ axis (c:: Cylinder ) = axis (boundary (c))
66+
67+ isright (c:: Cylinder ) = isright (boundary (c))
68+
69+ hasintersectingplanes (c:: Cylinder ) = hasintersectingplanes (boundary (c))
70+
71+ == (c₁:: Cylinder , c₂:: Cylinder ) = boundary (c₁) == boundary (c₂)
72+
73+ Base. isapprox (c₁:: Cylinder , c₂:: Cylinder ; atol= atol (lentype (c₁)), kwargs... ) =
74+ isapprox (boundary (c₁), boundary (c₂); atol, kwargs... )
75+
6576function (c:: Cylinder )(ρ, φ, z)
6677 if (ρ < 0 || ρ > 1 ) || (φ < 0 || φ > 1 ) || (z < 0 || z > 1 )
6778 throw (DomainError ((ρ, φ, z), " c(ρ, φ, z) is not defined for ρ, φ, z outside [0, 1]³." ))
@@ -89,18 +100,3 @@ function (c::Cylinder)(ρ, φ, z)
89100 s = Segment (l ∩ b, l ∩ t)
90101 s (T (z))
91102end
92-
93- # ----------------------------------------------
94- # forward methods to boundary (CylinderSurface)
95- # ----------------------------------------------
96-
97- axis (c:: Cylinder ) = axis (boundary (c))
98-
99- isright (c:: Cylinder ) = isright (boundary (c))
100-
101- hasintersectingplanes (c:: Cylinder ) = hasintersectingplanes (boundary (c))
102-
103- == (c₁:: Cylinder , c₂:: Cylinder ) = boundary (c₁) == boundary (c₂)
104-
105- Base. isapprox (c₁:: Cylinder , c₂:: Cylinder ; atol= atol (lentype (c₁)), kwargs... ) =
106- isapprox (boundary (c₁), boundary (c₂); atol, kwargs... )
0 commit comments