Jump to content

mesh simplified and cloned


Recommended Posts

This is one simple question but I haven't found an answer in the doc or here so I ask ;)

When I simplify a mesh and clone it after. Will my cloned mesh be simplified too or not?
And have I to wait for the mesh to be simplified before cloning it to have the simplification on it?

Thanks, Pichou

Link to comment
Share on other sites

Hi guys.  Sorry to interrupt.  I think those are stored in mesh._LODLevels

See console... https://www.babylonjs-playground.com/#2QEFG#5

I guess you could try some clones/instances of sphere, and see if ._LODLevels property... arrives safely at the new mesh.  :)

If not, just steal a copy of masterMesh._LODLevels.  Do some 'deep copying', Pichou-style.  heh.

I hope I've been helpful.

PS: I needed to go source-diving to find the ._LODLevels property.  I could not '"discover" it... using a browser-based object inspector... on sphere.  Maybe my eyes are going bad.  :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...