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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
23981db2
Commit
23981db2
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
doc
parent
8ee66f5f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/texinfo/gmsh.texi
+61
-1
61 additions, 1 deletion
doc/texinfo/gmsh.texi
with
61 additions
and
1 deletion
doc/texinfo/gmsh.texi
+
61
−
1
View file @
23981db2
...
@@ -1085,7 +1085,8 @@ List of expressions are also widely used, and are defined as:
...
@@ -1085,7 +1085,8 @@ List of expressions are also widely used, and are defined as:
@var
{
string
}
[ @
{
@var
{
expression-list
}
@
}
] |
@var
{
string
}
[ @
{
@var
{
expression-list
}
@
}
] |
Point @
{
@var
{
expression
}
@
}
|
Point @
{
@var
{
expression
}
@
}
|
@var
{
transform
}
|
@var
{
transform
}
|
@var
{
extrude
}
@var
{
extrude
}
|
@var
{
boolean
}
|
Point @
{
@var
{
expression
}
@
}
|
Point @
{
@var
{
expression
}
@
}
|
<Physical> Point|Line|Surface|Volume "*" |
<Physical> Point|Line|Surface|Volume "*" |
Point|Line|Surface|Volume In BoundingBox @
{
@var
{
expression-list
}
@
}
|
Point|Line|Surface|Volume In BoundingBox @
{
@var
{
expression-list
}
@
}
|
...
@@ -2385,7 +2386,66 @@ options list}).
...
@@ -2385,7 +2386,66 @@ options list}).
@cindex Geometry, difference
@cindex Geometry, difference
@cindex Geometry, union
@cindex Geometry, union
@cindex Geometry, fragments
@cindex Geometry, fragments
@findex @var
{
boolean
}
Boolean operations can be applied on lines, surfaces and volumes. All
boolean operation act on two lists of elementary entities. The first
list represents the object; the second represents the tool. The general
syntax for boolean operations is as follows:
@var
{
boolean
}
:
@ftable @code
@item BooleanIntersection @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Computes the intersection of the object and the tool.
@item BooleanUnion @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Computes the union of the object and the tool.
@item BooleanDifference @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Subtract the tool from the object.
@item BooleanFramgments @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Computes all the fragments resulting from the intersection of the object
and the tool.
@end ftable
with
@example
@var
{
boolean-list
}
:
Line | Surface | Volume @
{
@var
{
expression-list
}
@
}
; @dots
{}
|
Delete ;
@end example
If @code
{
Delete
}
is specified in the @var
{
boolean-list
}
, the tool and/or
the object is deleted.
As explained in @ref
{
Floating point expressions
}
, @var
{
boolean
}
can be
used in an expression, in which case it returns the list of
identification numbers of the highest dimensional entities created by
the boolean operation. See
@url
{
http://gitlab.onelab.info/gmsh/gmsh/tree/master/demos/boolean/,demos/boolean
}
for examples.
An alternative syntax exists for boolean operations, which can be used
when it is known beforehand that the operation will result in a single
(highest-dimensional) entity:
@var
{
boolean-explicit
}
:
@ftable @code
@item BooleanIntersection ( @var
{
expression
}
) = @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
;
Computes the intersection of the object and the tool and assign the
result the identification number @var
{
expression
}
.
@item BooleanUnion @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Computes the union of the object and the tool and assign the result
the identification number @var
{
expression
}
.
@item BooleanDifference @
{
@var
{
boolean-list
}
@
}
@
{
@var
{
boolean-list
}
@
}
Subtract the tool from the object and assign the result the
identification number @var
{
expression
}
.
@end ftable
Again, see
@url
{
http://gitlab.onelab.info/gmsh/gmsh/tree/master/demos/boolean/,demos/boolean
}
for examples.
Boolean operations are only available with the OpenCASCADE geometry kernel.
@c .........................................................................
@c .........................................................................
@c Transformations
@c Transformations
...
...
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