www.pudn.com > HF¶àýÌå.rar > deskandchair.wrl, change:2003-05-22,size:6387b


#VRML V2.0 utf8 
#deskandchair.wrl 
 
#  set the opening viewpoint 
Viewpoint { 
	position 0.0 0.0 10.0 
	description	"Entry" 
}, 
Viewpoint { 
	position -10.0 0.0 10.0 
	orientation	0 1 0 -0.786 
	description	"side" 
} 
 
Background { 
	skyAngle [1.571] 
	skyColor [0.2 0.2 0.2] 
} 
 
Group { 
	children [ 
		WorldInfo { 
			title "Computer Desk" 
			info [ 
				"Author:Daisy~HF", 
				"date:05-2003" 
			] 
		}, 
 
		#  move to draw the next object 
		Transform { 
			translation	-3.0 -1.5 0.0  
			children  [ 
				Shape { 
					#  define and apply a "wood" color 
					appearance Appearance { 
			    		material DEF wood Material { 
                    		diffuseColor  0.97 0.69 0.49 
        					shininess  0.1 
            			} 
    				} 
				}, 
 
				DEF leg Transform { 
					children [ 
						#  define and draw the "leg" object 
						Shape { 
							#  define and draw the outside face of the left set of drawers 
							appearance Appearance { 
			    				material USE wood  
                   			} 
							geometry DEF draw Box {                             
                				size 0.15 3.0 2.0 
                			} 
						}, 
 
						#  move to draw the next object 
   		    			Transform { 
							translation  1.5 0.0 0.0 
							#  draw the inside face of the left set of drawers 
            				children [ 
				    			Shape { 
									appearance Appearance { 
										material USE wood	 
									} 
									geometry USE draw 
								},	   
		   						 
								#  move to draw the next object 
								Transform	{ 
									translation -0.75 0.0 -1.0 
									#  define and draw the rear face of the left set of drawers 
									children [ 
				    					Shape { 
											appearance Appearance { 
												material USE wood	 
											} 
											geometry DEF panel Box{ 
												size 1.65 3.0 0.15 
											} 
										}, 
													   
										#  move to draw the next object 
										Transform	{ 
											translation  0.0 0.08 1.0 
											#  define and draw the top shelf of the left set of drawers 
											children [ 
				        						Shape { 
													appearance Appearance { 
														material USE wood	 
													} 
													geometry DEF shelf Box { 
														size 1.5 0.04 2 
													} 
												}, 
															    
												#  move to draw the next object 
												Transform	{ 
													translation  0.0 -1.5 0.0 
													#  draw the bottom shelf of the left set of drawers 
													children [ 
				        								Shape { 
															appearance Appearance { 
																material USE wood	 
															} 
															geometry USE shelf 
														}, 
					    
			    
														#  move to draw the next object 
					    								Transform	{ 
															translation  0.0 0.75 1.0 
															#  define and draw the front face of the bottom drawer 
															children [ 
																DEF drawer Transform { 
																	children [ 
				            											Shape { 
																			appearance Appearance { 
																				#  define and apply a "dark" color 
																				material DEF dark Material{ 
							    													diffuseColor  0.77 0.49 0.29 
                                													shininess  0.1	 
						    													} 
																			} 
																			#  draw the bottom front face of the left set of drawers 
																			geometry Box { 
																				size 1.65 1.45 0.1 
																			} 
																		}, 
				    
			    
																		#  move to draw the next object 
																		Transform { 
																			translation  0.0 0.0 0.075 
																			children [ 
																				Shape { 
																					appearance Appearance { 
																						#  apply a darker brown color to the following object 
																						material Material	{ 
																							diffuseColor  0.4 0.25 0.15 
																						} 
																					} 
																					#  draw the handle to the bottom left drawer 
																					geometry Box { 
						    															size 0.3 0.1 0.1 
																					}																				 
																				} 
																			] 
																		} 
																	] 
																}, 
 
																#  move to draw the next object 
																Transform{ 
																	translation  0.0 1.5 0.0 
																	#  draw the front face of the top left drawer 
																	children USE drawer 
																} 
															] 
														} 
													] 
												} 
											] 
										} 
									] 
								} 
							] 
						} 
					] 
				}, 
 
				#  move to draw the next object 
				Transform{ 
					translation  4.5 0.0 0.0 
					#  right side set of drawers 
					children USE leg 
				} 
			] 
		}, 
 
 
		Shape { 
			appearance Appearance { 
				#  apply the "dark" color to the next object 
				material USE dark 
			} 
			#  draw the desktop 
			geometry Box { 
				size 6.5 0.15 2.5 
			} 
		} , 
 
 
		#  move to draw the next object 
		Transform { 
			translation	-2 0.35 0.15 
			children [ 
				#  import the file "int_comp2.wrl" to draw the computer on the left side of the desktop 
		    	Inline {url "int_comp2.wrl"}	 
			] 
		}, 
 
 
		#  move to draw the next object and reduce the size to 40% 
		Transform{ 
			translation	0.0 1.1 0.25 
			scale  0.4 0.4 0.4 
			children [ 
				#  import the file "monb11.wrl" to draw the monitor on top of the desk 
				Inline {url	"monb11.wrl"}	 
			] 
		}, 
 
		#  move to draw the next object and reduce the size to 40% 
		Transform{ 
			translation	2 0.1 -0.05 
			scale  0.4 0.4 0.4 
			children [ 
				#  import the file "lx4'.wrl" to draw the desklamp on top of the desk 
				Inline {url "lx4'.wrl"} 
			] 
		}, 
 
		#  move to draw the next object and reduce the size to 40% 
		Transform{ 
			translation 0 -0.5 0.35 
			#scale 0.4 0.4 0.4 
			children [ 
				#  import the file "key.wrl" to draw the keyboard in keyboard-drawer of the desk 
				Inline {url "key.wrl"} 
			] 
		} 
 
		Transform { 
			translation 0 -1.78 2.2 
			rotation 0 1 0 -1.571 
			scale 0.5 0.5 0.5 
			children [ 
				#  import the file "chair1.wrl" to draw the computer chair 
				Inline{url "chair1.wrl"} 
			] 
		} 
	] 
} 
 
#deskandchair.wrl