New upstream version 0.98.3
Anton Gladky
7 years ago
0 | 0 |
language: c
|
1 | |
compiler: gcc
|
|
1 |
matrix:
|
|
2 |
include:
|
|
3 |
- compiler: gcc
|
|
4 |
os: linux
|
|
5 |
env: EXTRA=--enable-werror
|
|
6 |
- compiler: clang
|
|
7 |
os: linux
|
|
8 |
- compiler: clang
|
|
9 |
os: osx
|
2 | 10 |
|
3 | 11 |
script:
|
4 | 12 |
- ./autogen.sh
|
5 | |
- ./configure --enable-werror
|
|
13 |
- ./configure $EXTRA
|
6 | 14 |
- make
|
7 | 15 |
- cd .libs
|
8 | |
- export LD_LIBRARY_PATH=.
|
|
16 |
- if [[ $TRAVIS_OS_NAME == linux ]]; then LD_LIBRARY_PATH=. && export LD_LIBRARY_PATH ; fi
|
|
17 |
- if [[ $TRAVIS_OS_NAME == osx ]]; then DYLD_LIBRARY_PATH=. && export DYLD_LIBRARY_PATH ; fi
|
9 | 18 |
- ./admesh ../block.stl
|
10 | 10 |
Don't patch this project downstream but use this code, so all can benefit from
|
11 | 11 |
the changes. Pull requests are welcome, but be sure to generate no warnings.
|
12 | 12 |
|
13 | |
Grab the 0.98.2 tarball:
|
14 | |
https://github.com/admesh/admesh/releases/download/v0.98.2/admesh-0.98.2.tar.gz
|
|
13 |
Grab the 0.98.3 tarball:
|
|
14 |
https://github.com/admesh/admesh/releases/download/v0.98.3/admesh-0.98.3.tar.gz
|
15 | 15 |
|
16 | 16 |
About ADMesh:
|
17 | 17 |
-------------
|
|
48 | 48 |
ADMesh outputs the following statistics after processing:
|
49 | 49 |
|
50 | 50 |
````
|
51 | |
================= Results produced by ADMesh version 0.98.2 =================
|
|
51 |
================= Results produced by ADMesh version 0.98.3 =================
|
52 | 52 |
Input file : sphere.stl
|
53 | 53 |
File type : Binary STL file
|
54 | |
Header : Processed by ADMesh version 0.98.2
|
|
54 |
Header : Processed by ADMesh version 0.98.3
|
55 | 55 |
============== Size ==============
|
56 | 56 |
Min X = -1.334557, Max X = 1.370952
|
57 | 57 |
Min Y = -1.377953, Max Y = 1.377230
|
6 | 6 |
# ====================
|
7 | 7 |
m4_define([admesh_version_major],[0])
|
8 | 8 |
m4_define([admesh_version_minor],[98])
|
9 | |
m4_define([admesh_version_micro],[2])
|
|
9 |
m4_define([admesh_version_micro],[3])
|
10 | 10 |
m4_define([admesh_version_suffix],[])
|
11 | 11 |
m4_define([admesh_version],[admesh_version_major.admesh_version_minor.admesh_version_micro''admesh_version_suffix])
|
12 | 12 |
|
804 | 804 |
vnot2 = stl->neighbors_start[facet].which_vertex_not[edge2];
|
805 | 805 |
vnot3 = stl->neighbors_start[facet].which_vertex_not[edge3];
|
806 | 806 |
|
807 | |
stl->neighbors_start[neighbor1].neighbor[(vnot1 + 1) % 3] = neighbor2;
|
808 | |
stl->neighbors_start[neighbor2].neighbor[(vnot2 + 1) % 3] = neighbor1;
|
809 | |
stl->neighbors_start[neighbor1].which_vertex_not[(vnot1 + 1) % 3] = vnot2;
|
810 | |
stl->neighbors_start[neighbor2].which_vertex_not[(vnot2 + 1) % 3] = vnot1;
|
|
807 |
if(neighbor1 != -1){
|
|
808 |
stl->neighbors_start[neighbor1].neighbor[(vnot1 + 1) % 3] = neighbor2;
|
|
809 |
stl->neighbors_start[neighbor1].which_vertex_not[(vnot1 + 1) % 3] = vnot2;
|
|
810 |
}
|
|
811 |
if(neighbor2 != -1){
|
|
812 |
stl->neighbors_start[neighbor2].neighbor[(vnot2 + 1) % 3] = neighbor1;
|
|
813 |
stl->neighbors_start[neighbor2].which_vertex_not[(vnot2 + 1) % 3] = vnot1;
|
|
814 |
}
|
811 | 815 |
|
812 | 816 |
stl_remove_facet(stl, facet);
|
813 | 817 |
|
268 | 268 |
if (stl->error) return;
|
269 | 269 |
|
270 | 270 |
/* Open the file */
|
271 | |
fp = fopen(file, "w");
|
|
271 |
fp = fopen(file, "wb");
|
272 | 272 |
if(fp == NULL) {
|
273 | 273 |
error_msg = (char*)
|
274 | 274 |
malloc(81 + strlen(file)); /* Allow 80 chars+file size for message */
|
179 | 179 |
/* Allocate memory for the neighbors list */
|
180 | 180 |
stl->neighbors_start = (stl_neighbors*)
|
181 | 181 |
calloc(stl->stats.number_of_facets, sizeof(stl_neighbors));
|
182 | |
if(stl->facet_start == NULL) perror("stl_initialize");
|
|
182 |
if(stl->neighbors_start == NULL) perror("stl_initialize");
|
183 | 183 |
}
|
184 | 184 |
|
185 | 185 |
void
|