@ifc-lite/drawing-2d
v1.15.1
Published
2D architectural drawing generation from IFC models - section cuts, floor plans, and elevations
Maintainers
Readme
@ifc-lite/drawing-2d
2D architectural drawing generation from 3D IFC models. Produces section cuts, floor plans, and elevations as vector SVG with proper architectural conventions.
Installation
npm install @ifc-lite/drawing-2dQuick Start
import { generateFloorPlan, exportToSVG } from '@ifc-lite/drawing-2d';
// Generate a floor plan (meshes, elevation, options?)
const drawing = await generateFloorPlan(meshData, 1.2);
// Export as SVG
const svg = exportToSVG(drawing, { showHatching: true });Features
- Floor plans, sections, and elevations
- Cut lines, projection lines, and hidden lines
- Material-based hatching (concrete, masonry, insulation, etc.)
- Architectural symbols (door swings, window frames, stair arrows)
- Graphic override presets (architectural, fire safety, structural, MEP)
- Drawing sheets with frames, title blocks, and scale bars
- GPU-accelerated section cutting
- SVG vector output
API
See the 2D Drawings Guide and API Reference.
