summaryrefslogtreecommitdiff
path: root/static/v10/man3/poly.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/v10/man3/poly.3')
-rw-r--r--static/v10/man3/poly.350
1 files changed, 50 insertions, 0 deletions
diff --git a/static/v10/man3/poly.3 b/static/v10/man3/poly.3
new file mode 100644
index 00000000..f4ff7376
--- /dev/null
+++ b/static/v10/man3/poly.3
@@ -0,0 +1,50 @@
+.TH POLY 3
+.CT 2 graphics math
+.SH NAME
+poly_lk, poly_read \(mi polyhedron database routines
+.SH SYNOPSIS
+.nf
+.B #include <poly.h>
+.PP
+.B int poly_lk(name)
+.B char *name;
+.PP
+.B int poly_read(p, dir, n)
+.B Polyhedron *p;
+.B char *dir;
+.fi
+.SH DESCRIPTION
+These routines access the
+.IR poly (7)
+database of polyhedra.
+.PP
+.I Poly_lk
+tries to interpret
+.I name
+as a polyhedron reference.
+If it is a number, it returns that number.
+Otherwise, it returns the number of the first polyhedron
+for which
+.I name
+is a prefix of the polyhedron's name.
+.PP
+.I Poly_read
+forms an in-core description of the polyhedron number
+.I n
+in the directory
+.IR dir .
+If
+.I dir
+is 0, the normal directory
+.RB ( /usr/lib/polyhedra )
+is used.
+.SH "SEE ALSO"
+.IR poly (5),
+.IR poly (7)
+.SH DIAGNOSTICS
+.I Poly
+returns \-1 on unknown names.
+.PP
+.I Poly_read
+returns zero on success,
+nonzero on error.