Top
Back: polytope
Forward: polytopeViaNormals
FastBack: fan
FastForward: pyobject
Up: polytope
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.24.1 polytopeViaVertices

Syntax:
polytopeViaVertices( intmat V )
polytopeViaVertices( intmat V, int flags )
Type:
polytope
Purpose:
polytope generated by the row vectors of V (thought of as representatives of points in the projective space); flags may only be 0 or 1, if flags is 1, then program assumes that each row vector of M is a vertex of the polytope, if flags is 0, then program computes the information itself.
Example:
 
// Let's a polytope in R^2 generated by:
intmat V[4][3]= 
1,0,0,
1,1,0,
1,0,1,
1,1,1;
polytope p=polytopeViaVertices(V);
p;
==> VERTICES
==> 1,1,0,
==> 1,0,0,
==> 1,0,1,
==> 1,1,1
==> 
// the input points are exactly the vertices:
intmat V[4][3]= 
==> // ** redefining V **
1,0,0,
1,1,0,
1,0,1,
1,1,1;
polytope p=polytopeViaVertices(V,1);
==> // ** redefining p **
p;
==> VERTICES
==> 1,1,0,
==> 1,0,0,
==> 1,0,1,
==> 1,1,1
==> 

Top Back: polytope Forward: polytopeViaNormals FastBack: fan FastForward: pyobject Up: polytope Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-4, Jan 2012, generated by texi2html.