From 14de926a0a8911fc878a4a8dcde29c84c2f473b6 Mon Sep 17 00:00:00 2001 From: Felix Hagemann <30291312+fhagemann@users.noreply.github.com> Date: Wed, 3 Nov 2021 04:16:34 +0100 Subject: [PATCH] Fix `flip(::EllipticalSurface)` --- .../SurfacePrimitives/EllipticalSurface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConstructiveSolidGeometry/SurfacePrimitives/EllipticalSurface.jl b/src/ConstructiveSolidGeometry/SurfacePrimitives/EllipticalSurface.jl index 38c5a300f..de2ba742d 100644 --- a/src/ConstructiveSolidGeometry/SurfacePrimitives/EllipticalSurface.jl +++ b/src/ConstructiveSolidGeometry/SurfacePrimitives/EllipticalSurface.jl @@ -29,7 +29,7 @@ end flip(es::EllipticalSurface{T,TR,Nothing}) where {T,TR} = EllipticalSurface{T,TR,Nothing}(es.r, es.φ, es.origin, es.rotation * SMatrix{3,3,T,9}(1,0,0,0,-1,0,0,0,-1)) flip(es::EllipticalSurface{T,TR,T}) where {T,TR} = - EllipticalSurface{T,TR,T}(es.r, es.φ, es.origin, es.rotation * RotZ{T}(T(2π)-es.φ)SMatrix{3,3,T,9}(1,0,0,0,-1,0,0,0,-1)) + EllipticalSurface{T,TR,T}(es.r, es.φ, es.origin, es.rotation * SMatrix{3,3,T,9}(1,0,0,0,-1,0,0,0,-1) * RotZ{T}(T(2π)-es.φ)) const CircularArea{T} = EllipticalSurface{T,T,Nothing} const PartialCircularArea{T} = EllipticalSurface{T,T,T}