Repository navigation
node select alternating
Home > Data > Select Alternating
< Previous: Select by Pattern | Next: Select by Condition >
Sort the faces of a pattern so no two that touch are alike.
Category: Data | Add menu: Data > Select > Select Alternating
- Geometry (any): the faces to sort.
- Classes (number, editable, default 2): how many groups to sort into.
- Class (number, editable, default 0): which group comes out of Selected.
- Corner Touch (boolean): whether two faces meeting at only a corner count as touching.
- Divide by: a pulldown, set to wedges. Wedges, rings or rows. Wire something in and the node graph chooses instead.
- Tolerance (number, editable, default 0.001): how close two edges must be to count as shared.
- Selected (any): the faces in the class you asked for.
- Unselected (region): all the rest.
- Class (any): the class number of each face, for driving other nodes.
- Classes (number): how many classes it actually used.
Give it the faces of a pattern and it sorts them so no face sits beside another of its own class. Where a two-class answer exists you get a counterchange; where one does not, it uses three or four.
Wire Selected and Unselected into different Style nodes and the pattern colors itself, with the alternation worked out from the geometry rather than picked by hand. Every time the pattern changes, the sorting follows.
Ask for more classes than the pattern needs and it splits them further to reach the number. Ask for fewer than it needs and it uses as many as it must, because the rule that no two touching faces match comes first. The Classes output tells you what it settled on.
Two faces that meet along an edge always count as touching. Two that meet at a single point are the awkward case, and this switch decides. Turn it on and a checkerboard's diagonal neighbors are forced apart, which usually costs you more classes.
< Previous: Select by Pattern | Next: Select by Condition >
- Select by Condition: split on a measurement instead of on adjacency.
- Style: what the two streams usually feed.
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
- 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
- View
-
Draw
- Select
- Point
- 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
Reference

