SCNGeometry几何体类型
1.SCNBox 立方体
代码:(下面只介绍几何体创建)
//盒子
SCNBox *box = [SCNBox boxWithWidth:10 height:10 length:10 chamferRadius:0];
//材质(贴图后面章节说贴图)
SCNMaterial *allMaterial1 = [SCNMaterial new];
allMaterial1.diffuse.contents =[UIImage imageNamed:@"1"];
SCNMaterial *allMaterial2 = [SCNMaterial new];
allMaterial2.diffuse.contents =[UIImage imageNamed:@"2"];
SCNMaterial *allMaterial3 = [SCNMaterial new];
allMaterial3.diffuse.contents =[UIImage imageNamed:@"3"];
SCNMaterial *allMaterial4 = [SCNMaterial new];
allMaterial4.diffuse.contents =[UIImage imageNamed:@"4"];
SCNMaterial *allMaterial5 = [SCNMaterial new];
allMaterial5.diffuse.contents =[UIImage imageNamed:@"5"];
SCNMaterial *allMaterial6 = [SCNMaterial