Repository navigation
draw segment
< Previous: Point | Next: Line >
A finite edge between two points.
Menu: Draw > Segment | Node: Segment | In depth: Lines, rays & segments
Two clicks, one for each end. Or select two points that already exist and pick the tool: it reads the selection and joins them, no clicking required.
Each of those clicks goes through exactly what the Point tool does, which is more useful than it sounds. Click an existing point and the segment takes that point rather than a new one beside it. Click a crossing and it takes a real intersection point, so the end stays on the crossing when the things that cross it move. Click on a curve and the end binds to the curve and slides along it. A segment can be anchored into the construction as it is drawn, without a separate step to attach it afterward.
Finite means finite. A segment reaches from one end to the other and no further, so snapping and the Intersection Points node find crossings only between its ends. If you want the crossing out past an endpoint, draw a Line instead.
One deliberate exception, and it catches people: the Points: Intersection command reads a segment as the whole line it sits on. Two segments that do not physically meet still have an intersection, and that command will make it. Snapping does not, which is why the canvas and that command do not always agree about how many crossings exist.
The order of your clicks is the direction. A segment runs from the first end to the second, and that is not decoration. An offset and a weave both read direction to tell one side of a curve from the other, and a segment wired into Move's Vector is a displacement, so the click order is the way you travel. Reverse Direction flips it later if you got it the wrong way round.
A segment is also a length. Where an input wants a radius or a distance, handing it a segment hands it that segment's length, and the two then stay in step: stretch the segment and whatever read it follows.
Hold Shift on the second click to lock the segment to an angle. Constraining with Shift has the detail, including the useful part, that a locked segment still finds the crossing it runs into rather than stopping a hair short of it.
< Previous: Point | Next: Line >
- In the node graph: Segment - build the same segment as a node.
- Lines, rays & segments: which of the three to reach for.
- Reverse Direction: flip which way a drawn segment runs.
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
