contourSegment

fun contourSegment(linearContour: List<Vector2>, frame0: Matrix44, frame1: Matrix44, writer: VertexWriter)(source)

Writes quads to writer creating a surface that connects two displaced instances of linearContour. The positions and orientations of the two contours are defined by the frame0 and frame1 matrices.

Parameters

linearContour

the cross-section of the surface to create

frame0

a transformation matrix that defines an initial position

frame1

a transformation matrix that defines a final position

writer

the vertex writer function


fun contourSegment(linearContour0: List<Vector2>, linearContour1: List<Vector2>, frame0: Matrix44, frame1: Matrix44, writer: VertexWriter)(source)

Writes quads to writer creating a surface that connects linearContour0 with linearContour1. The positions and orientations of the two contours are defined by the frame0 and frame1 matrices.

Parameters

linearContour0

the first cross-section

linearContour1

the second cross-section

frame0

a transformation matrix with the pose of linearContour0

frame1

a transformation matrix with the pose of linearContour1

writer

the vertex writer function


fun contourSegment(linearContour0: List<Vector2>, linearContour1: List<Vector2>, frame0: Matrix44, frame1: Matrix44, v0: Double, v1: Double, writer: VertexWriter)(source)

Contour segment

Parameters

linearContour0
linearContour1
frame0
frame1
v0
v1
writer