GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CAD_PAREA (1)

.ds Aq ’

NAME

cad_parea - compute area of polygon

CONTENTS

SYNOPSIS

cad_parea [-i input] [-o output]

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 polygons 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.

EXAMPLE

$ cad_parea # comment 1 0 2 0 2 1 3 1 3 2 2 2 1 2 0 2 0 1 1 1 ^D 4

SEE ALSO

cad_boundp(1).

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.

AUTHOR

Douglas A. Gwyn, BRL/VLD-VMB

COPYRIGHT

This software is Copyright (c) 1991-2013 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>.

Search for    or go to Top of page |  Section 1 |  Main Index


BRL-CAD CAD_PAREA (1) 04/04/2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.