Sign in to follow this  
legallon

Merge some merged meshes

Recommended Posts

Hi everyone hope you doing great  ! 

I'm doing a project where I want to create complex objects from more simple or "atomic" ones. For example, I create a vertical rectangle and a horizontal rectangle, I merge them and I have a "L" shape. But when I try to merge my "L" shape with another rectangle to make a "U" for example it doesn't work :/

My question is : is there any way to do what I want to do or am I stuck with only one level of merging ? 

Thanks a lot for your time

Share this post


Link to post
Share on other sites

Oh, so the error isn't linked with the merge of merged.   This is the error message raised : 

"TypeError: Cannot read property 'copyFrom' of undefined
    at r.i.computeWorldMatrix (babylon.custom.js:8)
    at new r.MergeMeshes (babylon.custom.js:15)" 

Actually I've spent nearly an hour trying to create a playground matching my problem and the result I want to have, but I failed ( the fact is that my code is based on a lot of buttons aiming to create meshes, select them and merge them, and without using GUI I don't think that I can have buttons on the PG ).

 

I can join a .rar of my files (just a 500 lines js and few lines css and html), I don't know if you can do something with that, if you don't that's np I will find it by myself .

 

Thanks again for your time

test.rar

Share this post


Link to post
Share on other sites

" TypeError: Cannot read property 'copyFrom' of undefined
    at Mesh.TransformNode.computeWorldMatrix (babylon.max.js:13723)
    at new Mesh.MergeMeshes (babylon.max.js:26038)" 

it happens when I try to do another merge, the first one is always a success but then it fails. It may come from my way of handling selected meshes ( which is possibly bad)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.