extrusion3.wrl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #VRML V2.0 utf8
  2. # X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt
  3. # http://www.web3d.org/x3d/content/X3dToVrml97.xslt
  4. # Generated using XSLT processor: SAXON 9.1.0.2 from Saxonica
  5. # [X3D] VRML V3.0 utf8
  6. # PROFILE Immersive
  7. # [X3D] version=3.0
  8. # [X3D] noNamespaceSchemaLocation=http://www.web3d.org/specifications/x3d-3.0.xsd
  9. # [head]
  10. # META "title" "Figure15.15TwistedBar.x3d"
  11. # META "creator" "Figure 15.15, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
  12. # META "reference" "http://www.wiley.com/legacy/compbooks/vrml2sbk/ch15/15fig15.htm"
  13. # META "translator" "Don Brutzman"
  14. # META "created" "20 August 2000"
  15. # META "modified" "14 January 2010"
  16. # META "description" "A bar twisted using Y-axis, cross-section rotation at each spine coordinate."
  17. # META "identifier" "http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter15-Extrusion/Figure15.15TwistedBar.x3d"
  18. # META "generator" "X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
  19. # META "license" "../../license.html"
  20. # [Scene] ========== ========== ==========
  21. NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
  22. # Computational cost of Extrusion compared to IndexedFaceSet: quicker to download, takes time to calculate polygonal faces and normals during initial loading, equally fast at run time.
  23. # Authoring capabilities of Extrusion compared to IndexedFaceSet: can be more complicated to express, but also can provide great detail with much less effort.
  24. # First position and rotate viewpoint into positive-X-Y-Z octant using a Transform
  25. Transform {
  26. rotation 0 1 0 0.758
  27. translation 10 5 10
  28. children [
  29. Viewpoint {
  30. description "Twisted bar using extrusion orientations"
  31. orientation 1 0 0 -0.3
  32. position 0 0 0
  33. }
  34. ]
  35. }
  36. Shape {
  37. appearance Appearance {
  38. material Material {
  39. diffuseColor 1 0.5 0
  40. }
  41. }
  42. geometry Extrusion {
  43. creaseAngle 0.785
  44. crossSection [ -1 1 1 1 1 -1 -1 -1 -1 1 ]
  45. orientation [ 0 1 0 0 0 1 0 0.175 0 1 0 0.349 0 1 0 0.524 0 1 0 0.698 0 1 0 0.873 0 1 0 1.047 0 1 0 1.222 0 1 0 1.396 ]
  46. spine [ 0 0.0 0 0 0.5 0 0 1.0 0 0 1.5 0 0 2.0 0 0 2.5 0 0 3.0 0 0 3.5 0 0 4.0 0 ]
  47. }
  48. }