# DMelt:Plots/JavaView

Limitted access. First login to DataMelt if you are a full DataMelt member. Then login to HandWiki as a user.

## Using JavaView

3D geometry viewer and a mathematical visualization software, called JavaView (http://www.javaview.de/) can be used with the class jhplot.HJavaView. It should be noticed that the license of JavaView should be put to the file "lib/javaview/rsrc/jv-lic.lic" relative to DataMelt installation. Without this license, the program is fully functional but you will see a message dialog about the license.

The package allows:

Visualize and study your own geometry models. The data files may reside on your local computer or somewhere on the internet. Simply browse your local disk or type the URL of a model using a web form.

• Solve ordinary differential equations interactively.
• Calculate the zero points of functions.
• Measure distances on curved polyhedral surfaces using straightest or shortest geodesic lines.
• Computes algebraic surfaces given as zero set of a polynomial function.

DataMelt allows programming and visualizing 3D mathematical objects using the Python language (as well as Groovy, Ruby). Here is a Jython example that shows a snail in 3D interactive viewer: The code is shown below:

One can draw several 3D objects which belong to jv.geom.PgElementSet class.

## Showing functions in 3D

Here is an example which illustrates how to calculate parametric functions. Here is an example that illustrates how to create Kuen Surface The code is shown below uses the jvx.surface.PgParmSurface class:

DataMelt supports drawing all JavaView classes that inherent from the Java class jv.project.PgGeometry. Below are several examples implemented using the Python language:

## Drawing standard 2D functions

You can plot the standard jhplot.F2D functions using jhplot.HJavaView. You can use either the "draw(F2D)" method, or "add(F2D)" method. The latter returns jv.project.PgGeometry object which can be used to modify style of the function (color, transparency). For example,

from jhplot import HJavaView,F2D
c1=HJavaView()
f1=F2D("x*y",-1,1,-1,1)
c1.draw(obj)
{"ft_lang_label":"__label__en","ft_lang_prob":0.81291664,"math_prob":0.7913461,"size":2310,"snap":"2021-43-2021-49","text_gpt3_token_len":544,"char_repetition_ratio":0.10928014,"word_repetition_ratio":0.07058824,"special_character_ratio":0.2034632,"punctuation_ratio":0.13364056,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97313684,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-27T06:09:34Z\",\"WARC-Record-ID\":\"<urn:uuid:470e932a-220f-47bc-932d-4aa9685ac897>\",\"Content-Length\":\"285313\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d2b041f7-76f6-4e09-a316-eb42b059de6a>\",\"WARC-Concurrent-To\":\"<urn:uuid:df346592-3a2b-4453-9f6e-3e7c98a0bc80>\",\"WARC-IP-Address\":\"192.227.67.57\",\"WARC-Target-URI\":\"https://handwiki.org/wiki/DMelt:Plots/JavaView\",\"WARC-Payload-Digest\":\"sha1:RKE4Y3I5IIJ2WDBPD5DI2LTGLKYPEDGB\",\"WARC-Block-Digest\":\"sha1:AYF6MBP7IYN53T5BM77Q2ONW43P4AIRA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358118.13_warc_CC-MAIN-20211127043716-20211127073716-00495.warc.gz\"}"}