Code Monkey home page Code Monkey logo

brep.ts's Introduction

Travis npm David

brep.ts

Boundary representation volume modeling in TypeScript.

Installation

NPM: npm install brep.ts --save

Work in progress. Allows modelling volumes a boundary representations and intersecting them. See the interactive demo

Example Usage

import {B2T} from 'brep.ts'
const sphere = B2T.sphere()
const box = B2T.box()
const result = sphere.minus(box)
const resultMesh = result.toMesh()

License

MIT

brep.ts's People

Contributors

naridal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brep.ts's Issues

Generating fresh build getting errors

Attempting to build using the following commands.

npm install
npm run clean
npm run build 

Resulting error messages.

@mmiscool ➜ /workspaces/brep.ts (master) $ npm run clean

> [email protected] clean
> rm -r dist/* out/*

@mmiscool ➜ /workspaces/brep.ts (master ✗) $ npm run build

> [email protected] build
> tsc & rollup -c & npm run minify

loaded rollup.config.js with warnings
(!) Unused external imports
default imported from external module 'rollup-plugin-sourcemaps' but never used

out/index.js → dist/bundle.js, dist/bundle.module.js...
[!] Error: Could not resolve entry (out/index.js)
Error: Could not resolve entry (out/index.js)
    at error (/workspaces/brep.ts/node_modules/rollup/dist/rollup.js:3460:30)
    at /workspaces/brep.ts/node_modules/rollup/dist/rollup.js:21474:17
    at async Promise.all (index 0)


> [email protected] minify
> uglifyjs dist/bundle.js --output dist/bundle.min.js --compress --mangle && uglifyjs dist/bundle.module.js --output dist/bundle.module.min.js --compress --mangle

ERROR: ENOENT: no such file or directory, open 'dist/bundle.js'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at read_file (/workspaces/brep.ts/node_modules/uglify-es/bin/uglifyjs:338:19)
    at /workspaces/brep.ts/node_modules/uglify-es/bin/uglifyjs:167:37
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/workspaces/brep.ts/node_modules/uglify-es/bin/uglifyjs:166:31)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.