From 1d7f69dfb7e6744d759e466a657a670c8bce35a0 Mon Sep 17 00:00:00 2001 From: Olivier Devillers Date: Mon, 4 Aug 2014 16:09:30 +0200 Subject: [PATCH] forgot lua file --- .../CGAL_ipelets/lua/libCGAL_distance.lua | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CGAL_ipelets/demo/CGAL_ipelets/lua/libCGAL_distance.lua diff --git a/CGAL_ipelets/demo/CGAL_ipelets/lua/libCGAL_distance.lua b/CGAL_ipelets/demo/CGAL_ipelets/lua/libCGAL_distance.lua new file mode 100644 index 00000000000..a9b39d3dbe7 --- /dev/null +++ b/CGAL_ipelets/demo/CGAL_ipelets/lua/libCGAL_distance.lua @@ -0,0 +1,28 @@ +---------------------------------------------------------------------- +-- CGAL hyperbolic geometry ipelet description +---------------------------------------------------------------------- + +label = "Hyperbolic" + +about = [[ +This ipelet is part of the CGAL_ipelet package. See www.cgal.org. +]] + +-- this variable will store the C++ ipelet when it has been loaded +ipelet = false + +function run(model, num) + if not ipelet then ipelet = assert(ipe.Ipelet(dllname)) end + model:runIpelet(methods[num].label, ipelet, num) +end + +methods = { + { label= "Line through two points" }, + { label= "Segment through two points" }, + { label= "Bisector of two points" }, + { label= "Circle by center(prim. sel.) and point" }, + { label= "Circle center" }, + { label="Help" }, +} + +----------------------------------------------------------------------