generate .cpp for meshing rules automatically during the build process

This commit is contained in:
Matthias Hochsteger 2021-04-29 14:30:21 +02:00
parent 4592123f68
commit 2eb888a8bf
18 changed files with 21 additions and 4524 deletions

View File

@ -1,3 +1,18 @@
# generate .cpp files containing the string of the .rls meshing rule files
add_executable(makerls ${CMAKE_CURRENT_SOURCE_DIR}/../../rules/makerlsfile.cpp)
set(rules hexrules prismrules2 pyramidrules pyramidrules2 quadrules tetrules triarules)
foreach(rule ${rules})
list(APPEND rules_sources rule_${rule}.cpp)
add_custom_command(OUTPUT rule_${rule}.cpp
COMMAND makerls ${CMAKE_CURRENT_SOURCE_DIR}/../../rules/${rule}.rls rule_${rule}.cpp ${rule}
DEPENDS makerls
)
endforeach()
add_definitions(-DNGINTERFACE_EXPORTS)
add_library(mesh ${NG_LIB_TYPE}
adfront2.cpp adfront3.cpp bisect.cpp boundarylayer.cpp
@ -6,14 +21,14 @@ add_library(mesh ${NG_LIB_TYPE}
improve2gen.cpp improve3.cpp localh.cpp meshclass.cpp
meshfunc.cpp meshfunc2d.cpp meshing2.cpp meshing3.cpp
meshtool.cpp meshtype.cpp msghandler.cpp netrule2.cpp
netrule3.cpp parser2.cpp parser3.cpp prism2rls.cpp
pyramid2rls.cpp pyramidrls.cpp quadrls.cpp refine.cpp
netrule3.cpp parser2.cpp parser3.cpp refine.cpp
ruler2.cpp ruler3.cpp secondorder.cpp smoothing2.5.cpp
smoothing2.cpp smoothing3.cpp specials.cpp tetrarls.cpp
topology.cpp triarls.cpp validate.cpp bcfunctions.cpp
smoothing2.cpp smoothing3.cpp specials.cpp
topology.cpp validate.cpp bcfunctions.cpp
parallelmesh.cpp paralleltop.cpp paralleltop.hpp basegeom.cpp
python_mesh.cpp hexarls.cpp surfacegeom.cpp
python_mesh.cpp surfacegeom.cpp
../../ng/onetcl.cpp
${rules_sources}
${mesh_object_libs}
)

View File

@ -1,209 +0,0 @@
namespace netgen
{
const char * hexrules[] = {
"rule \"Hexa left-right-top\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"flags t;\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0) { 1 } ;\n",\
"(1, 1, 0) { 1 } ;\n",\
"(0, 1, 0) { 1 } ;\n",\
"(0, 0, 1) { 1 } ;\n",\
"(1, 0, 1) { 1 } ;\n",\
"(1, 1, 1) { 1 } ;\n",\
"(0, 1, 1) { 1 } ;\n",\
"\n",\
"mapfaces\n",\
"(4, 3, 2, 1) del;\n",\
"(3, 7, 6, 2) del;\n",\
"(7, 8, 5, 6) del;\n",\
"(8, 4, 1, 5) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 6, 2, 1);\n",\
"(7, 8, 4, 3);\n",\
"\n",\
"elements\n",\
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.3 P1, 0.3 P2, 0.3 P5, 0.3 P6, -0.05 P3, -0.05 P4, -0.05 P7, -0.05 P8 };\n",\
"{ 0.3 P3, 0.3 P4, 0.3 P7, 0.3 P8, -0.05 P1, -0.05 P2, -0.05 P5, -0.05 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.25 P1, 0.25 P2, 0.25 P5, 0.25 P6, -0.0 P3, -0.0 P4, -0.0 P7, -0.0 P8 };\n",\
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"Hexa left-right-top (10)\"\n",\
"\n",\
"quality 10\n",\
"\n",\
"flags t;\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0) { 1 } ;\n",\
"(1, 1, 0) { 1 } ;\n",\
"(0, 1, 0) { 1 } ;\n",\
"(0, 0, 1) { 1 } ;\n",\
"(1, 0, 1) { 1 } ;\n",\
"(1, 1, 1) { 1 } ;\n",\
"(0, 1, 1) { 1 } ;\n",\
"\n",\
"mapfaces\n",\
"(4, 3, 2, 1) del;\n",\
"(3, 7, 6, 2) del;\n",\
"(7, 8, 5, 6) del;\n",\
"(8, 4, 1, 5) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 6, 2, 1);\n",\
"(7, 8, 4, 3);\n",\
"\n",\
"elements\n",\
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.251 P1, 0.251 P2, 0.251 P5, 0.251 P6, -0.05 P3, -0.001 P4, -0.001 P7, -0.001 P8 };\n",\
"{ 0.251 P3, 0.251 P4, 0.251 P7, 0.251 P8, -0.05 P1, -0.001 P2, -0.001 P5, -0.001 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.25 P1, 0.25 P2, 0.25 P5, 0.25 P6, -0.0 P3, -0.0 P4, -0.0 P7, -0.0 P8 };\n",\
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Hexa left-right-top-front\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"flags t;\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0) { 1 } ;\n",\
"(1, 1, 0) { 1 } ;\n",\
"(0, 1, 0) { 1 } ;\n",\
"(0, 0, 1) { 1 } ;\n",\
"(1, 0, 1) { 1 } ;\n",\
"(1, 1, 1) { 1 } ;\n",\
"(0, 1, 1) { 1 } ;\n",\
"\n",\
"mapfaces\n",\
"(4, 3, 2, 1) del;\n",\
"(3, 7, 6, 2) del;\n",\
"(7, 8, 5, 6) del;\n",\
"(8, 4, 1, 5) del;\n",\
"(1, 2, 6, 5) del;\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(7, 8, 4, 3);\n",\
"\n",\
"elements\n",\
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.3 P3, 0.3 P4, 0.3 P7, 0.3 P8, -0.05 P1, -0.05 P2, -0.05 P5, -0.05 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 0.25 P3, 0.25 P4, 0.25 P7, 0.25 P8, -0.0 P1, -0.0 P1, -0.0 P5, -0.0 P6 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Hexa fill\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"flags t;\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0) { 1 } ;\n",\
"(1, 1, 0) { 1 } ;\n",\
"(0, 1, 0) { 1 } ;\n",\
"(0, 0, 1) { 1 } ;\n",\
"(1, 0, 1) { 1 } ;\n",\
"(1, 1, 1) { 1 } ;\n",\
"(0, 1, 1) { 1 } ;\n",\
"\n",\
"mapfaces\n",\
"(4, 3, 2, 1) del;\n",\
"(3, 7, 6, 2) del;\n",\
"(7, 8, 5, 6) del;\n",\
"(8, 4, 1, 5) del;\n",\
"(1, 2, 6, 5) del;\n",\
"(3, 4, 8, 7) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"\n",\
"elements\n",\
"(4, 3, 2, 1, 8, 7, 6, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P5 };\n",\
"{ 1 P3 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
0};
}

View File

@ -1,457 +0,0 @@
namespace netgen
{
const char * prismrules2[] = {
"tolfak 0.5\n",\
"\n",\
"rule \"prism on quad\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"(1, 5, 6, 4);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 5 6 8;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"(1, 5, 6, 4);\n",\
"(4, 6, 3);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 5 6 8;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quad\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 5, 6, 4);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 5, 6, 4);\n",\
"(4, 6, 3);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quada\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5 6 7;\n",\
"\n",\
"freeset\n",\
"1 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"fill prism\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 3 quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(4, 6, 3);\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"flat prism\"\n",\
"\n",\
"quality 100\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(0.5, 0.866, 0);\n",\
"(0, 0, -1);\n",\
"(1, 0, -1);\n",\
"(0.5, 0.866, -1);\n",\
"\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3) del;\n",\
"(5, 4, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 2, 4);\n",\
"(4, 2, 5);\n",\
"(2, 3, 5);\n",\
"(5, 3, 6);\n",\
"(3, 1, 6);\n",\
"(6, 1, 4);\n",\
"\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 5, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"endrule\n",\
"\n",\
0};
}

View File

@ -1,446 +0,0 @@
namespace netgen
{
const char * prismrules2[] = {
"tolfak 0.5\n",\
"\n",\
"rule \"prism on quad\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"(1, 5, 6, 4);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"(1, 5, 6, 4);\n",\
"(4, 6, 3);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quad\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 5, 6, 4);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 5, 6, 4);\n",\
"(4, 6, 3);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.3 P1, -0.1 P2, -0.1 P3, 0.3 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0.25 P1, 0 P2, 0 P3, 0.25 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5 6 7;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 2 quada\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(5, 2, 3, 6);\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ -0.1 P1, 0.3 P2, 0.3 P3, -0.1 P4, 0.3 P5, 0.3 P6 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"{ 0 P1, 0.25 P2, 0.25 P3, 0 P4, 0.25 P5, 0.25 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5 6 7;\n",\
"\n",\
"freeset\n",\
"1 3 4 6;\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"fill prism\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"(4, 3, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"prism on 3 quad, one trig\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0, -0.86);\n",\
"(0.5, 1, -0.86);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 5, 6, 3) del;\n",\
"(5, 1, 4, 6) del;\n",\
"(1, 5, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(4, 6, 3);\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 5, 2, 4, 6, 3);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"\n",\
"freeset\n",\
"1 2 4 5;\n",\
"\n",\
"freeset\n",\
"2 3 4 6;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"flat prism\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(0.5, 0.866, 0);\n",\
"(0, 0, -1);\n",\
"(1, 0, -1);\n",\
"(0.5, 0.866, -1);\n",\
"\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3) del;\n",\
"(5, 4, 6) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 2, 4);\n",\
"(4, 2, 5);\n",\
"(2, 3, 5);\n",\
"(5, 3, 6);\n",\
"(3, 1, 6);\n",\
"(6, 1, 4);\n",\
"\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 5, 4, 6);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P5 };\n",\
"{ 1 P6 };\n",\
"endrule\n",\
"\n",\
0};
}

View File

@ -1,309 +0,0 @@
namespace netgen
{
const char * pyramidrules2[] = {
"tolfak 0.5\n",\
"\n",\
"rule \"Pyramid on quad\"\n",\
"\n",\
"quality 100\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.5, -0.5) \n",\
" { 0.25 X1, 0.25 X2, 0.25 X3, 0.25 X4 } \n",\
" { 0.25 Y1, 0.25 Y2, 0.25 Y3, 0.25 Y4 } { };\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1.4 P5, -0.1 P1, -0.1 P2, -0.1 P3, -0.1 P4 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"small Pyramid on quad\"\n",\
"\n",\
"quality 100\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.5, -0.1 )\n",\
" { 0.25 X1, 0.25 X2, 0.25 X3, 0.25 X4 } \n",\
" { 0.25 Y1, 0.25 Y2, 0.25 Y3, 0.25 Y4 } { };\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1.4 P5, -0.1 P1, -0.1 P2, -0.1 P3, -0.1 P4 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"connect pyramid\"\n",\
"\n",\
"quality 100\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"pyramid with one trig\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 1, 5) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 0.34 P2, 0.34 P3, 0.34 P5, -0.02 P1 };\n",\
"{ 0.34 P3, 0.34 P4, 0.34 P5, -0.02 P1 };\n",\
"{ 0.34 P1, 0.34 P4, 0.34 P5, -0.02 P2 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 0.333 P2, 0.333 P3, 0.334 P5, 0 P1 };\n",\
"{ 0.333 P3, 0.333 P4, 0.334 P5, 0 P1 };\n",\
"{ 0.333 P1, 0.333 P4, 0.334 P5, 0 P2 };\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 5);\n",\
"\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"freeset\n",\
"1 3 4 5;\n",\
"freeset\n",\
"2 3 5 6;\n",\
"freeset\n",\
"3 4 5 7;\n",\
"freeset \n",\
"1 4 5 8;\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"pyramid with two trig\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 1, 5) del;\n",\
"(3, 2, 5) del;\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"pyramid with two trig, left\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 1, 5) del;\n",\
"(1, 4, 5) del;\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(3, 4, 5);\n",\
"(2, 3, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
0};
}

View File

@ -1,263 +0,0 @@
namespace netgen
{
const char * pyramidrules[] = {
"tolfak 0.5\n",\
"\n",\
"rule \"Pyramid on quad\"\n",\
"\n",\
"quality 10\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.5, -0.5) \n",\
" { 0.25 X1, 0.25 X2, 0.25 X3, 0.25 X4 } \n",\
" { 0.25 Y1, 0.25 Y2, 0.25 Y3, 0.25 Y4 } { };\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1.4 P5, -0.1 P1, -0.1 P2, -0.1 P3, -0.1 P4 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"small Pyramid on quad\"\n",\
"\n",\
"quality 100\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.5, -0.1 )\n",\
" { 0.25 X1, 0.25 X2, 0.25 X3, 0.25 X4 } \n",\
" { 0.25 Y1, 0.25 Y2, 0.25 Y3, 0.25 Y4 } { };\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1.4 P5, -0.1 P1, -0.1 P2, -0.1 P3, -0.1 P4 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"connect pyramid\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(1, 2, 5);\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"pyramid with one trig\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 1, 5) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(2, 3, 5);\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 0.34 P2, 0.34 P3, 0.34 P5, -0.02 P1 };\n",\
"{ 0.34 P3, 0.34 P4, 0.34 P5, -0.02 P1 };\n",\
"{ 0.34 P1, 0.34 P4, 0.34 P5, -0.02 P3 };\n",\
"\n",\
"freezonelimit\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"{ 0.333 P2, 0.333 P3, 0.334 P5, 0 P1 };\n",\
"{ 0.333 P3, 0.333 P4, 0.334 P5, 0 P1 };\n",\
"{ 0.333 P1, 0.333 P4, 0.334 P5, 0 P3 };\n",\
"\n",\
"orientations\n",\
"(1, 2, 3, 5);\n",\
"(1, 3, 4, 5);\n",\
"\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"freeset\n",\
"1 3 4 5;\n",\
"freeset\n",\
"2 3 5 6;\n",\
"freeset\n",\
"3 4 5 7;\n",\
"freeset \n",\
"1 4 5 8;\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"pyramid with two trig\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0, 0);\n",\
"(1, 0, 0);\n",\
"(1, 1, 0);\n",\
"(0, 1, 0);\n",\
"(0.5, 0.5, -0.5);\n",\
"\n",\
"mapfaces\n",\
"(1, 2, 3, 4) del;\n",\
"(2, 1, 5) del;\n",\
"(3, 2, 5) del;\n",\
"newpoints\n",\
"\n",\
"newfaces\n",\
"(3, 4, 5);\n",\
"(4, 1, 5);\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4, 5);\n",\
"\n",\
"freezone2\n",\
"{ 1 P1 };\n",\
"{ 1 P2 };\n",\
"{ 1 P3 };\n",\
"{ 1 P4 };\n",\
"{ 1 P5 };\n",\
"\n",\
"freeset\n",\
"1 2 3 5;\n",\
"\n",\
"freeset\n",\
"1 3 4 5;\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
0};
}

View File

@ -1,887 +0,0 @@
namespace netgen
{
const char * quadrules[] = {
"rule \"Free Quad (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(1, 1) { 1 X2 } { };\n",\
"(0, 1) { } { };\n",\
"\n",\
"newlines\n",\
"(3, 2);\n",\
"(4, 3);\n",\
"(1, 4);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 1.5) { 1.5 X2 } { };\n",\
"(-0.5, 1.5) { -0.5 X2 } { };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Free Quad (5)\"\n",\
"\n",\
"quality 5\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(1, 1) { 1 X2 } { };\n",\
"(0, 1) { } { };\n",\
"\n",\
"newlines\n",\
"(3, 2);\n",\
"(4, 3);\n",\
"(1, 4);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 1.5) { 1.5 X2 } { };\n",\
"(-0.5, 1.5) { -0.5 X2 } { };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X2 } { };\n",\
"(0, 1) { } { };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Quad Right (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"(0, 1) { } { 1 y3 };\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(-0.5, 1.5) { } { 1.5 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"Quad P Right (2)\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0, 1) { -1 X2, 1 X3 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.2, 0.5) { 0.7 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(-0.5, 1.5) { -2 X2, 1.5 X3 } { 1.5 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 0.5 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { -1 X2, 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"\n",\
"orientations\n",\
"(1, 2, 3);\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"Quad P Right (150)\"\n",\
"\n",\
"quality 150\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0, 1) { 1 X2, -1 X3 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.2, 0.5) { 0.7 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(-0.5, 1.5) { -2 X2, 1.5 X3 } { 1.5 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 0.5 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X2, -1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"Quad Right PL (2)\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0.5, 1.2) { -0.1 X2, 0.6 X3, 0.6 X4 } { -0.1 Y2, 0.6 Y3, 0.6 Y4 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(-0.2, 0.5) { -0.1 X2, -0.1 X3, 0.6 X4 } { -0.1 Y2, -0.1 Y3, 0.6 Y4 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0.5, 1) { 0.5 X3, 0.5 X4 } { 0.5 Y3, 0.5 Y4 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(0, 0.5) { 0.5 X4 } { 0.5 Y4 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"orientations\n",\
"(1, 2, 3);\n",\
"(1, 3, 4);\n",\
"(1, 2, 4);\n",\
"(4, 2, 3);\n",\
"\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left Quad (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"(1, 1) { 1 X2, 1 X3 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 1.5) { 1.5 X2, 1.5 X3 } { 1.5 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X2, 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left P Quad (2)\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(1, 1) { 1 X2, 1 X3 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 1.5) { 1.5 X2, 1.5 X3 } { 1.5 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"(-0.2, 0.6) { -0.2 X2, 0.6 X3 } { 0.6 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X2, 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 0.5) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left P Quad (150)\"\n",\
"\n",\
"quality 150\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(1, 1) { 1 X2, -1 X3 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 1.5) { 1.5 X2, 1.5 X3 } { 1.5 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"(-0.2, 0.6) { -0.2 X2, 0.6 X3 } { 0.6 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X2, -1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 0.5) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left Quad RP (2)\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0, 1);\n",\
"(1, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.2, 0.5) { 0.6 X2, 0.6 X4, -0.1 X3 } { 0.6 Y2, 0.6 Y4, -0.1 Y3 };\n",\
"(1, 1) { 1 X4 } { 1 Y4 };\n",\
"(0.5, 1.2) { -0.1 X2, 0.6 X3, 0.6 X4 } { -0.1 Y2, 0.6 Y3, 0.6 Y4 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 0.5 X2, 0.5 X4 } { 0.5 Y2, 0.5 Y4 };\n",\
"(1, 1) { 1 X4 } { 1 Y4 };\n",\
"(0.5, 1) { 0.5 X3, 0.5 X4 } { 0.5 Y3, 0.5 Y4 };\n",\
"(0, 1) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4, 3);\n",\
"\n",\
"orientations\n",\
"(1, 2, 4);\n",\
"(1, 4, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Two left (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 4) del;\n",\
"(4, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.5) { 0.75 X2, 0.75 X3, -0.25 X4 } { 0.75 Y3, -0.25 Y4 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 0.5 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Two Right (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"(3, 4) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(-0.5, 0.5) { -0.25 X2, -0.25 X3, 0.75 X4 } { -0.25 Y3, 0.75 Y4 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(0, 0.5) { 0.5 X4 } { 0.5 Y4 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Right 120 (1)\"\n",\
"\n",\
"quality 1000\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 1 X3, -1 X2 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(1, 1.732) { -2 X2, 2 X3 } { 2 Y3 };\n",\
"(0, 1.732) { -3 X2, 2 X3 } { 2 Y3 };\n",\
"(-0.5, 0.866) { -2 X2, 1 X3 } {1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4);\n",\
"(2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left 120 (1)\"\n",\
"\n",\
"quality 1000\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(-0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 1 X3, 1 X2 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.866) { 2 X2, 1 X3 } { 1 Y3 };\n",\
"(1, 1.732) { 2 X2, 2 X3 } { 2 Y3 };\n",\
"(0, 1.732) { -1 X2, 2 X3 } { 2 Y3 };\n",\
"(-0.5, 0.866) { 1 X3 } {1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4);\n",\
"(2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left Right (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"(4, 1) del;\n",\
"\n",\
"\n",\
"newlines\n",\
"(4, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0.5, 1.5) { -0.25 X2, 0.75 X3, 0.75 X4 } { 0.75 Y3, 0.75 Y4 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0.5, 1) { 0.5 X3, 0.5 X4 } { 0.5 Y3, 0.5 Y4 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Fill Quad\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"(3, 4) del;\n",\
"(4, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { 1 Y2 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Fill Triangle\"\n",\
"\n",\
"quality 10\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0.5, 0.86);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { 1 Y2 };\n",\
"(0.5, 0.86) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"Right 60 (1)\"\n",\
"\n",\
"quality 10\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 0.5, 0, 1.0 };\n",\
"(0.5, 0.866) { 0.6, 0, 0.8 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(-0.125, 0.6495) { -0.5 X2, 0.75 X3 } { -0.5 Y2, 0.75 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(0.25, 0.433) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Vis A Vis (2)\"\n",\
"\n",\
"quality 2\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1);\n",\
"(0, 1);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 4) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.5) { 0.75 X2, 0.75 X3, -0.25 X4 } { 0.75 Y3, -0.25 Y4 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(-0.5, 0.5) { -0.25 X2, -0.25 X3, 0.75 X4 } { -0.25 Y3, 0.75 Y4 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 0.5 X2, 0.5 X3 } { 0.5 Y3 };\n",\
"(1, 1) { 1 X3 } { 1 Y3 };\n",\
"(0, 1) { 1 X4 } { 1 Y4 };\n",\
"(0, 0.5) { 0.5 X4 } { 0.5 Y4 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3, 4);\n",\
"\n",\
"orientations\n",\
"(1, 3, 4);\n",\
"(2, 3, 4);\n",\
"(1, 2, 3);\n",\
"(1, 2, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Triangle Vis A Vis (200)\"\n",\
"\n",\
"quality 200\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.2, 0.693) { 0.8 X2, 0.8 X3 } { 0.8 Y2, 0.8 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(-0.2, 0.693) { -0.6 X2, 0.8 X3 } { -0.6 Y2, 0.8 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.75, 0.433) { 0.5 X2, 0.5 X3 } { 0.5 Y2, 0.5 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(0.25, 0.433) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"2 h Vis A Vis (1)\"\n",\
"\n",\
"quality 3000\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1.732);\n",\
"(0, 1.732);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 0.25 X3, 0.25 X4 } { 0.25 Y2, 0.25 Y3, 0.25 Y4 };\n",\
"\n",\
"newlines\n",\
"(1, 5);\n",\
"(5, 4);\n",\
"(3, 5);\n",\
"(5, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { 1 Y2 };\n",\
"(1.5, 0.866) { 0.75 X2, 0.75 X3, -0.25 X4 } { 0.75 Y2, 0.75 Y3, -0.25 Y4 };\n",\
"(1, 1.732) { 1 X3 } { 1 Y3 };\n",\
"(0, 1.732) { 1 X4 } { 1 Y4 };\n",\
"(-0.5, 0.866) { 0.75 X4, -0.25 X2, -0.25 X3 } { 0.75 Y4, -0.25 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 5);\n",\
"(3, 4, 5);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
0};
}

File diff suppressed because it is too large Load Diff

View File

@ -1,468 +0,0 @@
namespace netgen
{
const char * triarules[] = {
"rule \"Free Triangle (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 1.0, 0, 1.0 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 0.5 X2 } { };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.7) { 0.5 X2 } { };\n",\
"(0.5, 1.5) { 0.5 X2 } { };\n",\
"(-0.5, 0.7) { 0.5 X2 } { };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.866) { 0.5 X2 } { };\n",\
"(0.5, 0.866) { 0.5 X2 } { };\n",\
"(0.5, 0.866) { 0.5 X2 } { };\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"Free Triangle (5)\"\n",\
"\n",\
"quality 5\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 1.0, 0, 1.0 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.5) { 0.5 X2 } { };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.7) { 1 X2 } { };\n",\
"(0, 0.7) { } { };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.5) { 0.5 X2 } { };\n",\
"(0.5, 0.5) { 0.5 X2 } { };\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Free Triangle (10)\"\n",\
"\n",\
"quality 10\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 1.0, 0, 1.0 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.3) { 0.5 X2 } { };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.5) { 1 X2 } { };\n",\
"(0, 0.5) { } { };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.3) { 0.5 X2 } { };\n",\
"(0.5, 0.3) { 0.5 X2 } { };\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Free Triangle (20)\"\n",\
"\n",\
"quality 20\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 1.0, 0, 1.0 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.1) { 0.5 X2 } { };\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1, 0.2) { 1 X2 } { };\n",\
"(0, 0.2) { } { };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.1) { 0.5 X2 } { };\n",\
"(0.5, 0.1) { 0.5 X2 } { };\n",\
"\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Right 60 (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0) { 0.5, 0, 1.0 };\n",\
"(0.5, 0.866) { 0.6, 0, 0.8 };\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(-0.125, 0.6495) { -0.5 X2, 0.75 X3 } { -0.5 Y2, 0.75 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(0.25, 0.433) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left 60 (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.125, 0.6495) { 0.75 X2, 0.75 X3 } { 0.75 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.75, 0.433) { 0.5 X2, 0.5 X3 } { 0.5 Y2, 0.5 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Right 120 (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 1 X3, -1 X2 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(1, 4);\n",\
"(4, 3);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(1, 1.732) { -2 X2, 2 X3 } { 2 Y3 };\n",\
"(0, 1.732) { -3 X2, 2 X3 } { 2 Y3 };\n",\
"(-0.5, 0.866) { -2 X2, 1 X3 } {1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4);\n",\
"(2, 3, 4);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left 120 (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(-0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 1 X3, 1 X2 } { 1 Y3 };\n",\
"\n",\
"newlines\n",\
"(3, 4);\n",\
"(4, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.866) { 2 X2, 1 X3 } { 1 Y3 };\n",\
"(1, 1.732) { 2 X2, 2 X3 } { 2 Y3 };\n",\
"(0, 1.732) { 1 X2, 2 X3 } { 2 Y3 };\n",\
"(-0.5, 0.866) { 1 X3 } {1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 4);\n",\
"(1, 4, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Left Right 120 (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(-0.5, 0.866);\n",\
"(1.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 1) del;\n",\
"(2, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 0.5 X3, 0.5 X4 } { 0.5 Y3, 0.5 Y4 };\n",\
"\n",\
"newlines\n",\
"(3, 5);\n",\
"(5, 4);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.5, 0.866) { 1 X4 } { 1 Y4 };\n",\
"(1, 1.299) { -0.5 X2, 0.375 X3, 1.125 X4 } { -0.5 Y2, 0.375 Y3, 1.125 Y4 };\n",\
"(0, 1.299) { 1.125 X3, 0.375 X4 } { 1.125 Y3, 0.375 Y4 };\n",\
"(-0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 5);\n",\
"(3, 1, 5);\n",\
"(2, 4, 5);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"rule \"Fill Triangle\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(2, 3) del;\n",\
"(3, 1) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { 1 Y2 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"Vis A Vis (1)\"\n",\
"\n",\
"quality 1\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(0.5, 0.866);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"\n",\
"newpoints\n",\
"\n",\
"newlines\n",\
"(1, 3);\n",\
"(3, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(1.2, 0.693) { 0.8 X2, 0.8 X3 } { 0.8 Y2, 0.8 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(-0.2, 0.693) { -0.6 X2, 0.8 X3 } { -0.6 Y2, 0.8 Y3 };\n",\
"\n",\
"freearea2\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { };\n",\
"(0.75, 0.433) { 0.5 X2, 0.5 X3 } { 0.5 Y2, 0.5 Y3 };\n",\
"(0.5, 0.866) { 1 X3 } { 1 Y3 };\n",\
"(0.25, 0.433) { 0.5 X3 } { 0.5 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 3);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"rule \"2 h Vis A Vis (1)\"\n",\
"\n",\
"quality 3\n",\
"\n",\
"mappoints\n",\
"(0, 0);\n",\
"(1, 0);\n",\
"(1, 1.732);\n",\
"(0, 1.732);\n",\
"\n",\
"maplines\n",\
"(1, 2) del;\n",\
"(3, 4) del;\n",\
"\n",\
"newpoints\n",\
"(0.5, 0.866) { 0.25 X2, 0.25 X3, 0.25 X4 } { 0.25 Y2, 0.25 Y3, 0.25 Y4 };\n",\
"\n",\
"newlines\n",\
"(1, 5);\n",\
"(5, 4);\n",\
"(3, 5);\n",\
"(5, 2);\n",\
"\n",\
"freearea\n",\
"(0, 0);\n",\
"(1, 0) { 1 X2 } { 1 Y2 };\n",\
"(1.5, 0.866) { 0.75 X2, 0.75 X3, -0.25 X4 } { 0.75 Y2, 0.75 Y3, -0.25 Y4 };\n",\
"(1, 1.732) { 1 X3 } { 1 Y3 };\n",\
"(0, 1.732) { 1 X4 } { 1 Y4 };\n",\
"(-0.5, 0.866) { 0.75 X4, -0.25 X2, -0.25 X3 } { 0.75 Y4, -0.25 Y3 };\n",\
"\n",\
"elements\n",\
"(1, 2, 5);\n",\
"(3, 4, 5);\n",\
"\n",\
"endrule\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
"\n",\
0};
}

View File

@ -1,12 +0,0 @@
g++ makerlsfile.cpp -o makerls
./makerls hexa.rls ../libsrc/meshing/hexarls.cpp hexrules
./makerls prisms2.rls ../libsrc/meshing/prism2rls.cpp prismrules2
./makerls pyramids.rls ../libsrc/meshing/pyramidrls.cpp pyramidrules
./makerls pyramids2.rls ../libsrc/meshing/pyramid2rls.cpp pyramidrules2
./makerls quad.rls ../libsrc/meshing/quadrls.cpp quadrules
./makerls tetra.rls ../libsrc/meshing/tetrarls.cpp tetrules
./makerls triangle.rls ../libsrc/meshing/triarls.cpp triarules
rm makerls
# node: prisms2rls is currently not used (prism2rls_2.cpp is not compiled)
# ./makerls prisms2.rls ../libsrc/meshing/prism2rls_2.cpp prismrules2

View File

@ -59,7 +59,7 @@ int main (int argc, char ** argv)
inf.get(ch);
}
line[i] = 0;
cout << line << endl;
// cout << line << endl;
outf << "\"" << line << "\\n\",\\" << endl;
}
outf << "0};" << endl;