brepjs API Reference
    Preparing search index...

    Class CompoundSketch

    Represent a face with holes as a group of sketches (one outer + zero or more inner).

    All contained sketches must share the same base surface. The first sketch is treated as the outer boundary; subsequent sketches define holes.

    Typically produced from a CompoundBlueprint via sketchOnPlane.

    Sketch for single-wire profiles without holes.

    Implements

    Index

    Constructors

    Properties

    sketches: Sketch[]

    Accessors

    Methods

    • Extrude the compound face (with holes) along the default or given direction.

      Supports twist and profile extrusions. For twist/profile modes each sub-sketch is extruded as a shell, then capped into a solid.

      Parameters

      • extrusionDistance: number
      • __namedParameters: {
            extrusionDirection?: PointInput;
            extrusionProfile?: ExtrusionProfile;
            origin?: PointInput;
            twistAngle?: number;
        } = {}

      Returns Shape3D