File: Verify

package info (click to toggle)
dxsamples 4.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 26,348 kB
  • ctags: 1,513
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,101
file content (17 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Verify is used to examine a data field for inconsitencies, such as
// connections which reference non-existant positions, or components which
// depend on one another but which don't have the same number of points.

// This field should not result in any errors from Verify. Verify will
// simply return the original object.
data = Import("watermolecule");
isosurface = Isosurface(data);
verified = Verify(isosurface);
Print(verified);

// This field will result in an error from Verify, because we have created
// a non-sensical connections component.
bad_connections = {[-199 0 399], [-2 3 4]};
bad_field = Replace(bad_connections, isosurface, NULL, "connections");
verified = Verify(bad_field);
Print(verified);