在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 庭院设计.wrl(场景模型文件)

庭院设计.wrl(场景模型文件)

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.03M
  • 下载次数:14
  • 浏览次数:275
  • 发布时间:2021-01-02
  • 实例类别:一般编程问题
  • 发 布 人:lixiaochen1987
  • 文件格式:.wrl
  • 所需积分:2
 相关标签: 设计

实例介绍

【实例简介】一般的庭院设计,有树,有亭子、桌椅、路灯等
【实例截图】from clipboard
【核心代码】#VRML V2.0 utf8


Transform {
translation 0 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .38 .38 .42
specularColor .53 .53 .53
ambientIntensity .0933
shininess .93
}
}
geometry Box {
size 50 0.02 30
}
}
]
}

Transform {
translation 50 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .35 .16 .12
specularColor .21 .11 0
ambientIntensity .0533
shininess .05
}

}
geometry Box {
size 50 0.02 6
}
}
]
}

Transform {
translation 0 0 27.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .35 .16 .12
specularColor .21 .11 0
ambientIntensity .0533
shininess .05
}

}
geometry Box {
size 6 0.02 25
}
}
]
}

Transform {
translation 0 0 -27.5
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .35 .16 .12
specularColor .21 .11 0
ambientIntensity .0533
shininess .05
}

}
geometry Box {
size 6 0.02 25
}
}
]
}

Transform {
translation -50 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .35 .16 .12
specularColor .21 .11 0
ambientIntensity .0533
shininess .05
}

}
geometry Box {
size 50 0.02 6
}
}
]
}


Transform {
translation 0 -0.011 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor .32 .54 .26
specularColor .46 .46 .46
ambientIntensity .0933
shininess .51
}

}
geometry Box {
size 150 0.03 80
}
}
]
}



#tizi
#VRML V2.0 utf8

Transform {
children [
Transform{
translation 0 25 0
children [
    Shape {
appearance Appearance {
material Material {
diffuseColor .306 .675 .824
}

}
geometry Cone {
bottomRadius 20
height 10
}
}
]
}
Transform {
translation 10 10 10
children [
Shape {
appearance DEF CC Appearance {
material Material {
diffuseColor 1 .631 .694
}

}
geometry DEF CS Cylinder {
height 20
radius 1.5
}
}
]
}
Transform {
translation -10 10 -10
children [
Shape {
appearance USE CC
geometry USE CS
}
]
}
Transform {
translation 10 10 -10
children [
Shape {
appearance USE CC
geometry USE CS
}
]
}
Transform {
translation -10 10 10
children [
Shape {
appearance USE CC
geometry USE CS
}
]
}
]
}


#yizi
#VRML V2.0 utf8

Transform {
  translation -10 9.3 0
  rotation 0 1 0 -0.577
  scale 6.0 6.0 3.0
  children [
      Shape {
      appearance Appearance {
  material Material {diffuseColor 1 0 0}
  }
  geometry IndexedFaceSet {
  coord Coordinate {
      point [
  0   -0.05 -1,   0.35 -0.1 -1,
  0.53 -0.26 -1, 0.63 -0.5 -1,
  0.79 -0.71 -1,  1 -0.87 -1,
  1.24 -0.97 -1,  1.50 -1 -1,
  1.76 -0.97 -1,  2 -0.9 -1,
  0 -0.05 1,      0.35 -0.1 1,
  0.53 -0.26 1,   0.63 -0.5 1,
  0.79 -0.71 1,   1 -0.87 1,
  1.24 -0.97 1,   1.5 -1 1,
  1.76 -0.97 1,   2 -0.9 1 ]     }
  coordIndex [
  0 10 11 1 -1,1 11 12 2 -1,
  2 12 13 3 -1,3 13 14 4 -1,
  4 14 15 5 -1,5 15 16 6 -1,
  6 16 17 7 -1,7 17 18 8 -1,
  8 18 19 9 -1 ]
  solid FALSE
  creaseAngle 0.875
  }
  }
  Shape {
      appearance Appearance {
  material Material {diffuseColor 0.3 0.3 0.3}
  }
  geometry Extrusion {
      crossSection [
  0.5 0.5,   0.5 -0.5,
  -0.5 -0.5, -0.5 0.5,
  0.5 0.5  ]
  spine [
  1.8 -0.98 0.75,   1.8 -1.5 0.75,
  0.6 -1.5 0.75,    0.6 -1.5 -0.75,
  0.6 -1.5 -0.75,   1.8 -1.5 -0.75,
  1.8 -0.98 -0.75  ]
  scale [0.03 0.05]
  }
  }
  ]
}


#zhuozi
#VRML V2.0 utf8
Transform {
translation 3 3.5 -2.5
children [
Shape {
  appearance Appearance{
  material Material {
  diffuseColor .38 .38 .42
  specularColor .53 .53 .53
  ambientIntensity .0933
  shininess .93
  }
 
  }
  geometry Cylinder {
  radius 0.4
      height 7
  }
}
]
}
Transform {
translation 3 7 -2.5 
children [
Shape{
  appearance Appearance {
  material Material {
  diffuseColor .33 .34 .6
  specularColor .29 .29 .29
  ambientIntensity .103
  shininess .79
  }
 
  }
  geometry Cylinder {
radius 6.0
height 0.15
  }
}
]
}
Transform {
translation 3 0.1 -2.5 
children [
Shape{
  appearance Appearance {
  material Material {
  diffuseColor .38 .38 .42
  specularColor .53 .53 .53
  ambientIntensity .0933
  shininess .93
  }
 
  }
  geometry Cylinder {
radius 2.5
height 0.15
  }
}
]
}


