From a3d55993938f271f3243fb86cb59f2e481bac7d0 Mon Sep 17 00:00:00 2001 From: Rui Ventura Date: Fri, 20 Aug 2021 21:29:02 +0100 Subject: [PATCH] [skip ci] Fix Loc to Point23 conversion --- Project.toml | 2 +- src/glue/khepri/kernel.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index c5d28ae..b184488 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CGAL" uuid = "15fcbb24-5a00-427b-98c5-e32879a22884" authors = ["Rui Ventura "] -version = "0.5.2" +version = "0.5.3" [deps] libcgal_julia_jll = "e9ad47b2-a301-5fb7-a0bd-6eece649b37c" diff --git a/src/glue/khepri/kernel.jl b/src/glue/khepri/kernel.jl index 1465aeb..d025f69 100644 --- a/src/glue/khepri/kernel.jl +++ b/src/glue/khepri/kernel.jl @@ -1,6 +1,6 @@ # points -convert(::Type{Point2}, p::Loc) = Point2(cx(q), cy(q)) -convert(::Type{Point3}, p::Loc) = Point3(cx(q), cy(q), cz(q)) +convert(::Type{Point2}, p::Loc) = Point2(cx(p), cy(p)) +convert(::Type{Point3}, p::Loc) = Point3(cx(p), cy(p), cz(p)) convert(::Type{Loc}, ::Origin) = u0() @cxxdereference convert(::Type{Loc}, p::Point2) = xy( x(p)[], y(p)[])