Wolfram Demonstrations Project
8773

3D Flying Pipe-Laying Turtle

This Demonstration lets you play with a 3D flying turtle that lays a pipeline in space. It is a generalization of traditional turtle graphics, which is planar. At each moment, the flying turtle's state is given by its position and attitude (or orientation). The attitude is defined by the heading and the normal.
The turtle obeys three commands: move (in the direction of its heading, changing its position, but not its attitude), turn (about its normal, changing its heading, but not its position or normal), roll (about its heading, changing its normal, but not its position or heading).
When the turtle moves, it produces a path in the form of a pipe (tube) or red line. You can also switch on the yellow light on its back. (During roll operations, the light is not traced along a circular arc, but takes a shortcut.) It is even possible to fill the area between the red and the yellow line, in which case it looks like the turtle produces a fence.
Tooltips identify the various graphics elements. Rendering of the axes, turtle, attitude indicator, red line, tube, back light trace, and fence can be turned on and off. The tube provides a better understanding of the three-dimensional structure of the path; the red line is less obtrusive.
By default, the scene is rendered as graphics. The setterbar on the right allows you to view it as text, showing current state, distance to origin, list of commands executed so far (the turtle's program), and coordinates of waypoints on the path. This information can be copied for use in other applications.
  • Contributed by: Tom Verhoeff (Eindhoven University of Technology)

THINGS TO TRY

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

References:
See the Wikipedia article for turtle graphics.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.









 
RELATED RESOURCES
Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Powered by Wolfram Mathematica © 2013 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+