Voltar ao ranking

xibyte/jsketcher

JavaScriptweb-cad.org

Parametric 2D and 3D modeler written in pure javascript

cadsketches3d-models2d-sketchesparametricbrep
Crescimento de estrelas
Estrelas
1.7k
Forks
312
Crescimento semanal
Issues
37
5001k1.5k
ago. de 2016nov. de 2019mar. de 2023jul. de 2026
Artefatosnpmnpm install jsketcher
README

JSketcher

JSketcher Logo

JSketcher is a parametric 2D and 3D CAD modeler written in pure javascript

YouTube Tutorial Video

Live Sample Demo

2D Sketcher

Help Docs

Workbench Dev Guide

Comercial Licencing

Please consider supporting this project by becoming a backer

Current Status

JSketcher is a parametric 3d modeler employing a 2D constraint solver for sketches and the feature/history metaphor to build models. The 2D constraint solver is completely written in javascript/typescript and is implemented in both the 3D CAD and the 2D sketcher. Originally developed by xibyte to make models for 3d printing. Today JSketcher provides a rich set of tools for visualizing, selecting/interacting with 3D geometry, tracking and storing model history all built on the foundation of the 2D sketcher engine and employing OpenCascade for solid modeling operations.

Major Components and features

  • Geometric Constraint Solver. This is a most crucial component which allows to solve a system of geometric constraints applied to a sketch. See below the list of supported constraints.
  • 2D Sketcher. Allows to design 2d sketches applying geometric constraints. Uses HTML5 canvas for rendering.
  • 3D Boolean engine. OpenCascade is used to perform booleans on BREP objects.
  • Feature History. Accumulates features builds a 3d model step by step. A compare step is employed to propagate edge/face IDs forward to provide a stable and robust model.
  • Export to STL, DWG and SVG formats
  • Saving projects in the browser locale storage
  • Repository of dimensions. For example if there is a line length constraint applied, it's not necessary to hardcode some length value. A dimension with a symbolic name can be created and the constraint can refer to that dimension by name. Once value of dimension gets changed the sketch is resolved again accordingly to the new dimension values.
  • 2D measurement tool. Allows adding dimensions on a 2D drawing(Linear, Vertical, Horizontal and Arc/Circle dimension are supported)
  • No any server-side needed. Only client side Javascript and wasm.

This modeler is already used for:

  • Designing of 3d models to get them 3d-printed. 3D models are based on parametric 2d sketches. All models can be exported as an STL file and 3d-printed after.
  • Creating of 2d parametric sketches which could be exported to DWG or SVG format.

Supported Constraints

  • Coincident
  • Vertical
  • Horizontal
  • Parallel
  • Perpendicular
  • Point to Line Distance
  • Point to Object Distance
  • Entity Equality(radius/length)
  • Tangent
  • Radius
  • Point On Line
  • Point On Arc / Ellipse
  • Point In Middle
  • Angle
  • Symmetry
  • Lock Convexity
  • Fillet Meta Constraint

Get Started With the Code

Install node.js

  • $ cd <jsketcher folder>
  • $ npm install
  • $ npm start

Contributing Please see .github/CONTRIBUTING.md

Repositórios relacionados
FreeCAD/FreeCAD

Official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.

C++GNU Lesser General Public License v2.1freecadengineering
freecad.org
32.3k5.8k
openscad/openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller

C++Other3d-modelsdxf-files
openscad.org
9.8k1.6k
earthtojake/text-to-cad

A collection of agent skills for CAD, robotics and hardware design

JavaScriptnpmMIT Licenseagentsai-agents
cadskills.xyz
9.2k1k
LibreCAD/LibreCAD

LibreCAD is a cross-platform 2D CAD program. It can read DXF/DWG, and write DXF/DWG/PDF/SVG files. It supports point/line/circle/ellipse/parabola/hyperbola/spline primitives. The GUI is highly customizable, and has dozens of translations.

C++Othercadqt
librecad.org
6.1k1.3k
CadQuery/cadquery

A python parametric CAD scripting framework based on OCCT

PythonPyPIOtherpythonparametric
cadquery.org
5.5k520
Adam-CAD/CADAM

CADAM is the open source text-to-CAD web application

TypeScriptnpmGNU General Public License v3.0aicad
adam.new/cadam
4.8k598
xiangechen/chili3d

A browser-based 3D CAD application for online model design and editing

TypeScriptnpmGNU Affero General Public License v3.0cadopencascade
chili3d.com
4.7k451
solvespace/solvespace

Parametric 2d/3d CAD

C++GNU General Public License v3.0cadparametric
solvespace.com
4k584
Keychron/Keychron-Keyboards-Hardware-Design

Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms.

Other3d-printingcad
keychron.com
3.6k284
atopile/atopile

Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

PythonPyPIMIT Licensecadeda
atopile.io
3.5k219
LibrePCB/LibrePCB

A powerful, innovative and intuitive EDA suite for everyone!

C++GNU General Public License v3.0edaelectronics
librepcb.org
2.9k330
leozide/leocad

A CAD application for creating virtual LEGO models

C++lego-cadldraw
leocad.org
2.8k255