From 69452177edbe437b68da9ce1eae61e57f15ed49d Mon Sep 17 00:00:00 2001 From: chapulina Date: Mon, 16 Jul 2018 14:36:50 -0700 Subject: [PATCH] add example --- .hgignore | 1 + examples/view_sdf_from_file.html | 256 +++++++++++++++++++++++++++++++ examples/view_sdf_from_url.html | 2 +- 3 files changed, 258 insertions(+), 1 deletion(-) create mode 100644 examples/view_sdf_from_file.html diff --git a/.hgignore b/.hgignore index 9cc81922..8efb1809 100644 --- a/.hgignore +++ b/.hgignore @@ -6,6 +6,7 @@ build_* .DS_Store *.*~ *~ +*.orig *.swp http/client/assets node_modules diff --git a/examples/view_sdf_from_file.html b/examples/view_sdf_from_file.html new file mode 100644 index 00000000..35badd25 --- /dev/null +++ b/examples/view_sdf_from_file.html @@ -0,0 +1,256 @@ + + + + + [GzWeb] View SDF from file + + + + + + + +

+ View SDF from file +

+ +

+ This example shows how to visualize an SDF file on the browser by passing local files. +

+

+ The SDF parsing happens completely on the browser and all resources are local to the user, so there is no need for any server to be serving resources. +

+ +

+ You can test it by clicking the Browse button and choosing a model + directory. Make sure the directory contains model.sdf and all other + resources needed by the model, such as meshes and textures. +

+ +
+
+

Model files

+ +
+
+ +
+
+
+
+ + + + + diff --git a/examples/view_sdf_from_url.html b/examples/view_sdf_from_url.html index df83c63b..a2e60772 100644 --- a/examples/view_sdf_from_url.html +++ b/examples/view_sdf_from_url.html @@ -2,7 +2,7 @@ - '[GzWeb] View SDF from URL + [GzWeb] View SDF from URL