Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
ec70cb42
Commit
ec70cb42
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
show how to fuse fragments
parent
bf2e405e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/boolean/compsolid.geo
+1
-1
1 addition, 1 deletion
benchmarks/boolean/compsolid.geo
benchmarks/boolean/neuron.geo
+5
-0
5 additions, 0 deletions
benchmarks/boolean/neuron.geo
with
6 additions
and
1 deletion
benchmarks/boolean/compsolid.geo
+
1
−
1
View file @
ec70cb42
SetFactory
(
"OpenCASCADE"
);
Mesh
.
Algorithm
=
6
;
//
Mesh.Algorithm = 6;
Mesh
.
CharacteristicLengthMin
=
0.1
;
Mesh
.
CharacteristicLengthMax
=
0.1
;
...
...
This diff is collapsed.
Click to expand it.
benchmarks/boolean/neuron.geo
+
5
−
0
View file @
ec70cb42
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment