Logo der AG Geom webMathematica and JavaView
Powered by webMathematica 2
Home

JavaView & webMathematica

WebMathematica and JavaView are two powerful tools for the generation of fully interactive mathematical web sites.

The following demonstrations give a glimpse on the possible applications. The examples use increasing functionalities of both tools.

Getting started with JavaView and webMathematica

Technology used

JavaView

JavaView is a 3d geometry viewer and numerical software library written in Java. It allows to include 3D geometries in any HTML document, and to present interactive geometry experiments on the internet. JavaView also runs as an application from a Unix or Dos command prompt, and it can be attached as a 3D viewer to other programs.
JavaViews numerical software library provides solutions and tools for problems in differential geometry and mathematical visualization. Its class library can be used and extended for own geometry experiments in Java, while always profiting from the advanced 3D visualization capabilities and the web integration.

webMathematica

webMathematica connects Mathematica to the web. It is a server-based technology built on top of Java servlets. A webMathematica site can return content in many formats including HTML, various image formats, Mathematica notebooks, MathML, and TeX.
It can work conveniently with many different web client technologies in browsers such as HTML forms, Java applets, JavaScript, Plug-ins, and ActiveX controls. webMathematica is also compatible with different server technologies such as servlets and JavaServer Pages.
webMathematica provides a collection of tools that allow Mathematica commands to be placed inside HTML pages; each time the page is requested from the server these commands are processed by a Mathematica session. In addition, the tools control the Mathematica sessions on the server and provide support such as launching, initialization, session pooling, and automatic restart.


Examples

Plotting Graphics Use MSPJavaView to easily and comfortable integrate Mathematica graphics in web pages.
Polyhedron Explorer In MSPJavaView a JavaView project can be specified as option. This allows to easily invoke sophisticated projects including panels and dialogs when the applet loads. Here the project for modeling is demonstrated.
Generate Animation This page shows two different examples of smooth animations. One example is a jumping cube and the other visualizes a transformation of a surface.
Clip Geometries Explore the inside of geometries.
Shapes Explorer Explore different built-in shapes of Mathematica.
Convex Hull Compute the convex hull of a 2d set of points. Interactively add and drag points. Here, JavaView is used as an interactive 2d/3d  input device to your Mathematica solution.  
Integral Curves Solving a differential equation using NDSolve. The differential expression may be interactively typed and initial values picked in the JavaView display.
Root Finder Find roots of real-valued functions of one variable. Function expression may be interactively edited.
Generate Graphics Type Mathematica code in a web page. Here the code may return any Mathematica Graphic which is then displayed in JavaView.
Textures on Plots In this example JavaView is used to add textures to graphics generated by webMathematica.

Background

These pages show different applications. There is no knowledge of Java required to build pages like Plotting Graphics, Animations and Polyhedron Explorer. We provide the additional webMathematica command MSPJavaView[g] used by all three examples. This new command use a JavaView applet to view any Graphics, Graphics3D, Surface Graphics,  Density Graphics or Contour Graphics in an HTML page. Lists of graphics objects are optionally displayed as animations. JavaView equips your web page with an advanced 3D viewer for interactive scientific visualization. Graphics imported from Mathematica are optimized in JavaView for visualization tasks, for example, equal vertices are identified and a  topological structure is created. JavaView provides tools to operate on this structure, e.g. interactive refining the mesh or its simplification. In addition you can import and export your graphics in different file formats. images of your graphic in all perspectives can be generated. As an option, the command MSPJavaView[g,project] allows to specify a JavaView project, see Polyhedron Explorer, providing instant access to JavaView projects.

The present examples use JavaView as a tool to generate elaborate and interactive interfaces toMathematica solutions. You can interactively vary the input data as well as you can interactively modify the result for further usage. Here interactivity is provided by the applet. In comparison to the FORM elements this gives you more possibilities and is more convenient, e.g. you do not need to reload the whole page after each request. In addition to the basis functionality above, new applets and JavaView projects may be developed with the JavaView library and its open API which provides data-structures and algorithms for visualization and numerics, including panels for user-interaction and a manager for the layout. To simplify communication with a Mathematica server JavaView features an extra class. A tutorial and a documentation can help to get into writing JavaView applications. 

© 2006 Freie Universität Berlin | Feedback |
Stand: 21.04.2008