node square - blossommerz/locus-hub GitHub Wiki

Home > Primitives > Square

< Previous: Rectangle: Directed | Next: Regular Polygon: Edge >

Node Library

Square node icon   Square (node)

A square from one side - two adjacent corners.

A square from two numbered corner points, filled in region orange, with a right-angle mark and a legend naming the sockets Corner 1 and Corner 2.

Square node diagram

Category: Primitives | Add menu: Primitives > Square

Give it two adjacent corners - one side of the square - and it builds the full square on that edge. The side length is the distance between the two corners, and the square's orientation follows the edge, so tilting the corners tilts the square. It pairs the two corner lists index-for-index, one square per pair.

Inputs

  • Corner 1 (point): one end of a side.
  • Corner 2 (point): the adjacent corner; the distance between the two is the side length.

Outputs

  • Region (region): one square per pair of corners.
  • Edges (curve): its sides, as separate curves, grouped per shape.
  • Points (point): its corners, grouped the same way.

The three are views of the same shape, so build on whichever suits. For what the shape was built from, rather than what it is, use Explode.

What it is for

Defined by one side rather than by a size, which is what makes it useful in a construction: lay the two corners on something you have already drawn and the square inherits its position, its size and its angle in one go.

< Previous: Rectangle: Directed | Next: Regular Polygon: Edge >

Related

  • In the modeling view: Square - draw the same square directly on the canvas.
⚠️ **GitHub.com Fallback** ⚠️