ThreePipe
    Preparing search index...

    Class ArchWallGeometryGenerator

    Generates a wall with a row of round-arched openings, like an arcade or a colonnade. The wall outline is a three.js Shape with the openings cut up from the bottom edge, extruded by the thickness with ExtrudeGeometry. Each opening is straight up to its springing line and has a semicircular top; when the arch height is less than half the opening width, the top is a flattened half ellipse.

    The origin is at the bottom center of the wall, so it stands on y = 0, and the thickness is centered on z = 0. The arch soffits get the exact normals of the curve, so they shade smooth; the flat faces keep their face normals. Groups: 0 is the front and back faces, 1 the sides, the top and the arch soffits (as ExtrudeGeometry).

    Hierarchy (View Summary)

    Index
    defaultGeometryClass?: () => Class<
        IGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
    > = ...
    defaultMaterialClass?: () => Class<IMaterial<IMaterialEventMap>> = ...
    defaultMeshClass: () => Class<
        IObject3D<
            IObject3DEventMap,
            IGeometry<NormalBufferAttributes, BufferGeometryEventMap>
            | undefined,
            IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[] | undefined,
        >,
    > = ...
    defaultParams: ArchWallGeometryGeneratorParams = ...
    type: string
    • The placement of the openings after clamping: each opening goes from left[i] to left[i] + archWidth, is straight up to spring, and its top is a half ellipse with radii rx (half the width) and ry.

      Returns {
          archWidth: number;
          height: number;
          left: number[];
          rx: number;
          ry: number;
          segments: number;
          spring: number;
          width: number;
      }