You don't have to worry about combining Surfaces. The AddMEsh Command will do this for you. All you have to do is make sure you will use only Mesh Modifiers on the meshes until you AddMEsh them together, don't use the Entity Modifiers, eg: PositionMEsh inststead of PositionEntity or RotateMesh instead of RotateEntity or PaintMesh instead of EntityTexture etc.
AddMEsh will automaticly detect redundant materials and reuse the first of them. So in the end you have removed double materials and one single mesh that contains all neccessary surfaces.
Typicly you would first create an empty mesh: mesh=CreateMesh() then add all Meshes you want using AddMesh, then delete the original meshes.
|