# Positioning merged geometry

Hello All,

I have a merged geometry. I used it to create the mesh and than i position the mesh.
Is it posible to position a part of mesh at mesh level only.

For an example let say i have a mesh that made by combining two cubes so i want to position the first cube only.

For merging i am using the BufferGeometryUtils.

Thanks

If you want to manage meshes separately - is there a reason to merge them in the first place ?

You can use Three.Group / Three.Object3D to manage meshes, instead of merging them.

There is a purpose to merge them.

Basically its like only old study table. So i have the top as seperate geometry and bottom four leg as seperate geometry and i am merging to get one study table. So now in my use case i only want to position the top of the table into the mesh it is possible

Alright, though I still don’t understand the advantage of merge over grouping in this case ?

It is possible, but you’ll have to modify geometry, which will be annoying and hard - instead of just modifying the position of a table-top submesh.

Yes, thats my question how to modify the position of submesh?

By submesh I meant a mesh within a Group. If you merge geometries there are no submeshes any more - your entire geometry becomes one, a bit hard to modify, mesh.

Instead of merging geometries try this:

``````const tableTop = new Three.Mesh(...); // Model of the top of the table
const tableLeg1 = new Three.Mesh(...); // Model of legs
const tableLeg2 = new Three.Mesh(...); // Model of legs
const tableLeg3 = new Three.Mesh(...); // Model of legs
const tableLeg4 = new Three.Mesh(...); // Model of legs

const table = new Three.Group();

// You can now modify the position of the entire table model using the group:
table.position.set(0, 10, 0);

// And you can modify the position of each part of the table within the group:
tableTop.position.y -= 1.0; // This will move the top of the table by 1.0 downwards, within the table group, making the table lower.
``````

Thanks for your support but this is not my use case as i said already.

What I meant is that you don’t have any “submeshes” after you merge the geometry. You have a single mesh, with a single geometry.

The only way to access and modify it, would probably be by manually editing the geometry buffer position attribute for vertices you want to move. Which is not very practical, unless you know exactly which vertices belong to the top of the table.

Yes i understand that and agree also. I am finding posibilities for my use case