Skip to content
Snippets Groups Projects
Commit 19ce5edd authored by JM's avatar JM
Browse files

Modificaiton Readme + ajout de fichiers d'exemples

parent db5b7551
No related branches found
No related tags found
No related merge requests found
# Structure
Le fichier de résulat se situe dans `result`.
```bash
delaunay_prog_seq
│ README.md
│ main.c
│ Makefile
|
└───las
│ │ las_reader.c
│ │ las_reader.h
│ │ las_tests.c
│ │ 'pyramid.ply'
│ │ 'test.ply'
|
└───stl
│ │ stl_writer.c
│ │ stl_writer.h
│ │ stl_tests.c
| └───'result_tests'
|
|
└───triangulation
│ │ triangulation.c
│ │ triangulation.h
│ │ triangulation_tests.c
|
|
└───chained_list
│ │ chained_list.c
│ │ chained_list.h
|
└───display
│ │ draw.c
│ │ draw.h
│ └───gfx
|
└───geometry
│ geometry.c
│ geometry.h
```
# Lancer le programme
(Il est nécessaire de clean entre un make et un make tests)
```bash
make clean
make
./main
```
## Avec input
```bash
./main 'Emplacement Fichier'
```
## Avec Affichage
```bash
./main -gfx
./main 'Emplacement Fichier' -gfx
```
## Avec fichiers fournis
```bash
./main ./input_exemple/random.ply -gfx
./main ./input_exemple/pos.ply -gfx
./main ./input_exemple/negat.ply -gfx
./main ./input_exemple/both.ply -gfx
./main ./input_exemple/pyramide.ply -gfx
```
## Tests
```bash
make clean
make tests
./las_tests
./triangulation_tests
./stl_tests
```
# Tests
(Il est nécessaire de clean entre un make et un make tests)
......
ply
format ascii 1.0
element vertex 3
property float x
property float y
property float z
end_header
-0.050000 -0.050000 0.100000
-0.050000 0.10000 0.10000
0.10000 -0.05000 0.10000
ply
format ascii 1.0
element vertex 3
property float x
property float y
property float z
end_header
0.000000 0.000000 0.000000
0.000000 -0.10000 -0.10000
-0.10000 0.00000 -0.10000
ply
format ascii 1.0
element vertex 3
property float x
property float y
property float z
end_header
0.000000 0.000000 0.000000
0.000000 0.100000 0.000000
0.100000 0.000000 0.000000
ply
format ascii 1.0
element vertex 5
property float x
property float y
property float z
end_header
0.300000 0.300000 0.300000
0.800000 0.300000 0.300000
0.300000 0.800000 0.300000
0.800000 0.800000 0.300000
0.550000 0.550000 0.800000
ply
format ascii 1.0
element vertex 7
property float x
property float y
property float z
end_header
0.000000 0.000000 0.000000
0.000000 0.100000 0.100000
0.100000 0.000000 0.100000
0.100000 0.100000 0.200000
0.150000 0.050000 0.100000
0.200000 0.000000 0.100000
0.250000 0.050000 0.200000
solid result
facet normal 0.000000 0.000000 0.022500
facet normal -0.010000 -0.010000 0.010000
outer loop
vertex -0.050000 0.100000 0.100000
vertex -0.050000 -0.050000 0.100000
vertex 0.100000 -0.050000 0.100000
vertex 0.000000 0.100000 0.100000
vertex 0.000000 0.000000 0.000000
vertex 0.100000 0.000000 0.100000
endloop
endfacet
facet normal -0.010000 -0.010000 0.010000
outer loop
vertex 0.000000 0.100000 0.100000
vertex 0.100000 0.000000 0.100000
vertex 0.100000 0.100000 0.200000
endloop
endfacet
facet normal 0.000000 0.000000 0.000000
outer loop
vertex 0.100000 0.100000 0.200000
vertex 0.100000 0.000000 0.100000
vertex 0.150000 0.050000 0.100000
endloop
endfacet
facet normal 0.000000 0.000000 0.005000
outer loop
vertex 0.150000 0.050000 0.100000
vertex 0.100000 0.000000 0.100000
vertex 0.200000 0.000000 0.100000
endloop
endfacet
facet normal 0.000000 0.000000 0.000000
outer loop
vertex 0.100000 0.100000 0.200000
vertex 0.150000 0.050000 0.100000
vertex 0.250000 0.050000 0.200000
endloop
endfacet
facet normal -0.005000 -0.005000 0.005000
outer loop
vertex 0.150000 0.050000 0.100000
vertex 0.200000 0.000000 0.100000
vertex 0.250000 0.050000 0.200000
endloop
endfacet
endsolid result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment