# \#geometry

**URL:** https://forum.babylonjs.com/tag/geometry/74.md

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

---

## [Calling clearCachedData on a transparent mesh will cause an error](https://forum.babylonjs.com/t/calling-clearcacheddata-on-a-transparent-mesh-will-cause-an-error/61946)

<div class="topic-metadata">

**Author:** [@Starryi](https://forum.babylonjs.com/u/Starryi)\
**Replies:** 1\
**Last updated:** [December 29, 2025, 11:05am UTC](https://forum.babylonjs.com/t/calling-clearcacheddata-on-a-transparent-mesh-will-cause-an-error/61946 "2025-12-29T11:05:24Z")

</div>

At runtime, calling clearCachedData on a transparent mesh will cause an error. https://playground.babylonjs.com/#9VSO12 The reason is that geometry.getTotalIndices return 0, after calling geometry.clearCachedData, …

---

## [Real-Time Parametric Geometry Editing in Babylon.js](https://forum.babylonjs.com/t/real-time-parametric-geometry-editing-in-babylon-js/61361)

<div class="topic-metadata">

**Author:** [@Rayan\_Farhat](https://forum.babylonjs.com/u/Rayan_Farhat)\
**Replies:** 29\
**Last updated:** [November 23, 2025, 3:52pm UTC](https://forum.babylonjs.com/t/real-time-parametric-geometry-editing-in-babylon-js/61361 "2025-11-23T15:52:28Z")

</div>

Hi all, One limitation in Babylon.js is that once you create a mesh, its geometry isn’t easily editable in real time—you lose the original primitive parameters. I wrote a short article explaining how to solve this prob…

---

## [\`numOfMeshes === 1\` check in Geometry.\_applyToMesh](https://forum.babylonjs.com/t/numofmeshes-1-check-in-geometry-applytomesh/60260)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 9\
**Last updated:** [September 3, 2025, 2:51pm UTC](https://forum.babylonjs.com/t/numofmeshes-1-check-in-geometry-applytomesh/60260 "2025-09-03T14:51:28Z")

</div>

In Geometry.\_applyToMesh, there are numOfMeshes === 1 checks, which uploads data to gpu if the geometry has exactly 1 mesh. \_applyToMesh is used in 2 places, applyToMesh, where meshes are added one by one, it’s ok to us…

---

## [Redundant getFloatData in Geometry.setVerticesBuffer](https://forum.babylonjs.com/t/redundant-getfloatdata-in-geometry-setverticesbuffer/60063)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 6\
**Last updated:** [August 18, 2025, 2:52pm UTC](https://forum.babylonjs.com/t/redundant-getfloatdata-in-geometry-setverticesbuffer/60063 "2025-08-18T14:52:56Z")

</div>

Background Currently in Geometry.setVerticesBuffer, it called this.\_updateExtend(buffer.getFloatData(this.\_totalVertices));, if setting a position buffer. But the result of getFloatData is ignored, if this.useBoundingI…

---

## [Parametric Fun with Babylon.js + Bitbybit 🚀](https://forum.babylonjs.com/t/parametric-fun-with-babylon-js-bitbybit/58784)

<div class="topic-metadata">

**Author:** [@bitbybit-dev](https://forum.babylonjs.com/u/bitbybit-dev)\
**Replies:** 2\
**Last updated:** [June 2, 2025, 5:45pm UTC](https://forum.babylonjs.com/t/parametric-fun-with-babylon-js-bitbybit/58784 "2025-06-02T17:45:56Z")

</div>

Hi community, I’ve recently added a dedicated Babylon.js documentation section for open-source parts of Bitbybit, which you can explore here: :page\_facing\_up: Docs are also on GitHub One of the featured apps include…

---

## [Walking on Snow](https://forum.babylonjs.com/t/walking-on-snow/50520)

<div class="topic-metadata">

**Author:** [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Replies:** 12\
**Last updated:** [February 22, 2025, 1:55am UTC](https://forum.babylonjs.com/t/walking-on-snow/50520 "2025-02-22T01:55:22Z")

</div>

Hello :slight\_smile: I was working on updating some geometry, based on some Ray Casting process… And I ended up with this funny Playground, so I share :grin: It’s based on a very simple trick : For each ground vert…

---

## [Catmull-Clark subdivision](https://forum.babylonjs.com/t/catmull-clark-subdivision/41134)

<div class="topic-metadata">

**Author:** [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Replies:** 10\
**Last updated:** [November 19, 2024, 8:49am UTC](https://forum.babylonjs.com/t/catmull-clark-subdivision/41134 "2024-11-19T08:49:06Z")

</div>

This would be an awesome addition, specially when the original mesh could be animated while only the subdivised mesh is visible

---

## [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…

---

## [Semi-procedural landscape generation](https://forum.babylonjs.com/t/semi-procedural-landscape-generation/54572)

<div class="topic-metadata">

**Author:** [@simon](https://forum.babylonjs.com/u/simon)\
**Replies:** 9\
**Last updated:** [November 11, 2024, 6:23pm UTC](https://forum.babylonjs.com/t/semi-procedural-landscape-generation/54572 "2024-11-11T18:23:12Z")

</div>

Hello there! I’d like to share my new project, where we will explore methods for generating semi-procedural landscapes in BabylonJS. In the article, I provide detailed explanations of several approaches t…

---

## [Memory Management: Cleaning up \_geometriesByUniqueId, Material meshMap, and clonedMeshMap](https://forum.babylonjs.com/t/memory-management-cleaning-up-geometriesbyuniqueid-material-meshmap-and-clonedmeshmap/52990)

<div class="topic-metadata">

**Author:** [@yong\_hu](https://forum.babylonjs.com/u/yong_hu)\
**Replies:** 3\
**Last updated:** [September 3, 2024, 3:18pm UTC](https://forum.babylonjs.com/t/memory-management-cleaning-up-geometriesbyuniqueid-material-meshmap-and-clonedmeshmap/52990 "2024-09-03T15:18:55Z")

</div>

Hello Babylon.js community, I’m working on a project that renders vehicle visualization data. I’m trying to optimize memory usage by removing unnecessary references. I have a few questions about my current approach: I…

---

## [Dropping an ambient shadow on ground](https://forum.babylonjs.com/t/dropping-an-ambient-shadow-on-ground/44896)

<div class="topic-metadata">

**Author:** [@evidanary](https://forum.babylonjs.com/u/evidanary)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 9:18am UTC](https://forum.babylonjs.com/t/dropping-an-ambient-shadow-on-ground/44896 "2024-04-01T09:18:02Z")

</div>

What’s the recommended technique to create mesh accurate ambient shadows of GLB models on ground like sketchfab does. I can think of one technique but not sure if there are better ways to achieve this: Use blender …

---

## [Geometry and Texture radius match](https://forum.babylonjs.com/t/geometry-and-texture-radius-match/45408)

<div class="topic-metadata">

**Author:** [@PichouPichou](https://forum.babylonjs.com/u/PichouPichou)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 4:56pm UTC](https://forum.babylonjs.com/t/geometry-and-texture-radius-match/45408 "2023-11-03T16:56:15Z")

</div>

Hello everyone, I am currently working on an object that is a 3D card with text on it. Everything works great thanks to the help of @Evgeni\_Popov in this other thread And now I want to add a border to my card. But dep…

---

## [ConvexHull faces](https://forum.babylonjs.com/t/convexhull-faces/42187)

<div class="topic-metadata">

**Author:** [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Replies:** 5\
**Last updated:** [July 10, 2023, 12:54pm UTC](https://forum.babylonjs.com/t/convexhull-faces/42187 "2023-07-10T12:54:47Z")

</div>

With the enormous contribution of @carolhmj I have this ConvexHull going on but there are some things going on that i don’t understand. Focus on the buildRenderableMesh() section from line 379- 421. Probably best have t…

---

## [Bevel or rounding method](https://forum.babylonjs.com/t/bevel-or-rounding-method/41358)

<div class="topic-metadata">

**Author:** [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Replies:** 8\
**Last updated:** [June 13, 2023, 12:43pm UTC](https://forum.babylonjs.com/t/bevel-or-rounding-method/41358 "2023-06-13T12:43:46Z")

</div>

While ducking, seeing it has been asked before and realising this isn’t an easy thing I’m thinking asking never harms ( except for my reputation probably :wink: )

---

## [Make CONVEX\_HULL visible](https://forum.babylonjs.com/t/make-convex-hull-visible/41236)

<div class="topic-metadata">

**Author:** [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Replies:** 6\
**Last updated:** [May 31, 2023, 1:14am UTC](https://forum.babylonjs.com/t/make-convex-hull-visible/41236 "2023-05-31T01:14:33Z")

</div>

Is there a way to convert a physics convex hull to a custom mesh?

---

## [A sphere of spiralling spheres - Maths challenge](https://forum.babylonjs.com/t/a-sphere-of-spiralling-spheres-maths-challenge/41130)

<div class="topic-metadata">

**Author:** [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Replies:** 7\
**Last updated:** [May 26, 2023, 12:57pm UTC](https://forum.babylonjs.com/t/a-sphere-of-spiralling-spheres-maths-challenge/41130 "2023-05-26T12:57:52Z")

</div>

Can someone solve the problem of placing points (spheres in this case to visualise it) on a sphere in a spiralling fashion like this: I seem to be complicating things in line 19 but i can’t find the answer and chatGPT …

---

## [How to get rid of aliasing effect of clipping](https://forum.babylonjs.com/t/how-to-get-rid-of-aliasing-effect-of-clipping/39571)

<div class="topic-metadata">

**Author:** [@Argha\_Chakraborty](https://forum.babylonjs.com/u/Argha_Chakraborty)\
**Replies:** 3\
**Last updated:** [April 3, 2023, 3:55pm UTC](https://forum.babylonjs.com/t/how-to-get-rid-of-aliasing-effect-of-clipping/39571 "2023-04-03T15:55:53Z")

</div>

How to get rid of severe aliasing effect of clipping with solid caps. https://www.babylonjs-playground.com/#95MJI8#368 Found this example from Babylon js forum itself, but it has a lot of aliasing effect. Need help of …

---

## [From MeshBuilder.CreatePlane how to get the equation of mathematical Plane](https://forum.babylonjs.com/t/from-meshbuilder-createplane-how-to-get-the-equation-of-mathematical-plane/39388)

<div class="topic-metadata">

**Author:** [@Argha\_Chakraborty](https://forum.babylonjs.com/u/Argha_Chakraborty)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 8:59am UTC](https://forum.babylonjs.com/t/from-meshbuilder-createplane-how-to-get-the-equation-of-mathematical-plane/39388 "2023-03-28T08:59:38Z")

</div>

I am interested to find the a,b,c,d parameters of a plane ax + by + cz + d = 0, from a plane mesh formed by MeshBuilder.CreatePlane. Ideally, I need to find the normalized normal(a,b,c) and the distance (d) of the plane…

---

## [Imported meshes appear broken if they have the same geometry uniqueId](https://forum.babylonjs.com/t/imported-meshes-appear-broken-if-they-have-the-same-geometry-uniqueid/33567)

<div class="topic-metadata">

**Author:** [@reb-ic](https://forum.babylonjs.com/u/reb-ic)\
**Replies:** 8\
**Last updated:** [February 1, 2023, 2:27pm UTC](https://forum.babylonjs.com/t/imported-meshes-appear-broken-if-they-have-the-same-geometry-uniqueid/33567 "2023-02-01T14:27:07Z")

</div>

Hi, i noticed that when i load two models serialized in the .babylon format (with babylonjs 5), if the meshes has the same geometry uniqueId in the own .babylon file, at the second imported mesh is assigned the geometry…

---

## [A cube using 24 vertices brings some thinking](https://forum.babylonjs.com/t/a-cube-using-24-vertices-brings-some-thinking/31514)

<div class="topic-metadata">

**Author:** [@ecojust](https://forum.babylonjs.com/u/ecojust)\
**Replies:** 11\
**Last updated:** [June 21, 2022, 2:49am UTC](https://forum.babylonjs.com/t/a-cube-using-24-vertices-brings-some-thinking/31514 "2022-06-21T02:49:58Z")

</div>

We know that a cube has eight vertices，Because of the principle of triangle drawing, we need to draw 12 faces So, to draw a cube, we need to draw 12 triangles with eight vertices posiiton:8 indices:12 \* 3=36 I built …

---

## [Transparent planes occluding or z-fighting each other](https://forum.babylonjs.com/t/transparent-planes-occluding-or-z-fighting-each-other/28851)

<div class="topic-metadata">

**Author:** [@ldogg](https://forum.babylonjs.com/u/ldogg)\
**Replies:** 10\
**Last updated:** [March 30, 2022, 9:51am UTC](https://forum.babylonjs.com/t/transparent-planes-occluding-or-z-fighting-each-other/28851 "2022-03-30T09:51:33Z")

</div>

Hi all! I have a problem that’s completely stumped me that I’m hoping someone can help me fix. So for context, In my program, users control small disc shaped avatars. In reality, the disc shaped avatars are actually tran…

---

## [Logic of vertex ordering of box builder](https://forum.babylonjs.com/t/logic-of-vertex-ordering-of-box-builder/26009)

<div class="topic-metadata">

**Author:** [@andreasplesch](https://forum.babylonjs.com/u/andreasplesch)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 2:30pm UTC](https://forum.babylonjs.com/t/logic-of-vertex-ordering-of-box-builder/26009 "2021-12-13T14:30:00Z")

</div>

I am trying to understand the MeshBuilder and its strategies because I want to decide if I may be better off just using vertex data. First I want to understand the reason why vertices are ordered the way they are for th…
