fHtmRegionToTable(region) converts a region definiton a table of halfspaces

Namespace: Spherical.Htm
Assembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0

Syntax

C#
public static IEnumerable fHtmRegionToTable(
	SqlString coverspec
)
Visual C++
public:
static IEnumerable^ fHtmRegionToTable(
	SqlString coverspec
)
F#
static member fHtmRegionToTable : 
        coverspec:SqlString -> IEnumerable 

Parameters

coverspec
Type: System.Data.SqlTypes..::..SqlString
a string satisfying the region syntax

Return Value

Table of Halfspaces, something like
REGION CONVEX 1 0 0 0 0 1 0 0 CONVEX 0 0 1 0

Examples

CopyC#
create function fHtmRegionToTable(@region nvarchar(max)) 
        returns table  (convexid int, halfspaceid int, x double, y double, z double, D double)
             as external name HTM.Sql.fHtmRegionToTable
select * from dbo.fHtmRegionToTable('CIRCLE J2000 195 0 1')

See Also