Closed bc closed 6 years ago
I save those as T.csv in the exact format retistruct outputs, but the elements in a given row might be swapped around by a user.
It doesn't matter what order the points are given in. There are 6 possible ways of allocating 3 points to the apex (V0
) and forward and backward vertices of a tear (VF
and VB
).
From labelTear()
in AnnotatedOutline.R
:
## For each permuation of V0, VF, VB, measure the sum of length in
## the forwards direction from V0 to VF and in the backwards
## direction from V0 to VB. The permuation with the minimum distance
## is the correct one.
labelTear()
is called by addTear()
.
Tears that go across the first and last point are dealt with by using the forward and backward pointers self$gf
and self$gb
around the path describing the outline.
Do you currently have any validation for the order of a given tear (row) in the T.csv?
i.e. would these be read the same successfully?
and also how does retistruct deal with tears that go across the last and first point?