public static void RequestPaintInShape(IMyVoxelBase voxelMap, IMyVoxelShape voxelShape, byte materialIdx) { MyVoxelBase voxel = voxelMap as MyVoxelBase; MyShape shape = voxelShape as MyShape; if ((voxel != null) && (shape != null)) { shape.SendPaintRequest(voxel, materialIdx); } }