API Examples
Standalone browser demos for the BREP kernel and Sketcher2D APIs. This page links every live .html demo under /apiExamples/, including the examples index page.
Example Hub
BREP Booleans
BREP Primitives
BREP Transforms
BREP Export
Embeded 2D Sketcher
- Demo: https://BREP.io/apiExamples/Embeded_2D_Sketcher.html
- Source: apiExamples/Embeded_2D_Sketcher.html
- Includes host-side exports for SVG, DXF, and sampled per-curve 3D polylines.
Embeded CAD
- Demo: https://BREP.io/apiExamples/Embeded_CAD.html
- Source: apiExamples/Embeded_CAD.html
- Mounts the full CAD app with the iframe-based
CadEmbedAPI and shows host-side history/model controls.
Embeded CAD (CDN)
- Demo: https://BREP.io/apiExamples/Embeded_CAD_CDN.html
- Source: apiExamples/Embeded_CAD_CDN.html
- Uses direct jsDelivr import:
import { BREP, CadEmbed } from "https://cdn.jsdelivr.net/npm/brep-io-kernel@latest/dist-kernel/brep-kernel.js";
Embeded CAD Integration Test
- Demo: https://BREP.io/apiExamples/Embeded_CAD_Integration_Test.html
- Source: apiExamples/Embeded_CAD_Integration_Test.html
- Runs in-browser assertions across the
CadEmbedlifecycle and runtime methods.