IFClite TypeScript API
    Preparing search index...

    Interface Drawing2D

    Complete 2D drawing result

    interface Drawing2D {
        bounds: Bounds2D;
        config: SectionConfig;
        cutPolygons: DrawingPolygon[];
        layerBaseCutPolygons?: DrawingPolygon[];
        lines: DrawingLine[];
        projectionPolygons: DrawingPolygon[];
        stats: {
            cutLineCount: number;
            hiddenLineCount: number;
            polygonCount: number;
            processingTimeMs: number;
            projectionLineCount: number;
            silhouetteLineCount: number;
            totalTriangles: number;
        };
    }

    Hierarchy (View Summary)

    Index
    bounds: Bounds2D

    Bounding box in 2D drawing space

    Section configuration used

    cutPolygons: DrawingPolygon[]

    Cut polygons (for hatching)

    layerBaseCutPolygons?: DrawingPolygon[]

    Opaque base cross-sections (one set per multi-material entity) drawn behind the per-layer fills in the 3D section overlay so a cut never reads hollow. Consumed ONLY by the 3D overlay; absent from cutPolygons so the flat 2D drawing, SVG export, and measure/snap paths are unaffected. Empty/omitted when no multi-material (layered) element is cut.

    lines: DrawingLine[]

    All classified lines

    projectionPolygons: DrawingPolygon[]

    Projection polygons (visible surfaces beyond cut)

    stats: {
        cutLineCount: number;
        hiddenLineCount: number;
        polygonCount: number;
        processingTimeMs: number;
        projectionLineCount: number;
        silhouetteLineCount: number;
        totalTriangles: number;
    }

    Processing statistics