vcglib/vcg
jmespadero 97a521fd23
Edge orientation coherence
Sort edges in output of IntersectionPlaneMesh() to remove duplicate vertex and maintain orientation coherence in the edges.

Before this change, the vertex list contains duplicates and the edge list is not sorted, so there is no easy way to build the polylines of the cut. Calling RemoveDuplicateVertex() will produce a edge list with no coherence, like this example:

```
edge [0 1] goes from [0.12843863 0.38690682 0.1] to [0.13383933 0.3839188  0.1]
edge [2 3] goes from [0.14307424 0.38100217 0.1] to [0.13592989 0.38318165 0.1]
edge [3 1] goes from [0.13592989 0.38318165 0.1] to [0.13383933 0.3839188  0.1]
```

The output is correct, but somehow confusing because edges in the polyline(s) are not in order. After the proposed change, the output will be: 

```
edge [0 1] goes from [0.12843863 0.38690682 0.1] to [0.13383933 0.3839188  0.1]
edge [1 3] goes from [0.13383933 0.3839188  0.1] to [0.13592989 0.38318165 0.1]
edge [3 2] goes from [0.13592989 0.38318165 0.1] to [0.14307424 0.38100217 0.1]
```
2021-11-05 10:43:29 +01:00
..
complex Edge orientation coherence 2021-11-05 10:43:29 +01:00
connectors all included from used_types.h have been made self sufficient 2021-03-24 15:48:57 +01:00
container better copy in simple temporary data 2021-10-20 18:36:34 +02:00
math fix matrix44, remove memset from octree.h 2021-10-19 14:16:53 +02:00
simplex curvature ocf const correctness 2021-09-15 15:15:28 +02:00
space remove fscanf from outline2_packer.h 2021-10-20 10:29:25 +02:00