Skip to content
/ rbxcad Public

roblox-typescript port of JSCAD (CSG in JavaScript)

License

Notifications You must be signed in to change notification settings

shrjrd/rbxcad

Repository files navigation

rbxtscad

Solid Modelling Library for 2D and 3D Geometries

jscad/[email protected] ported to roblox-ts

Note

Work in progress, check TODO

Overview

This library contains boolean operations based on Constructive Solid Geometry (CSG). CSG is a modelling technique that uses boolean operations like union and intersection to combine 3D solids. This library implements CSG operations on meshes elegantly and concisely using BSP trees, and is meant to serve as an easily understandable implementation of the algorithm.

Building from source

npm install
rbxtsc --verbose
rojo build default.project.json -o Place.rbxl

Installation as package

Documentation

Running Tests

Note

Jest Lua depends on debug.loadmodule (FFlagEnableLoadModule) to run tests.

To run unit tests, build default.project.json then start a playtest session in Run Mode (F8).

Copyrights

Some copyrights apply from integration of original libraries.

CSG Library : Copyright (c) 2012 Joost Nieuwenhuijse, under the MIT license. Copyright (c) 2011 Evan Wallace, under MIT license.

Portions of glMatrix Library: Copyright (c) 2015-2020, Brandon Jones, Colin MacKenzie IV, under MIT license.

Quickhull Library: Copyright (c) 2015 Mauricio Poppe, under the MIT license.


This project is released under the MIT License.

MIT License

Releases

No releases published

Packages

No packages published