Skip to content
Snippets Groups Projects
Commit a4449418 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add point with 'e', too
parent 6f149945
Branches
Tags
No related merge requests found
// $Id: Callbacks.cpp,v 1.293 2004-10-28 06:11:22 geuzaine Exp $ // $Id: Callbacks.cpp,v 1.294 2004-10-28 06:57:34 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -1671,7 +1671,7 @@ void geometry_elementary_add_new_point_cb(CALLBACK_ARGS) ...@@ -1671,7 +1671,7 @@ void geometry_elementary_add_new_point_cb(CALLBACK_ARGS)
while(1) { while(1) {
Msg(STATUS3N, "Creating point"); Msg(STATUS3N, "Creating point");
Msg(ONSCREEN, "Click and/or enter coordinates\n" Msg(ONSCREEN, "Click and/or enter coordinates\n"
"[Click 'Add' to add point or press 'q' to abort]"); "[Press 'e' or 'Add' to add point or 'q' to abort]");
Vertex *v; Vertex *v;
Curve *c; Curve *c;
Surface *s; Surface *s;
...@@ -1679,6 +1679,9 @@ void geometry_elementary_add_new_point_cb(CALLBACK_ARGS) ...@@ -1679,6 +1679,9 @@ void geometry_elementary_add_new_point_cb(CALLBACK_ARGS)
if(ib == 'q'){ if(ib == 'q'){
break; break;
} }
else if(ib == 'e') {
con_geometry_define_point_cb(NULL, NULL);
}
else if(ib == 'c') { // mouse click else if(ib == 'c') { // mouse click
// find line in real space corresponding to current cursor position // find line in real space corresponding to current cursor position
double p[3], d[3]; double p[3], d[3];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment