Page MenuHome

Curve Length Node
Closed, ResolvedPublicDESIGN

Description

This is task is for a node that calculates the lengths of splines.

Details
  • The main complexity is that each spline has its own length, and the curve may have multiple splines.
  • Therefore there are two output modes.
    • The first (and default) outputs the total length of all of the splines as a float.
    • The second creates a float attribute on the spline domain and fills it with the values for each spline.
Further Questions
  • The name "Calculate Curve Length" might be better (more clear), but it is longer.
Implementation

Implementation is trivial, this can use the Spline::length() function.

Revisions and Commits

Event Timeline

Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.Jun 1 2021, 5:11 PM
Hans Goudey (HooglyBoogly) created this task.

The result of discussions today among the geometry nodes team:

  • The node should not have two modes, instead it should only have the "Total" mode, with no geometry output.
  • Per-spline length can be exposed as a read-only attribute on the spline domain.