addQuadPoints(p1:p2:p3:p4:)

Adds a quad, split along the shorter axis, into the mesh buffer.

MeshBuffer.swift:76
mutating func addQuadPoints(p1: SIMD3<Float>, p2: SIMD3<Float>, p3: SIMD3<Float>, p4: SIMD3<Float>)

Parameters

p1

A 3D point that represents the top-left corner of the quad.

p2

A 3D point that represents the lower-left corner of the quad.

p3

A 3D point that represents the upper-right corner of the quad.

p4

A 3D point that represents the lower-right corner of the quad.

The points of the Quad, viewed face-front, are ‘wound’ in the following order:

v1  v3
 | /|
 |/ |
v2  v4