# Vertex Groups Support

**URL:** <https://forum.babylonjs.com/t/vertex-groups-support/30478>\
**Category:** Questions\
**Created:** [May 18, 2022, 6:29am UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478 "2022-05-18T06:29:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kieran\_Reilly](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kieran_reilly/32/24455_2.png) [@Kieran\_Reilly](https://forum.babylonjs.com/u/Kieran_Reilly)\
**Post date:** [May 18, 2022, 6:29am UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/1 "2022-05-18T06:29:50Z")

</div>

Good day,

I’m hoping to find out if Babylon supports Vertex Groups or the grouping of vertices on a mesh, and if it would be possible to update that group along an axis by n units?

I’m very new to graphics, and any assistance or pointing me in the right direction would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [May 18, 2022, 12:28pm UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/2 "2022-05-18T12:28:47Z")

</div>

Hi @Kieran_Reilly and welcome to the community.

> [@Kieran\_Reilly](#):
>
> Vertex Groups

I do not know about vertex groups, however a search for vertex groups in the forum bring up some threads relating to vertex groups and Blender.

> [@Kieran\_Reilly](#):
>
> grouping of vertices on a mesh,

Perhaps submeshes would meet this need?

[submeshes example of one use](https://doc.babylonjs.com/divingDeeper/materials/using/multiMaterials)

[https://doc.babylonjs.com/typedoc/classes/babylon.submesh](https://doc.babylonjs.com/typedoc/classes/babylon.submesh)

---

<div class="post-metadata">

**Author:** ![Kieran\_Reilly](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kieran_reilly/32/24455_2.png) [@Kieran\_Reilly](https://forum.babylonjs.com/u/Kieran_Reilly)\
**Post date:** [May 19, 2022, 6:53am UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/3 "2022-05-19T06:53:34Z")

</div>

Hey John.

Thanks for the warm welcome and taking the time to reply.

I had a look at the submesh example you posted and see the benefits submeshes buy you in terms of multi-materials. Would it be possible to query a submesh and apply a transformation to it, such as changing it’s position or scaling it along an axis?

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [May 19, 2022, 8:00am UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/4 "2022-05-19T08:00:37Z")

</div>

Having looked at a subMesh in more detail it appears to be an abstract holder for a limited section of a mesh rather than a mesh in its own right. This means the answer to your question is no, unfortunately.

To me it looks like to create a ‘Vertex Group’ as you need, according to your description, there are two ways to go.

1. Manipulate the vertex data within a section of the mesh, probably using matrices.

2. Build a new mesh for each section of the vertex data you want as a vertex group, parent these new meshes to a root and then position and scale the new meshes individually.

Where is the mesh you want to divide into groups coming from? Are you creating it directly with Babylon.js or are you importing it?

---

<div class="post-metadata">

**Author:** ![Kieran\_Reilly](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kieran_reilly/32/24455_2.png) [@Kieran\_Reilly](https://forum.babylonjs.com/u/Kieran_Reilly)\
**Post date:** [May 20, 2022, 6:22am UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/5 "2022-05-20T06:22:31Z")

</div>

Thanks for the direction.

We’re looking to generate rounded planes within Babylon similar to the one in this [example](https://playground.babylonjs.com/#Q80Z0C#14).

However we’d like to section the plane into 5 groups, 4 groups containing the rounded corner areas, and 1 group containing the middle rectangle area.

We’d then like to scale the middle rectangle area along an axis as well as re-position the corner sections accordingly.

From your description above, I have a feeling using matrices is probably the best bet to achieve this result

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [June 15, 2022, 12:29pm UTC](https://forum.babylonjs.com/t/vertex-groups-support/30478/6 "2022-06-15T12:29:27Z")

</div>

Hi just checking in, was your question solved? @Kieran_Reilly
