# \#csg2

**URL:** https://forum.babylonjs.com/tag/csg2/514.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Relative position of CSG2 mesh and meshes it was derived from](https://forum.babylonjs.com/t/relative-position-of-csg2-mesh-and-meshes-it-was-derived-from/64347)

<div class="topic-metadata">

**Author:** [@flex](https://forum.babylonjs.com/u/flex)\
**Replies:** 2\
**Last updated:** [October 22, 2026, 3:23pm UTC](https://forum.babylonjs.com/t/relative-position-of-csg2-mesh-and-meshes-it-was-derived-from/64347 "2026-10-22T15:23:15Z")

</div>

Hi Everyone- I know how to do this using the old CSG classes but can’t figure out how to do it with CSG2. This playground shows a simple method for creating 4 walls (example just shows 1) on the 4 faces of a box by sub…

---

## [BooleanGeometryBlock throws "same number of properties" when one input has a second UV set (since 8.49.7)](https://forum.babylonjs.com/t/booleangeometryblock-throws-same-number-of-properties-when-one-input-has-a-second-uv-set-since-8-49-7/64193)

<div class="topic-metadata">

**Author:** [@mclevenger](https://forum.babylonjs.com/u/mclevenger)\
**Replies:** 3\
**Last updated:** [October 1, 2026, 4:15pm UTC](https://forum.babylonjs.com/t/booleangeometryblock-throws-same-number-of-properties-when-one-input-has-a-second-uv-set-since-8-49-7/64193 "2026-10-01T16:15:59Z")

</div>

BooleanGeometryBlock throws “same number of properties” when one input has a second UV set (since 8.49.7) Regression from PR #17805 “Fix CSG2 losing uvs data” (forum thread), shipped in 8.49.7. The Playground below buil…

---

## [Subtract text from a mesh](https://forum.babylonjs.com/t/subtract-text-from-a-mesh/63063)

<div class="topic-metadata">

**Author:** [@Trevor\_Orr](https://forum.babylonjs.com/u/Trevor_Orr)\
**Replies:** 11\
**Last updated:** [April 12, 2026, 4:17pm UTC](https://forum.babylonjs.com/t/subtract-text-from-a-mesh/63063 "2026-04-12T16:17:39Z")

</div>

I am playing around with trying to subtract text from a mesh using csg2 and not having much luck with it. I am getting the error: Error while creating the CSG: Not manifold I have done a lot of searching and try differe…

---

## [MeshBuilder and CSG2](https://forum.babylonjs.com/t/meshbuilder-and-csg2/62944)

<div class="topic-metadata">

**Author:** [@Trevor\_Orr](https://forum.babylonjs.com/u/Trevor_Orr)\
**Replies:** 2\
**Last updated:** [March 26, 2026, 11:18pm UTC](https://forum.babylonjs.com/t/meshbuilder-and-csg2/62944 "2026-03-26T23:18:15Z")

</div>

I am new to Babylon but come using Three.js. I am playing around with MeshBuilder and CSG2. I am creating two 90 degree cylinders and subtracting the smaller one from the bigger one and get this odd piece that is not r…

---

## [CSG2 finite vertex error on ExtrudeShapeCustom mesh](https://forum.babylonjs.com/t/csg2-finite-vertex-error-on-extrudeshapecustom-mesh/62415)

<div class="topic-metadata">

**Author:** [@colin\_coin\_coin](https://forum.babylonjs.com/u/colin_coin_coin)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 4:32pm UTC](https://forum.babylonjs.com/t/csg2-finite-vertex-error-on-extrudeshapecustom-mesh/62415 "2026-02-11T16:32:08Z")

</div>

Hello everyone! After having moved to JSCad because CSG (1) wasn’t that great, I was delighted to learn about CSG2. It works perfectly and it’s soooo fast. However, I encountered an issue on one of the meshes from my pr…

---

## [CSG2 discards uv2-uv6](https://forum.babylonjs.com/t/csg2-discards-uv2-uv6/62309)

<div class="topic-metadata">

**Author:** [@krantz-ikea](https://forum.babylonjs.com/u/krantz-ikea)\
**Replies:** 4\
**Last updated:** [February 3, 2026, 8:42am UTC](https://forum.babylonjs.com/t/csg2-discards-uv2-uv6/62309 "2026-02-03T08:42:49Z")

</div>

Hello! While working on migrating to CSG2, I discovered that several vertex channels are lost somewhere in operation. Digging deeper, I noticed that the CSG2.FromMesh gets the vertex data with UV2Kind and sends it on to C…

---

## [CSG2 : Can create mesh in one playground and not another](https://forum.babylonjs.com/t/csg2-can-create-mesh-in-one-playground-and-not-another/61324)

<div class="topic-metadata">

**Author:** [@mjl](https://forum.babylonjs.com/u/mjl)\
**Replies:** 2\
**Last updated:** [November 10, 2025, 2:37am UTC](https://forum.babylonjs.com/t/csg2-can-create-mesh-in-one-playground-and-not-another/61324 "2025-11-10T02:37:29Z")

</div>

Hello, I’m having issues using CSG2 to create an object from a Mesh. So I went to a demo PG (https://playground.babylonjs.com/#PJQHYV#1), stripped out all the stuff I didn’t need and was able to recreate and solve my is…

---

## [CSG2 Same operation fails in TS but not in JS](https://forum.babylonjs.com/t/csg2-same-operation-fails-in-ts-but-not-in-js/60281)

<div class="topic-metadata">

**Author:** [@Teych](https://forum.babylonjs.com/u/Teych)\
**Replies:** 4\
**Last updated:** [August 28, 2025, 5:08pm UTC](https://forum.babylonjs.com/t/csg2-same-operation-fails-in-ts-but-not-in-js/60281 "2025-08-28T17:08:45Z")

</div>

Playground Version: 8.25.0 Browser: MS Edge Playground JS: BoxCSG\_JS | Babylon.js Playground Playground TS: BoxCSG\_TS\_Broken | Babylon.js Playground I have been trying to mess around with CSG in a project of mine and…

---

## [Option to inject Manifold for CSG to use](https://forum.babylonjs.com/t/option-to-inject-manifold-for-csg-to-use/59026)

<div class="topic-metadata">

**Author:** [@regna](https://forum.babylonjs.com/u/regna)\
**Replies:** 2\
**Last updated:** [June 18, 2025, 5:06pm UTC](https://forum.babylonjs.com/t/option-to-inject-manifold-for-csg-to-use/59026 "2025-06-18T17:06:28Z")

</div>

Similar to how we can inject a self-loaded Havok as hpInjection into HavokPlugin, could we please have a way to inject a self-loaded Manifold and ManifoldMesh into CSG (which currently has Manifold and ManifoldMesh as lo…

---

## [Why does the bottom face turn black when subtracting cubes using CSG2?](https://forum.babylonjs.com/t/why-does-the-bottom-face-turn-black-when-subtracting-cubes-using-csg2/58276)

<div class="topic-metadata">

**Author:** [@cx20](https://forum.babylonjs.com/u/cx20)\
**Replies:** 3\
**Last updated:** [May 6, 2025, 5:02pm UTC](https://forum.babylonjs.com/t/why-does-the-bottom-face-turn-black-when-subtracting-cubes-using-csg2/58276 "2025-05-06T17:02:41Z")

</div>

I experimented with hollowing out a cube using both CSG and CSG2. In both cases, I applied an orange material to the mesh after hollowing out the cube. I was hoping that both would produce the same results, but for som…

---

## [Material incorrect after glb export of CSG2 mesh](https://forum.babylonjs.com/t/material-incorrect-after-glb-export-of-csg2-mesh/58238)

<div class="topic-metadata">

**Author:** [@cx20](https://forum.babylonjs.com/u/cx20)\
**Replies:** 2\
**Last updated:** [May 5, 2025, 2:34am UTC](https://forum.babylonjs.com/t/material-incorrect-after-glb-export-of-csg2-mesh/58238 "2025-05-05T02:34:24Z")

</div>

I created a model using CSG2 and saved it in glb format using the Inspector. When I loaded it in the Sandbox, it seems that the material was not correctly preserved. Is this an issue with how I’m using it?

---

## [Strange CSG2 result when using ExtrudeShape as brushes](https://forum.babylonjs.com/t/strange-csg2-result-when-using-extrudeshape-as-brushes/56704)

<div class="topic-metadata">

**Author:** [@Naznarok](https://forum.babylonjs.com/u/Naznarok)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 5:21pm UTC](https://forum.babylonjs.com/t/strange-csg2-result-when-using-extrudeshape-as-brushes/56704 "2025-02-21T17:21:37Z")

</div>

Shape extrusion test | Babylon.js Playground Hello! Trying to use CSG2 with two ExtrudeShape meshes but getting strange result (Check playground). What am i doing wrong? If i use meshes created using createBox everyt…

---

## [CSG2 errors or not expected result](https://forum.babylonjs.com/t/csg2-errors-or-not-expected-result/56550)

<div class="topic-metadata">

**Author:** [@fybo](https://forum.babylonjs.com/u/fybo)\
**Replies:** 4\
**Last updated:** [February 19, 2025, 3:51pm UTC](https://forum.babylonjs.com/t/csg2-errors-or-not-expected-result/56550 "2025-02-19T15:51:34Z")

</div>

Hello, In a previous post, I mentioned an issue with CSG that was causing some errors : With the release of CSG2, I wanted to update the PG to see how the new version performed : After some test, I encounter followi…

---

## [Initializing CSG2 in Node.JS](https://forum.babylonjs.com/t/initializing-csg2-in-node-js/56431)

<div class="topic-metadata">

**Author:** [@Benoittr](https://forum.babylonjs.com/u/Benoittr)\
**Replies:** 7\
**Last updated:** [February 7, 2025, 4:24pm UTC](https://forum.babylonjs.com/t/initializing-csg2-in-node-js/56431 "2025-02-07T16:24:12Z")

</div>

Im using Babylon in headless mode using NullEngine in Node.Js BABYLON.InitializeCSG2Async() does not enjoy being outside of the browser. Is there a workaround? I’ve tried to load jsdom manually to no extend (initializ…

---

## [Spherical (double) Wedge with CSG2. Reusable class, fast update](https://forum.babylonjs.com/t/spherical-double-wedge-with-csg2-reusable-class-fast-update/55648)

<div class="topic-metadata">

**Author:** [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Replies:** 4\
**Last updated:** [January 4, 2025, 4:33am UTC](https://forum.babylonjs.com/t/spherical-double-wedge-with-csg2-reusable-class-fast-update/55648 "2025-01-04T04:33:47Z")

</div>

Double wedge (horizontal and vertical) with Sliders allowing you to change the cut angles. Keep min/max angles within 2\*PI of each other, otherwise that direction won’t be cut. Using a sphere as the base shape, but can …

---

## [Syncronously initializing CSG2?](https://forum.babylonjs.com/t/syncronously-initializing-csg2/55620)

<div class="topic-metadata">

**Author:** [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Replies:** 2\
**Last updated:** [December 31, 2024, 12:52am UTC](https://forum.babylonjs.com/t/syncronously-initializing-csg2/55620 "2024-12-31T00:52:58Z")

</div>

How do I initialize CGS2 syncronously from within a non-async function? If I use await BABYLON.InitializeCSG2Async();, it has to be within an async function. Then that function becomes asyncronous itself, right? Can I …

---

## [CSG2 precise problem](https://forum.babylonjs.com/t/csg2-precise-problem/55319)

<div class="topic-metadata">

**Author:** [@Jakkapong\_Rattananen](https://forum.babylonjs.com/u/Jakkapong_Rattananen)\
**Replies:** 10\
**Last updated:** [December 18, 2024, 9:43pm UTC](https://forum.babylonjs.com/t/csg2-precise-problem/55319 "2024-12-18T21:43:52Z")

</div>

After i try to update my project by move from CSG to CSG2. I found some problem with CSG2. I make example here. CSG and CSG2 has different result, and CSG got better result. If i did something wrong or there is wor…

---

## [Bug when cutting GLTF object with CSG2](https://forum.babylonjs.com/t/bug-when-cutting-gltf-object-with-csg2/54345)

<div class="topic-metadata">

**Author:** [@bvaisman](https://forum.babylonjs.com/u/bvaisman)\
**Replies:** 34\
**Last updated:** [December 18, 2024, 6:54am UTC](https://forum.babylonjs.com/t/bug-when-cutting-gltf-object-with-csg2/54345 "2024-12-18T06:54:24Z")

</div>

Hi everybody, I tried to use the new CSG class to replace all my CSG work but I have an issue when cutting a GLTF profile. I’ve made a PG here : https://playground.babylonjs.com/#M829XG#17 You can change the CSG versi…

---

## [Is there any way to split the plane using CSG2?](https://forum.babylonjs.com/t/is-there-any-way-to-split-the-plane-using-csg2/55291)

<div class="topic-metadata">

**Author:** [@rr\_cai](https://forum.babylonjs.com/u/rr_cai)\
**Replies:** 5\
**Last updated:** [December 11, 2024, 1:21am UTC](https://forum.babylonjs.com/t/is-there-any-way-to-split-the-plane-using-csg2/55291 "2024-12-11T01:21:01Z")

</div>

Because OIT is more performance consuming, I want to try to achieve correct transparent rendering by splitting plane sort. However, CSG2 does not seem to support Plane. PG:https://playground.babylonjs.com/#PJQHYV#10

---

## [CSG2 should return CSG2 type instead of any](https://forum.babylonjs.com/t/csg2-should-return-csg2-type-instead-of-any/54897)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [November 22, 2024, 5:18am UTC](https://forum.babylonjs.com/t/csg2-should-return-csg2-type-instead-of-any/54897 "2024-11-22T05:18:24Z")

</div>

Version: 7.34.4 Background Currently CSG2.FromMesh and other CSG2 methods return any type, makes it harder to inference type of returned value, and make it harder for devs to get type hints compared to the old CSG. The…

---

## [CSG2: Error invoking FromMesh with a mesh from CSG2](https://forum.babylonjs.com/t/csg2-error-invoking-frommesh-with-a-mesh-from-csg2/54438)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 12\
**Last updated:** [November 12, 2024, 12:17am UTC](https://forum.babylonjs.com/t/csg2-error-invoking-frommesh-with-a-mesh-from-csg2/54438 "2024-11-12T00:17:25Z")

</div>

Version: 7.31.2 CSG2 Version: manifold-3d@2.5.1 Engine: WebGL, WebGL2, and WebGPU Browser: Chrome and Firefox and MS Edge OS: Windows 10 Playground: Desc: Using CSG2 to dig holes from a mesh, and update the verte…
