Example a_backup/testing/cube: Reading in a cube

Create a cube.


The comfile run by this example is as follows:

#a/testing/cube: Graphical element groups: viewing a cube

gfx define tessellation default minimum_divisions 1 refinement_factors 1;
gfx define tessellation fixed4 minimum_divisions 4 refinement_factors 1;

#Read nodes and elements

gfx read nodes example cube.exnode
gfx read elements example cube.exelem

#create initial line rendition
gfx modify g_element "/" general clear;
gfx modify g_element "/" lines subgroup cube material default;

#Create material

gfx create material orange ambient 1 0.25 0 diffuse 1 0.25 0
gfx modify g_element cube node_points label cmiss_number glyph cross size 0.4 material orange

# Now add surfaces to the distorted cube, and view it in the graphics window.
gfx modify g_element cube surfaces coordinate coordinates tessellation fixed4 material orange;
#
#Export the scene_graph
gfx export vrml file test.wrl

Files used by this example are:

Name         Modified     Size

cube.com 20-Apr-2012 845 COPYRIGHT 19-Apr-2012 504 cube.exelem 20-Apr-2012 3.4k cube.exnode 20-Apr-2012 989

Download the entire example:

Name                                   Modified     Size

examples_a_backup_testing_cube.tar.gz 12-Aug-2014 7.0k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmgui-wxSuccessSun Mar 6 00:06:45 20160
cmgui-wx-debugSuccessSun Mar 6 00:06:46 20161
cmgui-wx-debug-memorycheckSuccessSun Mar 6 00:06:46 20160
cmgui-wx-debug-valgrindSuccessSun Mar 6 00:27:38 201613
x86_64-linux
cmgui-wxSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debugSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debug-memorycheckSuccessThu Jan 7 00:01:30 20160
cmgui-wx-debug-valgrindFailureSun Mar 6 00:03:33 201610
last breakSun Mar 6 00:03:00 201610
last successWed Jun 3 00:11:00 201511
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:02:46 20169

Testing status by file:


Html last generated: Sun Mar 6 05:51:01 2016

Input last modified: Fri Apr 20 16:01:28 2012


CMISS Help / Examples / a_backup / testing / cube