Display a surface in Cmgui and exporting it into ThreeJS json file for rendering on a browser.
This example exports surfaces into ThreeJS json file which can then be rendered on a browser using the ThreeJS library. The result on ThreeJS can be viewed here.
#Read in a mesh for export gfx read node $example/cheese.exnode; gfx read element $example/cheese.exelem; gfx create window 1; gfx modify window 1 view parallel eye_point -0.4594 -3.37366 7.69967 interest_point 0 0 0.5 up_vector 0.0625144 0.902207 0.426749 view_angle 40 near_clipping_plane 0.0796416 far_clipping_plane 28.4612 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1; #Render the surface using spectrum gfx modify g_element "/" surfaces domain_mesh2d coordinate coordinates tessellation default LOCAL select_on material default data xi spectrum default selected_material default_selected render_shaded; if ($TESTING) { gfx export threejs file_prefix cmgui_threejs_export data_export_colour }
Name Modified Size
example_threejs_export.com 30-Mar-2015 728 COPYRIGHT 10-Sep-2014 504 cheese.exelem 30-Mar-2015 15k cheese.exnode 10-Sep-2014 10k
Name Modified Size
examples_a_threejs_export.tar.gz 09-Mar-2016 131k
Status | Tested | Real time (s) | |
i686-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:10:51 2016 | 2 |
last break | Tue Mar 31 00:25:00 2015 | 2 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:16:00 2016 | 2 |
last break | Tue Mar 31 00:37:00 2015 | 4 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:09:58 2016 | 2 |
last break | Tue Mar 31 00:16:00 2015 | 11 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 00:44:33 2016 | 29 |
last break | Sun Mar 6 00:44:00 2016 | 29 | |
x86_64-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:01:34 2016 | 0 |
last break | Sun Mar 6 00:01:00 2016 | 0 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:01:35 2016 | 1 |
last break | Sun Mar 6 00:01:00 2016 | 1 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:01:34 2016 | 0 |
last break | Sun Mar 6 00:01:00 2016 | 0 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 00:02:59 2016 | 9 |
last break | Sun Mar 6 00:02:00 2016 | 9 | |
cmgui-wx-gcc-cad-debug-valgrind | Success | Thu Jan 7 00:02:29 2016 | 7 |
x86_64-linux | |||
139 | cmgui-wx: | error exit status 139. | |
139 | cmgui-wx-debug: | error exit status 139. | |
139 | cmgui-wx-debug-memorycheck: | error exit status 139. | |
139 | cmgui-wx-debug-valgrind: | error exit status 139. |
i686-linux | |||
Failure | cmgui-wx: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-memorycheck: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-valgrind: | diff test: differences with generic answer; Test output. | |
x86_64-linux | |||
Failure | cmgui-wx: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-memorycheck: | diff test: differences with generic answer; Test output. | |
Failure | cmgui-wx-debug-valgrind: | diff test: differences with generic answer; Test output. |
i686-linux | |||
Missing | cmgui-wx: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug-memorycheck: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug-valgrind: | output file not generated for ndiff; generic answer. | |
x86_64-linux | |||
Missing | cmgui-wx: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug-memorycheck: | output file not generated for ndiff; generic answer. | |
Missing | cmgui-wx-debug-valgrind: | output file not generated for ndiff; generic answer. |
Html last generated: Wed Mar 9 16:02:52 2016
Input last modified: Wed Mar 9 15:49:33 2016