From c38bd1a73d127113cf99f61520a689da96cd5fc7 Mon Sep 17 00:00:00 2001 From: Akash Anand <akasha@iitk.ac.in> Date: Tue, 14 Aug 2007 22:07:44 +0000 Subject: [PATCH] added translated parabola --- Fltk/GUI_Projection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Fltk/GUI_Projection.cpp b/Fltk/GUI_Projection.cpp index d2fe12f42b..62268bc61e 100644 --- a/Fltk/GUI_Projection.cpp +++ b/Fltk/GUI_Projection.cpp @@ -17,6 +17,7 @@ extern Context_T CTX; #include "FM_ParaboloidProjectionSurface.h" #include "FM_CylindricalProjectionSurface.h" #include "FM_RevolvedParabolaProjectionSurface.h" +#include "FM_TranslatedParabolaProjectionSurface.h" static FProjectionFace *createProjectionFaceFromName(char *name) { @@ -30,6 +31,8 @@ static FProjectionFace *createProjectionFaceFromName(char *name) f = new FProjectionFace(GMODEL, tag, new FM::CylindricalProjectionSurface(tag)); else if(!strcmp(name, "revolvedParabola")) f = new FProjectionFace(GMODEL, tag, new FM::RevolvedParabolaProjectionSurface(tag)); + else if(!strcmp(name, "translatedParabola")) + f = new FProjectionFace(GMODEL, tag, new FM::TranslatedParabolaProjectionSurface(tag)); else Msg(GERROR, "Unknown projection face `%s'", name); if(f){ @@ -820,6 +823,7 @@ void mesh_parameterize_cb(Fl_Widget* w, void* data) editor->load(createProjectionFaceFromName("paraboloid")); editor->load(createProjectionFaceFromName("cylinder")); editor->load(createProjectionFaceFromName("revolvedParabola")); + editor->load(createProjectionFaceFromName("translatedParabola")); } editor->show(); } -- GitLab