No description
Find a file
2022-06-25 15:19:48 -07:00
build enable css modules 2018-01-09 21:57:42 -08:00
DevGuide Minor corrections and changes to dev guide 2022-06-25 15:19:47 -07:00
misc datum move and rotate icons 2019-02-21 22:34:24 -08:00
modules Added sweep icon 2022-06-25 15:19:48 -07:00
test use actionService instead of action.service 2022-06-25 15:19:48 -07:00
web Added sweep icon 2022-06-25 15:19:48 -07:00
workbenches occ command interface 2022-06-25 15:19:47 -07:00
.babelrc enable typescript for webpack 2020-05-06 23:46:57 -07:00
.eslintrc.json update babel, webpack and add adding react 2018-01-03 01:43:38 -08:00
.gitignore add .vs to .gitignore 2017-08-23 00:14:01 -07:00
cypress.json fixing tests 2020-07-18 21:19:46 -07:00
externals.d.ts adding types for basic topo and geom objects 2020-07-17 02:32:58 -07:00
Gruntfile.js set grunt scripts for releasing 2016-12-20 02:36:49 -08:00
LICENSE add a licence 2016-08-26 16:06:34 -07:00
package-lock.json occ command interface 2022-06-25 15:19:47 -07:00
package.json added url-loaded dependancy 2021-09-22 01:50:13 +00:00
README.md fix formatting of readme.md 2022-06-25 15:19:48 -07:00
snipets for modeling api.js Added general purpose boolean opperation command and revolve function partially working. 2022-06-25 15:19:47 -07:00
tsconfig.json reolve web/app folders as modules 2021-09-19 15:12:44 -07:00
webpack.config.js mdf icons support 2022-06-25 14:32:14 -07:00

JS.Sketcher

JS.Sketcher is a parametric 2D and 3D CAD modeler written in pure javascript

YouTube Tutorial Video

Live Sample Demo

2D Sketcher

Help Docs

Dev Guide

Comercial Licencing

paypal

Current Status

I created this tool for rapid designing of 3d models for my 3D-printer.
The project is still a proof-of-concept(POC) and UI isn't perfect yet. Although a lot of work done and following core components are implemented:

  • 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 Modeller. Is used for solid modelling. Uses 2D sketches to perform EXTRUDE and CUT operations on faces of a solid object. Uses WebGL and THREE.js for rendering
  • 3D modeller supports navigation over history of modifications where parameters of the craft operations(extrude/cut) could be changed and reapplied again
  • 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.

This modeller 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