# Example a/isolines: Load an image and generate datapoints at threshold value. # Read in some geometry to hold our texture and define coordinates. gfx read node $example/transverse_155.exnode; gfx read element $example/transverse_155.exelem; # Read in our texture gfx create texture image image $example/transverse_155.tif width 1 height 1; gfx create material transverse_155 texture image; # Define a gray spectrum useful for rendering out image field. gfx create spectrum gray_spectrum clear overwrite_colour gfx modify spectrum gray_spectrum linear range 0 1 extend_above extend_below monochrome colour_range 0 1 ambient diffuse component 1; # Would really benefit from some image processing here! # Use a fine discretization with for generating the isolines. gfx modify g_element transverse_155 general element_discretization "512*512*512" # Define the density field used to control the number of points generated below. # Here we want a constant number of points per segment length. gfx define field point_density constant 5; # Create the isolines gfx modify g_element transverse_155 iso_surfaces as isolines select_on iso_scalar image iso_value 0.09 use_elements select_on material white selected_material default_selected render_shaded data point_density; gfx modify g_element transverse_155 surfaces as texture_surface select_on material transverse_155 texture_coordinates xi selected_material default_selected render_shaded; if (!$TESTING) { gfx create window 1; gfx mod win 1 set perturb_lines; gfx modify window 1 layout 2d ortho_axes z -y; } # Generate points on the isolines calculated above. gfx create ngroup data; gfx convert graphics scene default.isolines render_surface_node_cloud region data coordinate coordinates; # Alternative using regions: #gfx create region data; #gfx define field data/coordinates coordinate_system rectangular_cartesian finite_element number_of_components 3 coordinate real component_names x y z; #gfx convert graphics scene default.isolines render_surface_node_cloud region data coordinate coordinates; # Write out these points gfx write nodes group data data_cloud.exnode; if (!$TESTING) { gfx modify g_element data node_points glyph cross general size "2*2*2" centre 0,0,0 font default select_on material default selected_material default_selected; }
Name Modified Size
isolines.com 17-Mar-2014 2.3k COPYRIGHT 17-Mar-2014 504 transverse_155.exelem 17-Mar-2014 2.2k transverse_155.exnode 17-Mar-2014 742 transverse_155.tif 17-Mar-2014 110k
Name Modified Size
examples_a_isolines.tar.gz 09-Mar-2016 163k
Status | Tested | Real time (s) | |
i686-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:11:55 2016 | 2 |
last break | Mon Aug 25 13:02:00 2014 | 6 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:16:26 2016 | 4 |
last break | Mon Aug 25 13:03:00 2014 | 9 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:16:58 2016 | 5 |
last break | Mon Aug 25 13:07:00 2014 | 14 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 01:38:41 2016 | 153 |
last break | Tue Feb 24 00:45:00 2015 | 163 | |
x86_64-linux | |||
cmgui-wx | Failure | Sun Mar 6 00:01:47 2016 | 1 |
last break | Fri Aug 15 00:30:00 2014 | 2 | |
cmgui-wx-debug | Failure | Sun Mar 6 00:01:48 2016 | 2 |
last break | Fri Aug 15 00:30:00 2014 | 2 | |
cmgui-wx-debug-memorycheck | Failure | Sun Mar 6 00:01:54 2016 | 3 |
last break | Fri Aug 15 00:30:00 2014 | 3 | |
cmgui-wx-debug-valgrind | Failure | Sun Mar 6 00:10:02 2016 | 137 |
last break | Sun Mar 6 00:07:00 2016 | 137 | |
cmgui-wx-gcc-cad-debug-valgrind | Success | Thu Jan 7 00:11:08 2016 | 134 |
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. |
Html last generated: Wed Mar 9 16:02:15 2016
Input last modified: Wed Mar 9 15:49:42 2016