CAD_PAREA(1)
DESCRIPTION
cad_parea reads from input (standard input if not given) a series of polygon vertex (x,y) coordinate values and writes to output (standard output if not given) the polygon’s area. Lines not beginning with a number are silently skipped. Vertices are assumed to be given in counter-clockwise cyclic order.
HINTS
A hole can be accommodated as a clockwise section connected to the periphery by a line segment traced in both directions.
Disjoint pieces may be connected by a line segment traced in both directions.
DIAGNOSTICS
Improperly formatted input produces an error message and terminates cad_parea with non-zero exit status.
cad_parea outputs "0" for the area of a degenerate polygon.
COPYRIGHT
This software is Copyright (c) 1989-2021 by the United States Government as represented by U.S. Army Research Laboratory.
BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org