var b1=new BABYLON.Mesh.CreateBox("box1",3.0,scene);
var b11=new BABYLON.StandardMaterial("b11",scene);
b11.diffuseColor=new BABYLON.Color3(1,1,0);
b1.material=b11;
i have created one box and applied material property and i have also subtracted another box from b1 box using babylon.csg like
var b2=new BABYLON.Mesh.CreateBox("box2",1.0,scene);
var b1CSG=BABYLON.CSG.FromMesh(b1);
var b2CSG=BABYLON.CSG.FromMesh(b2);
subCSG=b1CSG.subtract(b2CSG);
b1.dispose();
b2.dispose();
subCSG.toMesh("csg",new BABYLON.StandardMaterial("mat",scene),scene);
After this, hole is created inside box1 but the material property i have given is not applied to the box1.
How can i apply this material property to box1 after dispose method?
Thanks...!!