GeometricLine.getSectionQuads


getSectionQuads(section, quadCoords)

returns an array of coords P1, P2, P3, P4 for each quad in the cross section

sectionintegersection row
quadCoordsarray array (0..nSections-1) of array (0..nQuads-1) of array of 2 numbers (quad x and y)
Return valuenone 

Example


 ' obtain number of sections within attribute
    n = attr.getNumberOfSections()
 ' loop all sections
    for i = 0 to n-1
 ' obtain quads for the i'th section
        call attr.getSectionQuads(i, allQuads)
 ' loop all quads for section
        for j = 0 to ubound(allQuads)
            singleQuad = allQuads(j)
 ' loop 4 corners for quad
            for k = 0 to 3
 ' coords of a single corner
                x = singleQuad(k,0)
                y = singleQuad(k,1)
                msgbox "coords: (" & x & ", " & y & ")"
            next
        next
    next

Back to GeometricLine

Back to Overview