Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
308ae00a
Commit
308ae00a
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Remove gcc warnings
parent
dcc9b649
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/dxf2geo.c
+7
-5
7 additions, 5 deletions
utils/dxf2geo.c
utils/mysolver.c
+2
-2
2 additions, 2 deletions
utils/mysolver.c
with
9 additions
and
7 deletions
utils/dxf2geo.c
+
7
−
5
View file @
308ae00a
// $Id: dxf2geo.c,v 1.
4
2003-03-01 2
2:36:44
geuzaine Exp $
// $Id: dxf2geo.c,v 1.
5
2003-03-01 2
3:03:23
geuzaine Exp $
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -66,7 +66,8 @@ int fcmpPoint(const void *a, const void *b)
w
=
(
struct
Point
*
)
b
;
if
(
fabs
(
q
->
x
-
w
->
x
)
<
THETOL
&&
fabs
(
q
->
y
-
w
->
y
)
<
THETOL
&&
fabs
(
q
->
z
-
w
->
z
)
<
THETOL
)
fabs
(
q
->
y
-
w
->
y
)
<
THETOL
&&
fabs
(
q
->
z
-
w
->
z
)
<
THETOL
)
return
0
;
if
(
q
->
x
>
w
->
x
)
...
...
@@ -81,6 +82,8 @@ int fcmpPoint(const void *a, const void *b)
return
(
1
);
if
(
q
->
z
<
w
->
z
)
return
(
-
1
);
return
0
;
}
int
addpoint
(
struct
Point
*
p
)
...
...
@@ -171,10 +174,9 @@ int checkdegen(int a, int b, int c)
void
addobj
(
void
)
{
/* dump out current object we should have all info on */
struct
Point
p
,
*
pp
;
struct
Point
p
;
struct
Curve
c
;
int
num
[
10
];
float
tmp
;
if
(
strstr
(
curobj
,
"POINT"
))
{
p
.
x
=
xcoords
[
0
];
...
...
@@ -624,7 +626,7 @@ stopit:
printf
(
"bounding box [%g,%g] [%g,%g] [%g,%g]
\n
"
,
min_x
,
max_x
,
min_y
,
max_y
,
min_z
,
max_z
);
printf
(
"tolerance %g: %d points / %d curves / %d degenerate entities removed
\n
"
,
(
"tolerance %g: %d points / %d curves / %
l
d degenerate entities removed
\n
"
,
THETOL
,
Tree_Nbr
(
Point_T
),
Tree_Nbr
(
Curve_T
),
degenerates
);
Tree_Delete
(
Point_T
);
Tree_Delete
(
Curve_T
);
...
...
This diff is collapsed.
Click to expand it.
utils/mysolver.c
+
2
−
2
View file @
308ae00a
/* $Id: mysolver.c,v 1.
6
2003-03-01 2
2:36:44
geuzaine Exp $ */
/* $Id: mysolver.c,v 1.
7
2003-03-01 2
3:03:23
geuzaine Exp $ */
/*
Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
...
...
@@ -81,7 +81,7 @@ void work()
int
main
(
int
argc
,
char
*
argv
[])
{
action
what
;
action
what
=
run
;
int
i
=
0
,
s
;
char
*
name
=
NULL
,
*
option
=
NULL
,
*
socket
=
NULL
,
tmp
[
256
];
FILE
*
file
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment