Repository navigation
node bounding box
< Previous: Radius | Next: Math >
The axis-aligned box around whatever comes in: the rectangle, its four edges, its center, and its width and height.
Category: Data | Add menu: Data > Bounding Box
Feed it any geometry and it hands back the smallest upright rectangle that contains all of it - one box for the whole input, not one per object. The box comes out several ways at once, so you can take whichever piece the next node needs: the rectangle itself as a curve, each of its four edges as its own segment, the center as a point, and the width and height as numbers.
- Geometry (any): whatever you want measured - points, curves, regions, a whole tiling. Everything wired in counts toward one box.
- Box (curve): the rectangle, as a closed curve.
- Center (point): the middle of the box.
- Width (number): the box's extent left to right, in mm.
- Height (number): its extent bottom to top, in mm.
- Left, Right, Bottom, Top (curve): the four edges, each as a single segment.
The box is exact, not a rough guess from a few sample points:
- An arc is measured at its true extremes. Where an arc sweeps through the top, bottom, left or right of its circle, the box reaches out to that point; where it doesn't, it stops at the arc's ends.
- An infinite line (a construction line, as opposed to a segment) has no extent and does not stretch the box. Only its finite neighbors do.
- A placed image counts as its whole picture, corners and all.
- With nothing wired in, every output is empty and Width and Height read 0.
Each edge segment has a direction, and it is always the way you would read it: Bottom and Top run left to right, Left and Right run bottom to top. That makes them dependable handles - a Mirror across the Right edge, or a Move along the Top, always steps the same way.
- Space things by their own size. Wire Width and Height into an Array's spacing and copies land edge to edge, whatever the motif measures. That is exactly what the Auto Array library cluster does.
- Mirror at the edge. Wire an edge segment into a Mirror node's axis and the reflection sits flush against the original. Auto Mirror builds a 2 x 2 block this way.
- Find the middle. Center gives you a rotation pivot or a place to put a label without drawing any construction for it.
- Read the size. Width and Height are plain numbers, so they can drive a Slider range, feed Math, or just be read off in Inspect.
< Previous: Radius | Next: Math >
- Auto Mirror and Auto Array - the library clusters built on this node
- Array - takes Width and Height as its spacing
- Length, Area - the other measuring nodes
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
