Page 1 of 1

how to see MeshImport data?

Posted: Wed Jun 15, 2011 6:21 am
by Mic
Imported a 3DS file and am looking at all the Meshes. The Producers are MeshImports ... are these references to data still inside the 3DS file? How do I turn a MeshImport into a real Mesh so I can alter it? TIA,

Mic

Thanks for answering debug question - am printing vars etc to console now - really helps!

Posted: Wed Jun 15, 2011 10:51 am
by Kjell
Hi,

As soon as you import a .3ds file using the MeshImport component, the imported data becomes part of your .zgeproj file. So .. no, the data isn't referenced from the external file.

Code: Select all

How do I turn a MeshImport into a real Mesh so I can alter it?
Not exactly sure what you mean with a "real mesh".

K

Posted: Wed Jun 15, 2011 3:01 pm
by jph_wacheski
The mesh is imported,. and then you just add the MeshExpression (or whatever mesh component) to make changes to it,. see attached, if that helps.

thanks for mesh example ...

Posted: Wed Jun 15, 2011 3:20 pm
by Mic
what I was wondering was ... on a standard e.g. MeshBox there are parms XCount, YCount Grid2DOnly ... are these not available on an imported mesh or maybe not valid? TIA,

Mic.

Posted: Wed Jun 15, 2011 4:41 pm
by Kjell
Ah,

The Count properties on the MeshBox component control the algorithm used to generate the Box. They are part of the MeshBox component, not general properties that are available on any Mesh.

If you want to increase / decrease the detail ( amount of polygons ) of you mesh, it's easiest to do this in the 3D modelling application you used to create the imported mesh ( or use something like MeshLab ) before importing it into ZGE.

K