From ec70cb42ef7247579c3eae01529ce55424ec3df1 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 4 Feb 2017 14:25:37 +0000 Subject: [PATCH] show how to fuse fragments --- benchmarks/boolean/compsolid.geo | 2 +- benchmarks/boolean/neuron.geo | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/benchmarks/boolean/compsolid.geo b/benchmarks/boolean/compsolid.geo index b9379510e3..ab67e8f73d 100644 --- a/benchmarks/boolean/compsolid.geo +++ b/benchmarks/boolean/compsolid.geo @@ -1,6 +1,6 @@ SetFactory("OpenCASCADE"); -Mesh.Algorithm = 6; +//Mesh.Algorithm = 6; Mesh.CharacteristicLengthMin = 0.1; Mesh.CharacteristicLengthMax = 0.1; diff --git a/benchmarks/boolean/neuron.geo b/benchmarks/boolean/neuron.geo index d06d07a7e7..c88cb631e5 100644 --- a/benchmarks/boolean/neuron.geo +++ b/benchmarks/boolean/neuron.geo @@ -37,6 +37,8 @@ EndFor DefineConstant[ op = {0, Choices{0="None", 1="Union", 2="Intersection", 3="Difference", 4="Fragments"}, Name "Boolean operation" } + sph = {0, Choices{0,1}, Visible op == 4, + Name "Fuse sphere fragments?" } ]; // boolean operations can explicitly create an entity tag with the form @@ -53,4 +55,7 @@ ElseIf(op == 3) BooleanDifference(100) = { Volume{1}; Delete; }{ Volume{reg()}; Delete; }; ElseIf(op == 4) BooleanFragments { Volume{1}; Delete; }{ Volume{reg()}; Delete; } + If(sph) + BooleanUnion{ Volume{1}; Delete; }{ Volume{2,3,4}; Delete;} + EndIf EndIf -- GitLab