Repository navigation
boolean commands
Home > Boolean commands
< Previous: Making regions | Next: Reading the node graph >
Union, intersect, difference and split, as four commands named for what they take rather than for the menu they sit in.
Important
Under construction. The CLI is being built, and this page describes work in progress. What it is called, what it can do, and how it behaves are all still moving. Nothing here is a promise about the finished feature.
Because model intersect already means something else. That one makes a
point where two objects cross. model region-intersect makes an area
where two areas overlap. Different operation, different kind of thing, so the
prefix keeps them apart.
--members takes two or more areas, and an area is any of these:
- a region you traced, however you made it
- a circle
- an ellipse
- the result of an earlier boolean
Two plain circles are a valid input. You do not have to turn them into regions first.
Say you have two overlapping circles, circleL and circleR.
model region-union \
--members "circleL","circleR" \
--name "bothTogether"
One area covering everything either circle covers.
model region-intersect \
--members "circleL","circleR" \
--name "overlapOnly"
One area covering only the part they share.
model region-difference \
--members "circleL","circleR" \
--name "leftMinusRight"
circleL with circleR taken out of it.
Order matters here, and only here. The first member is the one the rest come out of, so swapping the two gives you the other crescent. Union, intersect and split read the list as a set and do not care what order it is in.
model region-split \
--members "circleL","circleR" \
--name "allThreePieces"
Split is the odd one out. Instead of one shape it divides the inputs against each other and gives back every face they make between them: here the left-only piece, the overlap, and the right-only piece, as a group of regions rather than a single area.
There is no command that traces a region from scratch out of nothing. Boundaries come from somewhere else first, by one of the three region commands or as a circle or ellipse you already drew.
- Making regions: the three ways to get an area in the first place.
- Regions & booleans: the same four operations by hand, in the modeling window.
- CLI commands: the commands, what each takes, and what it does.
< Previous: Making regions | Next: Reading the node graph >
Found a bug or have feedback? Open an issue | Docs home | Videos | Credits
Getting Started
- Welcome
- How Locus came to be
- Videos
- Community & support
- Installing & launching
- Licensing & activation
- Beta License Agreement
- Core concepts
- Interface tour
- Your first pattern
Modeling - Drawing
- Canvas basics
- Points
- Typing coordinates
- Lines, rays & segments
- Circles & arcs
- Ellipses
- Compass & straightedge
- Rectangles & squares
- Splines
- Constraining with Shift
Modeling - Editing
- Selecting objects
- Transform tools
- Align & distribute
- Duplicate, detach & ownership
- Regions & booleans
- Cleanup
- Weld & seams
- Style palettes & Re-ink
Annotation
Layers
Modeling Menus
- File
-
Edit
- Undo and Redo
- Group
- Ungroup
- Copy
- Paste
- Paste in Place
- Duplicate
- Duplicate in Place
- Hide
- Reverse Direction
- Convert to Spline
- Cut Spline
- Close Spline
- Unhide All
- Detach
- Bake
- Clean Up: Merge Coincident Points
- Copy Style
- Reference in Nodes
- Snap to Points
- Snap to Objects
- Snap to Intersections
- Snap to Guides
- View
-
Draw
- Select
- Point
- Pen
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Through 3 Points
- Arc: Center, Start, End
- Straightedge
- Compass
- Compass: Radius
- Ellipse: Center + Axes
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center, Vertex
- Regular Polygon: Center, Edge Midpoint
- Dimension: Linear
- Dimension: Angle
- Dimension: Radial
- Label
- Construct
- Combine
- Transform
- Select
- Nodes
The Nodes Window
- Basics of visual programming
- How the node graph works
- Sockets & wires
- Adding & connecting nodes
- Sliders & number inputs
- Keeping the node graph tidy
- View menu (Nodes)
- Lists & collections
- Constants & unit conversions
Node Library
- Overview
- Input
-
Primitives
- Point
- Point: Polar
- Segment
- Line
- Ray
- Circle: Center Point
- Circle: Center Radius
- Circle: Apollonius
- Circle Tangent to...
- Circle: 3 Points
- Arc
- Ellipse
- Elliptical Arc
- Rectangle: XY-Aligned
- Rectangle: Directed
- Square
- Regular Polygon: Edge
- Regular Polygon: Center
- Rectangular Grid
- Oblique Grid
- Triangular Grid
- Construct
- Transform
- Image & Fields
- Combine
-
Data
- Measure
- Numbers
- Lists
- Select
- Clean up
- Display
Clusters
Bridging Modeling & Nodes
Patterns & Symmetry
Image-Driven Fields
Saving, Exporting & Files
Preferences & Language
CLI
- CLI server
- locus-cli
- CLI commands
- Tangent circles
- Tick and strike
- Making regions
- Boolean commands
- Reading the node graph
Reference