Top
Back: getCone
Forward: isCompatible
FastBack: cone
FastForward: polytope
Up: fan related functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.24.1.7 insertCone

Syntax:
insertCone( fan f, cone c )
insertCone( fan f, cone c, int check )
Type:
none
Purpose:
inserts the cone into the fan; checks for compatibility beforehand unless check is passed and equal 0
Example:
 
fan f=emptyFan(3);
f;
==> 
==> RAYS
==> 
==> MAXIMAL_CONES
==> 
intmat M[3][3]=
1,0,0,
0,1,0,
0,0,1;
cone c=coneViaPoints(M);
insertCone(f,c);
f;
==> 
==> RAYS
==> 0 0 1	# 0
==> 0 1 0	# 1
==> 1 0 0	# 2
==> 
==> MAXIMAL_CONES
==> {0 1 2}	# Dimension 3
==> 

Top Back: getCone Forward: isCompatible FastBack: cone FastForward: polytope Up: fan related functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-7, Aug 2013, generated by texi2html.