side

fun side(along: Int, around: Int, sharpCorners: Boolean = false): List<LoftVertex>(source)

The triangles of the side of the loft, three vertices each, on a grid of along steps of v and around steps of u. Normals point out of the loft and triangles are wound counterclockwise seen from outside, whichever way the cross-section goes round; for a cross-section that is not closed, which makes a ribbon, they follow the cross-section. Texture coordinates are (u, v).

At the corners of the cross-section the normals are the average of those on either side, which shades the corners round. With sharpCorners the grid has a column at every corner too, with a vertex for either side and its normal, so that the faces meet at a sharp edge.

The pose is evaluated once for every step of v, and a constantCrossSection once for every column.