Example a/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 17-Mar-2014 845 COPYRIGHT 17-Mar-2014 504 cube.exelem 17-Mar-2014 3.4k cube.exnode 17-Mar-2014 989

Download the entire example:

Name                            Modified     Size

examples_a_testing_cube.tar.gz 09-Mar-2016 7.7k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmgui-wxFailureSun Mar 6 00:05:54 20161
last breakThu Sep 11 00:02:00 20140
cmgui-wx-debugFailureSun Mar 6 00:05:54 20161
last breakThu Sep 11 00:02:00 20140
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:05:54 20160
last breakThu Sep 11 00:02:00 20141
cmgui-wx-debug-valgrindFailureSun Mar 6 00:26:57 201614
last breakTue Feb 24 00:03:00 201514
x86_64-linux
cmgui-wxFailureSun Mar 6 00:01:33 20160
last breakThu Sep 11 00:03:00 20140
cmgui-wx-debugFailureSun Mar 6 00:01:33 20160
last breakThu Sep 11 00:03:00 20140
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:01:33 20160
last breakThu Sep 11 00:03:00 20141
cmgui-wx-debug-valgrindFailureSun Mar 6 00:03:22 201611
last breakSun Mar 6 00:03:00 201611
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:03:02 201610

Testing status by file:


Html last generated: Wed Mar 9 16:02:41 2016

Input last modified: Wed Mar 9 15:49:37 2016


CMISS Help / Examples / a / testing / cube