# Singular

#### D.13.1.55 removeCone

Procedure from library `gfan.lib` (see gfan_lib).

Usage:
removeCone(f,c[,b]); f fan, c cone, b int

Assume:
containsInCollection(f,c)=1

Return:
none, removes the cone c from f
if b=0, skips the check whether c is contained in f

Example:
 ```LIB "gfan.lib"; intmat M[2][2]=1,0,0,1; intmat N[2][2]=1,0,1,-1; cone c=coneViaPoints(M); cone d=coneViaPoints(N); fan f=emptyFan(2); insertCone(f,c); insertCone(f,d); f; ==> _application PolyhedralFan ==> _version 2.2 ==> _type PolyhedralFan ==> ==> AMBIENT_DIM ==> 2 ==> ==> DIM ==> 2 ==> ==> LINEALITY_DIM ==> 0 ==> ==> RAYS ==> 0 1 # 0 ==> 1 -1 # 1 ==> 1 0 # 2 ==> ==> N_RAYS ==> 3 ==> ==> LINEALITY_SPACE ==> ==> ORTH_LINEALITY_SPACE ==> -1 0 # 0 ==> 0 -1 # 1 ==> ==> F_VECTOR ==> 1 3 2 ==> ==> SIMPLICIAL ==> 1 ==> ==> PURE ==> 1 ==> ==> CONES ==> {} # Dimension 0 ==> {0} # Dimension 1 ==> {1} ==> {2} ==> {0 2} # Dimension 2 ==> {1 2} ==> ==> MAXIMAL_CONES ==> {0 2} # Dimension 2 ==> {1 2} ==> removeCone(f,c); f; ==> _application PolyhedralFan ==> _version 2.2 ==> _type PolyhedralFan ==> ==> AMBIENT_DIM ==> 2 ==> ==> DIM ==> 2 ==> ==> LINEALITY_DIM ==> 0 ==> ==> RAYS ==> 1 -1 # 0 ==> 1 0 # 1 ==> ==> N_RAYS ==> 2 ==> ==> LINEALITY_SPACE ==> ==> ORTH_LINEALITY_SPACE ==> -1 0 # 0 ==> 0 -1 # 1 ==> ==> F_VECTOR ==> 1 2 1 ==> ==> SIMPLICIAL ==> 1 ==> ==> PURE ==> 1 ==> ==> CONES ==> {} # Dimension 0 ==> {0} # Dimension 1 ==> {1} ==> {0 1} # Dimension 2 ==> ==> MAXIMAL_CONES ==> {0 1} # Dimension 2 ==> ```