-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
110 lines (65 loc) · 2.87 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
average_objects
---------------
average_objects output.obj input1.obj [input2.obj [input3.obj ...]]
Reads a number of input files, which may be of any type as long
as each has the same number of points. Output a file of the type
of input1.obj, but with the point position set to the mean position
of the corresponding points in the input files.
average_surfaces
----------------
average_surfaces output.obj none|rms_file none|variance_file n_groups
input1.obj [input2.obj...]
Reads a number of surface (POLYGONS) files, and outputs the mean surface,
computed as for average_objects. In addition, the RMS distance and
inverse covariance matrix can be written to files.
create_grid
-----------
create_grid out.obj x|y|z slice_position [x|y|z line_position] ...
The file out.obj consists of a set of lines in the specified plane
X=slice_position (or Y= or Z=). The set of lines desired are
specified in the following pairs of arguments.
dump_curvatures
---------------
dump_curvatures object_file output_file [curvature_distance]
The parameter curvature_distance defaults to 4.
evaluate
--------
evaluate volume.mnc input.obj output.txt [degree]
degree is an integer, passed to evaluate_volume_in_world(), where
-1 = nearest-neighbour, otherwise use an order-(degree+1)
polynomial to interpolate
Typically used for vertex colouring of objects. For each vertex of the
geometrical object, the point is located in the volume. The volume values
are written to the output text file in the order that the vertices are
visited. Each object in the BIC obj file is processed in sequence.
make_slice
----------
make_slice in.mnc out.obj x|y|z v|w pos [xt] [yt]
The file in.mnc sets the coordinate systems. The output
consists of a polygon or quadmesh in the plane "X=pos"
(Y=pos, Z=pos, respectively), in either the voxel or
world coordinate system depending on the 4th parameter.
The optional parameters "xt" and "yt" specify the number
of rows and columns in the mesh; the values "2 2" are
the most useful.
set_line_width
--------------
set_line_width in.obj out.obj [thickness]
Copies in.obj to out.obj, changing the thickness of any
LINES objects found. The default thickness is 1.0.
set_object_colour
-----------------
set_object_colour in.obj out.obj colour_name
Copies in.obj to out.obj changing the colour of each object
in the file.
set_object_colour in.obj
Prints the colour of each object in the file.
subdivide_polygons
------------------
subdivide_polygons input.obj [output.obj] [n_polygons]
Subdivides any polygons in the file. If the output file is not
specified, the input file is overwritten with the newly subdivided
objects.
If n_polygons is specified, the polygons will be resampled to that
size. Otherwise, the number of polygons in the output will be four
times the input size.