Cadcorp SIS API Methods

CreateTinEx Method

Description

Creates a Triangular Irregular Network (TIN) or MultiPolygon from items in a named list, using advanced creation properties. A TIN is a special type of surface item. If a Group is open, then graphics are added to the Group, otherwise a new Item is created.

Syntax

Visual Basic
Public Function CreateTinEx( _
   ByVal list As String, _
   ByVal formula As String, _
   ByVal aclass As String, _
   ByVal nFaces As Long _
) As Integer

Parameters

list

A Named List containing items which will be used to create the TIN or MultiPolygon.

If the items are Points the x,y origin of the point will be used.

If the items are LineStrings or Polygons the vertices will be used.

formula
The expression to use to calculate the Z value of the positions being triangulated. Use "_oz#" for the Z height of the item.
 
aclass
The Item class which this method will create. This may be "Area" for MultiPolygon items or "TinSurface" for a TIN.
 
nFaces
The number of triangular faces per Tin or MultiPolygon making up the surface.

Remarks

Available: MD OD SISpy

Group:

Example

sis.CreateTinEx("OnlyGrids", "_oz#", "Area", 3)

Generates a MultiPolygon item

mapobject.CreateTinEx("OnlyGrids", "_oz#", "Area", 1)

Generates MultiPolygon items, one Polygon per TIN face

sis.CreateTinEx("OnlyGrids", "_oz#", "TinSurface", 5)

Generates a TIN


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).