select_tri

NAME

select_tri - selects triangles from a triangle cloud associated whith scalars according to a given threshold.

SYNOPSIS

select_tri [-t double|--threshold double] [-c|--cell] [-i|--invert] [-p INT|--precision INT] [-?|-h|--help] FILE

DESCRIPTION

select_tri selects the triangles of a triangle cloud with a scalar value smaller (or bigger: option --invert) than a given threshold (option --threshold). The scalar values are read from FILE and the triangle cloud from the standard input. The scalars can be associated with the points (default: number of scalars = number op points) or with the triangles (option --cell: number of scalars = number of triangles). The resulting triangle cloud is returned to the standard output. Use in conjuction with carve_pt(1) (option --select) to select triangles in or outside a box. Use in conjunction with tri2string(1) and GNU Octave or a similar program to define complex filters.

DATA FORMAT

Format of the scalar file:

> number_of_points (or number_of_triangles)
> s1
> s2
> ...
> sn

OPTIONS

-t DOUBLE, --threshold DOUBLE

only triangles associated with scalars smaller (or bigger: option --invert) than DOUBLE will be output (default: 1.)

-c,--cell

the scalars are associated with the triangle (and not with the points).

-i,--invert

inverts the selection. Only triangles associated with scalars bigger than the threshold value will be output.

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Returns the manual page

AUTHORS

Written by Pierre Smars (first version: 2011)

BUGS

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

COPYRIGHT

Copyright (C) 2016-2020 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

select_pt(1), carve_pt(1), view_tri(1), tri2string(1), pt2string(1)

Pierre SMARS (tools, home page)