Tuesday, July 04, 2023

three.js + CSG (Constructive Solid Geometry)

Constructive solid geometry - Wikipedia

An object is constructed from primitives by means of allowable operations, which are typically Boolean operations on setsunionintersection and difference, as well as geometric transformations of those sets

a new lib for three.js

gkjohnson/three-bvh-csg: A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh @GitHub

An experimental, in progress, flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh. More than 100 times faster than other BSP-based three.js CSG libraries in complex cases.

example: three.js geometry - csg

three-bvh-csg - Simple CSG (house - windows)


Constructive Solid Geometry - Three.js Tutorials @SBCODE.net


Sean-Bradley/THREE-CSGMesh: Constructive Solid Geometry @GitHub

This repo is originally forked from https://github.com/manthrax/THREE-CSGMesh


original solution / alternative, supports three.js until release 124 (current is 150+)

ThreeCSG/ThreeCSG.js at master · chandlerprall/ThreeCSG · GitHub

javascript - How create window, holes or subtract geometry in three.js - Stack Overflow

Wilt/ThreeCSG: CSG plugin for Three.js


discusssion

Constructive Solid Geometry (CSG) Support · Issue #16099 · mrdoob/three.js

No comments: