EWDraw Web 3D

 

 

EWDrawWeb3D uses the following software libraries:

### 1. Open CASCADE
- **Download URL**: https://dev.opencascade.org/release
- **License**: LGPL 2.1, OCCT_LGPL_EXCEPTION
- **URL**: https://dev.opencascade.com/resources/licensing
- **Files**: js/LICENSE_LGPL_21.txt, js/OCCT_LGPL_EXCEPTION.txt

### 2. OCE
- **Download URL**: https://github.com/tpaviot/oce
- **License**: LGPL 2.1, OCCT_LGPL_EXCEPTION
- **URL**: https://github.com/tpaviot/oce
- **Files**: js/LICENSE_LGPL_21.txt, js/OCCT_LGPL_EXCEPTION.txt

### 3. Three.js
- **Download URL**: https://threejs.org
- **License**: MIT License
- **File**: js/MIT_LICENSE.txt

### 4. EWDrawWeb3D Wrapper Files
- **EWDrawWeb3D wrapper file is based on facilities provided by the Open CASCADE Technology software.
- **Download URL**: http://ewdraw.cn/ewdrawweb3d_warpper.zip
- **License**: LGPL 2.1, OCCT_LGPL_EXCEPTION
- **Files**: js/LICENSE_LGPL_21.txt, js/OCCT_LGPL_EXCEPTION.txt

#### 4.1 Using Wrapper Files
**4.1.1** Install Open CASCADE and OCE.
**4.1.2** Install Emscripten SDK.
**4.1.3** Compile Open CASCADE and OCE.
**4.1.4** Unzip the ewdrawweb3d warpper files and place them in OCE Path\test.
**4.1.5** Modify the paths in the ewdrawweb3d warpper configuration files (default path: d:\oce-master\test).
**4.1.6** Add EWDrawWeb3D settings to oce path\CMakeFiles\Makefile2 (or regenerate the configuration using CMake)
**4.1.7** Compile the ewdrawweb3d warpper files using Emscripten.
**4.1.8** By default, the module name in ewdrawweb3d.js is Module. Change it to EWD3D_Module with whole-word matching and case-sensitive matching.
**4.1.9** Rename ewdrawweb3d.js and ewdrawweb3d.wasm to ewdrawweb3d_v3003.js and ewdrawweb3d_v3003.wasm to complete the warpper file setup.
**4.2.0** If the version of OCCT being used changes, the interfaces for invoking OCCT may also differ.
**4.2.1** To compress the file size, the wasm file can be compressed into a zip file ewdrawweb3d_v3003.zip, but corresponding adjustments to the zip file need to be made in ewdrawweb3d_v3003.js.