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

*** empty log message ***

parent ba8acbeb
No related branches found
No related tags found
No related merge requests found
// $Id: List.cpp,v 1.15 2001-04-08 20:36:49 geuzaine Exp $
// $Id: List.cpp,v 1.16 2001-05-22 07:11:14 geuzaine Exp $
#include <stdlib.h>
#include <stdio.h>
......@@ -319,6 +319,7 @@ void List_Invert(List_T *a , List_T *b)
void List_Reset(List_T *liste)
{
if(!liste) return;
liste->n = 0;
}
......
// $Id: CAD.cpp,v 1.20 2001-05-17 07:11:49 geuzaine Exp $
// $Id: CAD.cpp,v 1.21 2001-05-22 07:11:14 geuzaine Exp $
#include "Gmsh.h"
#include "Geo.h"
......@@ -17,7 +17,7 @@ extern Context_T CTX;
extern int CurrentNodeNumber;
static int MAXREG,MAXPOINT;
static List_T *ListOfTransformedPoints;
static List_T *ListOfTransformedPoints=NULL;
int compare2Lists (List_T *List1, List_T *List2,
int (*fcmp)(const void *a, const void *b)){
......@@ -596,7 +596,8 @@ static void vecmat4x4(double mat[4][4],double vec[4], double res[4]){
void ApplyTransformationToPoint ( double matrix[4][4], Vertex *v ){
double pos[4],vec[4];
if(!ListOfTransformedPoints)ListOfTransformedPoints = List_Create(2,2,sizeof(int));
if(!ListOfTransformedPoints)
ListOfTransformedPoints = List_Create(2,2,sizeof(int));
if(!List_Search(ListOfTransformedPoints,&v->Num,fcmp_absint)){
List_Add(ListOfTransformedPoints,&v->Num);
......
// $Id: Create.cpp,v 1.14 2001-05-20 19:24:53 geuzaine Exp $
// $Id: Create.cpp,v 1.15 2001-05-22 07:11:14 geuzaine Exp $
#include "Gmsh.h"
#include "Const.h"
......@@ -474,7 +474,7 @@ Curve *Create_Curve (int Num, int Typ, int Order, List_T * Liste,
if ((v = FindPoint (iPnt, THEM)))
List_Add (pC->Control_Points, &v);
else
Msg(GERROR, "Unknown control point %d in Curve %d", iPnt, pC->Num);
Msg(FATAL, "Unknown control point %d in Curve %d", iPnt, pC->Num);
}
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment