sections

    The total number of sections on the tube.

    TubeTrailMesh.swift:44
    final var sections: Int32 { get set }

    Other members in extension

    Type members

    Instance members

    • var capBottom: Bool

      If true, generates a cap at the bottom of the tube. This can be set to false to speed up generation and rendering when the cap is never seen by the camera.

    • var capTop: Bool

      If true, generates a cap at the top of the tube. This can be set to false to speed up generation and rendering when the cap is never seen by the camera.

    • var curve: Curve?

      Determines the radius of the tube along its length. The radius of a particular section ring is obtained by multiplying the baseline radius by the value of this curve at the given distance. For values smaller than 0, the faces will be inverted.

    • var radialSteps: Int32

      The number of sides on the tube. For example, a value of 5 means the tube will be pentagonal. Higher values result in a more detailed tube at the cost of performance.

    • var radius: Double

      The baseline radius of the tube. The radius of a particular section ring is obtained by multiplying this radius by the value of the curve at the given distance.

    • var sectionLength: Double

      The length of a section of the tube.

    • var sectionRings: Int32

      The number of rings in a section. The curve is sampled on each ring to determine its radius. Higher values result in a more detailed tube at the cost of performance.