$| = 1; # flush buffers after every write
-$do_dem2node = 0;
-$do_triangle_1 = 0;
-$do_fixnode = 0;
-$do_splittris = 0;
+$do_dem2node = 1;
+$do_triangle_1 = 1;
+$do_fixnode = 1;
+$do_splittris = 1;
$do_assemtris = 1;
$do_triangle_2 = 1;
fixnode() if ( $do_fixnode );
splittris() if ( $do_splittris );
assemtris() if ( $do_assemtris );
- exit;
triangle_2() if ( $do_triangle_2);
tri2obj() if ( $do_tri2obj );
strips() if ( $do_strips );
foreach $file ( @FILES ) {
chop($file);
if ( $file =~ m/\.1\.body$/ ) {
- $file =~ s/\.body$//; # strip off the ".body"
+ $file =~ s/\.1\.body$//; # strip off the ".body"
$command = "AssemTris/assemtris $subdir/$file";
$command = fix_command($command);
sub triangle_2 {
@FILES = `ls $subdir`;
foreach $file ( @FILES ) {
- print $file;
+ # print $file;
chop($file);
if ( ($file =~ m/\.node$/) && ($file !~ m/\.\d\.node$/) ) {
$base = $file;
$base =~ s/\.node$//;
print("Test for $subdir/$base.q\n");
- if ( -r "$subdir/$base.q" ) {
+ $command = "Triangle/triangle";
+
+ if ( -r "$subdir/$base.q" ) {
# if triangle hangs, we can create a filebase.q for
# the file it hung on. Then, we test for that file
# here which causes the incremental algorithm to run
# (which shouldn't ever hang.)
+ $command .= " -i";
+ }
- $command = "Triangle/triangle -i $subdir/$file";
+ if ( -r "$subdir/$base.poly" ) {
+ $command .= " -pc $subdir/$base";
} else {
- $command = "Triangle/triangle $subdir/$file";
+ $command .= " -c $subdir/$file";
}
+
$command = fix_command($command);
print "Running '$command'\n";
open(OUT, "$command |");
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.24 1998/07/21 04:33:47 curt
+# More tweaks for sub-area cutouts.
+#
# Revision 1.23 1998/07/20 12:55:35 curt
# Several tweaks to start incorporating area cutouts into the pipeline.
#