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

Fix compareTwoCurves
parent e7d0ebca
No related branches found
No related tags found
No related merge requests found
// $Id: CAD.cpp,v 1.63 2003-03-21 00:52:37 geuzaine Exp $ // $Id: CAD.cpp,v 1.64 2003-08-27 01:45:09 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -1509,15 +1509,30 @@ int compareTwoCurves(const void *a, const void *b) ...@@ -1509,15 +1509,30 @@ int compareTwoCurves(const void *a, const void *b)
if(c1->Typ != c2->Typ) if(c1->Typ != c2->Typ)
return c1->Typ - c2->Typ; return c1->Typ - c2->Typ;
if(List_Nbr(c1->Control_Points) != List_Nbr(c2->Control_Points))
return List_Nbr(c1->Control_Points) - List_Nbr(c2->Control_Points);
if(!List_Nbr(c1->Control_Points)){
comp = compareVertex(&c1->beg, &c2->beg); comp = compareVertex(&c1->beg, &c2->beg);
if(comp) if(comp)
return comp; return comp;
comp = compareVertex(&c1->end, &c2->end); comp = compareVertex(&c1->end, &c2->end);
if(comp) if(comp)
return comp; return comp;
// a finir pour des splines !! }
else {
for(int i = 0; i < List_Nbr(c1->Control_Points); i++){
Vertex *v1, *v2;
List_Read(c1->Control_Points, i, &v1);
List_Read(c2->Control_Points, i, &v2);
comp = compareVertex(&v1, &v2);
if(comp)
return comp;
}
}
return 0; return 0;
//return c1->Num - c2->Num;
} }
int compareAbsCurve(const void *a, const void *b) int compareAbsCurve(const void *a, const void *b)
......
# $Id: Makefile,v 1.298 2003-08-24 23:21:23 geuzaine Exp $ # $Id: Makefile,v 1.299 2003-08-27 01:45:09 geuzaine Exp $
# #
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle # Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
# #
...@@ -23,7 +23,7 @@ include variables ...@@ -23,7 +23,7 @@ include variables
GMSH_MAJOR_VERSION = 1 GMSH_MAJOR_VERSION = 1
GMSH_MINOR_VERSION = 46 GMSH_MINOR_VERSION = 46
GMSH_PATCH_VERSION = 0 GMSH_PATCH_VERSION = 1
GMSH_VERSION_FILE = Common/GmshVersion.h GMSH_VERSION_FILE = Common/GmshVersion.h
GMSH_RELEASE = ${GMSH_MAJOR_VERSION}.${GMSH_MINOR_VERSION}.${GMSH_PATCH_VERSION} GMSH_RELEASE = ${GMSH_MAJOR_VERSION}.${GMSH_MINOR_VERSION}.${GMSH_PATCH_VERSION}
......
$Id: VERSIONS,v 1.154 2003-08-22 21:20:05 geuzaine Exp $ $Id: VERSIONS,v 1.155 2003-08-27 01:45:09 geuzaine Exp $
New since 1.46: fix extrusion of surfaces defined by only two curves;
New in 1.46: fix crash for very long command lines; new options for New in 1.46: fix crash for very long command lines; new options for
setting the displacement factor and Triangle's parameters + renamed a setting the displacement factor and Triangle's parameters + renamed a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment