FUNCTION  fRegionConvexToArcs

Returns the ordered arcs of a spherical Convex

Parameters:
  • regionID bigint ID of the region
  • convexID bigint ID of the convex of the relevant HalfSpace
  • convexString varchar(8000) added to the convex Output is an array of the arcs of the spherical polygon defined by the convex:
  • regionid bigint
  • convexid bigint
  • patch int ID of the patch
  • state int 1:hole, 2:root, 3: bounding circle
  • draw int 1:draw, 0:hide
  • ra1, dec1,ra2,dec2 float equatorial coords of the two endpoints of the arc
  • x,y,z,c the equation of the halfplane of the arcs
  • length the length of the arc in arcmins select * from dbo.fRegionConvexToArcs(1457,0,'')
  • Input and output parameters

    nametypelengthinoutpnum
    @regionidbigint8input1
    @convexidbigint8input2
    @convexStringvarchar8000input3
    patchint4output4
    stateint4output5
    drawint4output6
    ra1float8output7
    dec1float8output8
    ra2float8output9
    dec2float8output10
    xfloat8output11
    yfloat8output12
    zfloat8output13
    cfloat8output14
    lengthfloat8output15
    regionidbigint8output1
    convexidbigint8output2
    constraintidbigint8output3