non-gon
    Preparing search index...

    Function checkVertices

    • Checks whether a pair of vertices from two cylinders intersect or overlap using either rectangle intersection or side verification logic.

      The method dynamically evaluates vertex-cylinder combinations and applies the appropriate geometric verification based on predefined configurations.

      Parameters

      • vertexCylinder1: number

        Index of the first cylinder's vertex (0–3).

      • vertexCylinder2: number

        Index of the second cylinder's vertex (0, 1, 2, or 3).

      • u: number

        A parameter vector component used in geometric calculations.

      • w: number

        Another vector parameter used in geometric calculations.

      • s1: number

        Half-height of the first cylinder.

      • s2: number

        Half-height of the second cylinder.

      • r1: number

        Radius of the first cylinder.

      • r2: number

        Radius of the second cylinder.

      • a: number

        A geometric parameter related to the cylinder axis.

      • b: number

        A geometric parameter (unused here).

      • c: number

        Offset along the axis used in side projection.

      • alpha: number

        Angle between the axes of the cylinders (in radians).

      • cylinder1: Cylinder

        The first cylinder object.

      • cylinder2: Cylinder

        The second cylinder object.

      • commonNormal: Vector3

        The vector representing the shortest path between axes.

      Returns boolean

      True if the vertex pair configuration intersects; otherwise false.