# Vertex List From Blender to Babylon

**URL:** <https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599>\
**Category:** Questions\
**Created:** [May 21, 2022, 6:54pm UTC](https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599 "2022-05-21T18:54:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamaciller](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yamaciller/32/21810_2.png) [@yamaciller](https://forum.babylonjs.com/u/yamaciller)\
**Post date:** [May 21, 2022, 6:54pm UTC](https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599/1 "2022-05-21T18:54:53Z")

</div>

Is there a way to get a Mesh resp. Vertices and indices to Babylon in the way I can use it to create meshes using BABYLON.VertexData.positions aso. ?

like this… for example. Must be some kind of exporter??

> **[Babylon.js Playground](https://playground.babylonjs.com/#09YFHK%234)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

I want to create some more complex meshes and then modify it in bbln.  
Doing that “manually” would be quite a pain.

best. Werner

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [May 21, 2022, 7:26pm UTC](https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599/2 "2022-05-21T19:26:25Z")

</div>

You could get the indices and positions of a mesh like this if that’s what you’re after? I’m not for sure though if you’re trying to import an existing mesh into your Babylon scene or export one out of your Babylon scene?

```auto
const indices = mesh.getIndices();
const positions = mesh.getVerticesData(BABYLON.VertexBuffer.PositionKind);

```

---

<div class="post-metadata">

**Author:** ![imerso](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/imerso/32/46445_2.png) [@imerso](https://forum.babylonjs.com/u/imerso)\
**Post date:** [May 21, 2022, 7:42pm UTC](https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599/3 "2022-05-21T19:42:16Z")

</div>

Adding to what Blake said, you need to get that and then build a string with those, then save it in some way (copy&paste, downloading, showing on console, alert etc).

Made a sample PG for you:

[Get indices and positions | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#4G9IP8)

(Check the console as well).

Edit: you certainly is not willing indices and vertices from that sample box. You should change the PG to load your model and get those from it.

Of course, if your object is too complex (too many vertices and triangles), then this won’t be ideal. In that case you probably will want to extend it to download the list as a file, but that is left as an exercise. For a moderately complex model, you can just copy from the console or from the alert. =)

---

<div class="post-metadata">

**Author:** ![yamaciller](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yamaciller/32/21810_2.png) [@yamaciller](https://forum.babylonjs.com/u/yamaciller)\
**Post date:** [May 21, 2022, 7:53pm UTC](https://forum.babylonjs.com/t/vertex-list-from-blender-to-babylon/30599/4 "2022-05-21T19:53:56Z")

</div>

Ah cool. So yes I think that might work.  
I would load the model e.g. via gltf and then read out the properties.  
Store it in the array and rebuild it.  
Thank you very much!  
Best. Werner.  
Thx for the sample. Thats cool.
