Reference

Table of Contents  ▸  List of Commands  ▸  User KaRo's CLI I/O functions  ▸  input_pinklist◀  pink_setorigin    |    pink_input_pnk  ▶

input_pinklist

Arguments:

Description:

Read a pink list file

spec. type G from pink.delaunay) at file_name and prepare
_mode == 0 a 3d object or
_mode != 0 the vertice, hull, edge list images and the adjacency matrix
_mode only valid for graph lists type G, all other list types return only an image. All list (image) sizes are returned in status!

Default values:

mode=0

 
Summary of Pink list formats read:
~~~
Type     e <n>    s <n>      b <n>      n <n>      B <n>      N <n>
values   x1       x1 v1      x1 y1      x1 y1 v1   x1 y1 z1   x1 y1 z1 v1
 ...     x2       x2 v2      x2 y2      x2 y2 v2   x2 y2 z2   z2 x2 y2 v2
 ...     ...      ...        ...        ...        ...        ...
 ...     xn       xn vn      xn yn      xn yn vn   xn yn z3   z3 xn yn vn
 
Type     G <n>
values   x1 y1[ v1] ec1 ns1 s11 s12 ... s1ns1
 ...     x2 y2[ v2] ec2 ns2 s21 s22 ... s1ns2
 ...     ...
 ...     xn yn[ vn] ecn nsn sn1 sn2 ... s1nsn
~~~
where xi, yi are the coordinates of the i -th vertex, vi is the associated value (if given in the input file), eci is a int which indicates whether the vertex i belongs to the convex hull, nsi denotes the number of adjacent vertices, and si1 si2 ... sins1 is the list of the indexes of the adjacent vertices (counted from 0) (see https://perso.esiee.fr/~coupriem/Pink/doc/html/delaunay_8c.html).