litopo

NAME

litopo - rearrange a line cloud by first putting the coordinates of the edges and then the topology

SYNOPSIS

litopo [-?|-h|--help]

DESCRIPTION

litopo changes the format of a line cloud, conform to the structure use by triangle clouds: coordinates + topology (use li2string(1) for the opposite operation). Duplicate points are eliminated but duplicate lines are not. It takes its input from the standard input and returns the result to the standard output.

INPUT DATA FORMAT

> number_of_lines
> x11 y11 z11 x12 y12 z12
> x21 y21 z21 x22 y22 z22
> ...
> xn1 yn1 zn1 xn2 yn2 zn2

OUTPUT DATA FORMAT

> number_of_points
> x1 y1 z1
> x2 y2 z2
> ...
> xn yn zn
> number_of_lines
> r11 r12
> r21 r22
> ...
> rn1 rn2
The rij make reference to the nodes defined in the first part of the file. The node references start from 0.

OPTIONS

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Returns the manual page

AUTHORS

Written by Pierre Smars (first version: 2016)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

Copyright (C) 2016 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

view_li(1), li2string(1)

Pierre SMARS (tools, home page)