.TH repros2tetra 1 " 1 Oct 1993" .SH NAME repros2tetra \- connect and sort tetrahedra .SH SYNOPSIS .B repros2tetra .I \fItetra_file\fR .I \fIcnt_file\fR.new .I \fIoutput_file\fR [\|\fB\-t \fIstring\fR\|] [\|\fB\-max_vertex\fR \fInb\fR\|] [\|\fB\-max_tetra\fR \fInb\fR\|] [\|\fB\-p\fR\|] .SH DESCRIPTION .PP .I repros2tetra is a program that reads repros tetrahedra output data, completes the neighbor links between adjacent slices and labels connected components .SH OPTIONS .PP .IP \fItetra_file\fR 14 tetrahedra output of \fIrepros(1)\fR. .IP \fIcnt_file\fR.new new contour file modified by \fIrepros(1)\fR. .IP \fIoutput_file\fR The tetrahedra output contains all tetrahedra of the convex hull of each object slice. Tetrahedra outside of the object are marked eliminated. The tetrahedra output is formatted as follows: In the first line is the number of slices, indicated by the letter S. The number of slices is equal to the number of cross-sections-1. For each cross-section we have a vertex block, and for each slice we have a tetra block. A vertex block starts with the letter V, then follows the number of vertices, and information about the plane the vertices are lying on. V 23 z 10.000 indicates a Vertex block with 23 vertices, all lying in the plane z=10.0. A tetra block is indicated by the letter T, followed by the number of tetrahedra. A tetrahedron line contains four indices in the vertex list, then four indices in the tetra list representing the neighbors, a number indicating the type of the tetrahedron and a number representing the connected component it belongs to. Both the vertex indices and the tetrahedra indices start at 0. Not existing neighbors are set to -1. The tetrahedron type is: type 1 (bit 0 set) type 2 (bit 1 set) type 12 (bit 3 set) and eliminated (bit 4 set). The connected component number of eliminated tetrahedra is 0. .IP "\fB\-t \fIstring\fR" insert \fIstring\fR as header in \fIoutput_file\fR. .IP "\fB\-max_vertex\fR \fInb\fR" Set maxnumber of vertices per cross-section to \fInb\fR. Default is 10000. .IP "\fB\-max_tetra\fR \fInb\fR" Set maxnumber of tetrahedra per slice to \fInb\fR. Default is 4*(max_vertex-1). .IP \fB\-p\fR no vertex output. If both the surface triangles and the tetrahedra are used, vertices are already contained in the surface file. .SH SEE ALSO repros(1), prepros(1), repros2visu(1), nuages(1) .SH AUTHOR Bernhard Geiger Copyright (C) 1993 by INRIA Sophia Antipolis Permission to use, copy, modify, and distribute this software and its documentation for educational, research, and non-profit purposes without fee is hereby granted, provided that the above copyright notice and the original authors name appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.