#VRML V2.0 utf8
# X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt
# https://www.web3d.org/x3d/content/X3dToVrml97.xslt
# Generated using XSLT processor: Saxonica
# [X3D] VRML V3.3 utf8
# PROFILE Immersive
# [X3D] version=3.3
# [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.3.xsd
# [head]
# COMPONENT Geometry2D:2
# META "title" "Rectangle2dExample.x3d"
# META "description" "Example of Rectangle2D showing two simple polygonal shapes."
# META "creator" "Leonard Daly and Don Brutzman"
# META "created" "17 April 2006"
# META "modified" "14 June 2020"
# META "reference" "https://X3dGraphics.com"
# META "reference" "https://www.web3d.org/x3d/content/examples/X3dResources.html"
# META "rights" "Copyright 2006, Daly Realism and Don Brutzman"
# META "subject" "X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
# META "identifier" "https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter10Geometry2D/Rectangle2D.x3d"
### Warning: File name doesn't match for and
# META "generator" "X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
# META "license" "../license.html"
EXTERNPROTO Rectangle2D [
field SFVec2f size
field SFBool solid
exposedField SFNode metadata # [appinfo] Metadata node only
][
"Geometry2dComponentPrototypes.wrl#Rectangle2D"
"https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.wrl#Rectangle2D"
"Geometry2dComponentPrototypes.x3d#Rectangle2D"
"https://www.web3d.org/x3d/content/examples/Basic/development/Geometry2dComponentPrototypes.x3d#Rectangle2D"
]
# [Scene] ========== ========== ==========
NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
WorldInfo {
title "Rectangle2D.x3d"
}
Background {
skyColor [ 1 1 1 ]
}
Viewpoint {
description "Rectangle2D example"
orientation 0.981 0.178 -0.08 0.01
position -1.52 -0.17 8.11
}
Transform {
translation -2.5 1 0
children [
Shape {
geometry Rectangle2D {
size 2.00 2.00
}
appearance DEF MagentaAppearance Appearance {
material Material {
diffuseColor 1 0 0
emissiveColor 0 0 1
specularColor 0 .8 0
}
}
}
]
}
Transform {
translation -1 -1.5 0
children [
Shape {
geometry Rectangle2D {
size 2 1
}
appearance USE MagentaAppearance
}
]
}