Line

https://user-images.githubusercontent.com/14288520/188509358-889793be-5e37-4024-9108-4530a5322218.png https://user-images.githubusercontent.com/14288520/188505902-9ae40896-37ba-4079-a654-c73ccfc71c37.png

Functionality

The node can create line with origin in center of coordinate system and X, Y or Z direction or with custom origin and direction. Also number of subdivisions can be set.

Category

Generators -> Line

Inputs

  • Num Verts - number of vertices of a line

  • Size - length of a line

  • Step(s) - distance between points of a line

  • Origin - custom center of coordinate system

  • Direction - direction of a line

Outputs

  • Verts - coordinates of line(s)

  • Edges - just edges

Parameters

https://user-images.githubusercontent.com/14288520/188510773-fc5134d4-2969-48ef-8b84-a9e59b39dec5.png

Param

Type

Default

Description

Direction

Enum:

X/Y/Z/OP/OD

“X”

  • X/Y/Z - Ortho direction

  • OP - Origin and point on line

  • OD - Origin and Direction

Length

Enum:

Size/Num/Step/

St+Si

“Size”

Method of line size determination

Center

Boolean

False

center line in origin

Split to objects

Boolean (N panel)

True

Each line will be put to separate object any way

Numpy output

Boolean (N panel)

False

Convert vertices to Numpy array

  • Step length mode - expect array of steps with help of which a line can be subdivided into unequal parts.

  • Step + size mode - expect array of steps with help of which a line can be subdivided into proportional parts with custom line length.

Example of usage

The first example shows just an standard line with 4 vertices and 1.00 ud between them

https://user-images.githubusercontent.com/14288520/198871911-350fbb39-c61b-4236-9ea7-f3ce4aeaac2e.png

In this example the step is given by a series of numbers

https://user-images.githubusercontent.com/14288520/188505926-6df53a6f-c74c-42d3-b663-e5285e501729.png

You can create multiple lines if input multiple lists

https://user-images.githubusercontent.com/14288520/188505934-2d16c5e3-7392-40ab-9a84-6c8e91bda75a.png

The “OD” mode (Origin Direction) can be used to visualize normals

https://user-images.githubusercontent.com/14288520/188507605-ffcd79cf-498d-4fcd-8ac1-a5f7966aacd0.png