# How to create shape with given vector3 array?

**URL:** <https://discourse.threejs.org/t/how-to-create-shape-with-given-vector3-array/34923>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [February 16, 2022, 2:27am UTC](https://discourse.threejs.org/t/how-to-create-shape-with-given-vector3-array/34923 "2022-02-16T02:27:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonygod](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sonygod/32/23416_2.png) [@sonygod](https://discourse.threejs.org/u/sonygod)\
**Post date:** [February 16, 2022, 2:27am UTC](https://discourse.threejs.org/t/how-to-create-shape-with-given-vector3-array/34923/1 "2022-02-16T02:27:54Z")

</div>

hello,How to create shape with given vector3 array?

only I want to create shape instead of BufferGeometry because I want to use hole attributes in shape.

 ![screenshot-localhost_2000-2022.02.16-10_23_48](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/7/5/7547444a1949ec655021f34fa62367c2e77850f7.jpeg)

I want to create wall shape from give red point .

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 16, 2022, 10:42am UTC](https://discourse.threejs.org/t/how-to-create-shape-with-given-vector3-array/34923/2 "2022-02-16T10:42:16Z")

</div>

> [@sonygod](#):
>
> How to create shape with given vector3 array?

An instance of `THREE.Shape` can only be created with 2D data. You probably need a different approach for implementing your walls.

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [February 16, 2022, 10:59am UTC](https://discourse.threejs.org/t/how-to-create-shape-with-given-vector3-array/34923/3 "2022-02-16T10:59:30Z")

</div>

> [@sonygod](#):
>
> want to use hole attributes

Maybe you can use something from this solution.

[Showrooms easy to generate from data of a construction drawing or dimensional sketch - now on Github](https://discourse.threejs.org/t/showrooms-easy-to-generate-from-data-of-a-construction-drawing-or-dimensional-sketch-now-on-github/19994)

_3D coordinates can be transformed in different ways._