#fangzi
#VRML V2.0 utf8

Transform {
translation -47 18 -20
children [
Shape{
appearance Appearance{
material Material {} }
geometry IndexedFaceSet{
coord Coordinate {
point[
  15 0  12, 15 0 -12,
  -15 0 -12, -15 0 12,
   12 10 0, -12 10 0
         ] }
coordIndex [
0 1 4 0 -1,0 4 5 3 0 -1,
3 5 2 3 -1,2 5 4 1 2 -1 ]
color Color {
color[
1.0 0.0 0.0, 1.0 0.0 0.0,
    1.0 0.0 0.0, 1.0 0.0 0.0,
1.0 0.0 0.0, 1.0 0.0 0.0 ]
}  }  }  ]  }

Transform {
translation -47 10 -20
children [
Shape {
appearance Appearance {
texture ImageTexture{
      url "qiangmian.jpg"}

geometry Box {
size 28 19 20 }
}
        Transform {
translation 0 -4 10
children[
Shape {
appearance Appearance {
texture ImageTexture {
url "mumen.png"}
}
geometry Box {
size 8 12 1 }
}  ]}
    Transform{
translation 10 0 10
children [
DEF Windows Shape{
      appearance Appearance{
  texture ImageTexture {
url "windows.jpg" }
  }
geometry Box {
size 4 8 1 }
}    ]   }
    Transform{
translation -10 0 10
children  [
USE Windows
] } ] }



#shu
#VRML V2.0 utf8

#shumu
Group {
children [
Transform {
children [
#shuzhi
DEF tree Transform {
translation -65 7 -35
children [
DEF s Shape {
appearance Appearance {
texture ImageTexture {url "shu3.png"}
}
geometry Box {
size 8 15 0.0001
}
}
Transform {
rotation 0 1 0 0.785
children [
USE s
Transform {
rotation 0 1 0 0.157
children [
USE s
Transform {
rotation 0 1 0 0.942
children [
USE s
]
}
]
}
]
}
]
}
]
}
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree 
Transform {
translation 10 0 0
children [
USE tree 
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
Group {
children [
Transform {
children [
#shuzhi
DEF tree Transform {
translation -65 7 37
children [
DEF s Shape {
appearance Appearance {
texture ImageTexture {url "shu3.png"}
}
geometry Box {
size 8 15 0.0001
}
}
Transform {
rotation 0 1 0 0.785
children [
USE s
Transform {
rotation 0 1 0 0.157
children [
USE s
Transform {
rotation 0 1 0 0.942
children [
USE s
]
}
]
}
]
}
]
}
]
}
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree 
Transform {
translation 10 0 0
children [
USE tree 
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
Transform {
translation 10 0 0
children [
USE tree
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}




#ludeng
#VRML V2.0 utf8
Group {
children [
Transform {
translation -36 5 4
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#duixiangludeng
Group {
children [
Transform {
translation -48 5 -4
rotation 0 1 0 3.14
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


Group {
children [
Transform {
translation -58 5 4
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#VRML V2.0 utf8
Group {
children [
Transform {
translation -70 5 -4
rotation 0 1 0 3.14
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}

#youbiandeng
Group {
children [
Transform {
translation 36 5 4
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#duixiangludeng
Group {
children [
Transform {
translation 48 5 -4
rotation 0 1 0 3.14
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


Group {
children [
Transform {
translation 58 5 4
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#VRML V2.0 utf8
Group {
children [
Transform {
translation 70 5 -4
rotation 0 1 0 3.14
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#qianmiandedeng
Group {
children [
Transform {
          translation 3.4 5 22
  rotation 0 1 0 1.57
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


Group {
children [
Transform {
          translation -3.4 5 32
  rotation 0 1 0 -1.57
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


#houmiandedeng
Group {
children [
Transform {
          translation 3.4 5 -22
  rotation 0 1 0 1.57
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}


Group {
children [
Transform {
          translation -3.4 5 -32
  rotation 0 1 0 -1.57
children [
Transform {
children [
Shape {
#dengzhuzi
appearance DEF dc Appearance {
material Material {
diffuseColor 0 0 0
specularColor .29 .3 .29
ambientIntensity 0
shininess .08
}
}
geometry Cylinder {
radius 0.3
height 10
}
}
]
}
Transform {
rotation 1 0 0 2
translation 0 5.2 -0.55
children [
Shape {
appearance USE dc 
geometry Cylinder {
radius 0.08
height 1.3
}
}
]
}
Transform {
translation 0 5.45 -1.7
children [
Shape {
appearance USE dc
geometry Box {
size 0.6 0.3 1.2
}
}
]
}
#deng
Transform {
translation 0 5.33 -1.7
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 1
ambientIntensity .694
}
}
geometry Box {
size 0.8 0.3 1.5
}
}
]
}
]
}
]
}



标签: 设计

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警