Arch Skelet - A Blender Geometry Node Group for 2D Straight Skeletons and Curve Offsets

Filip Zelenka in Geometry Node Groups


ARCH SKELET

2D straight skeletons, curve offsets and profile sweeps in Blender Geometry Nodes

Use a planar outline to generate skeleton edges, roof faces or offset curves. For a shaped cross-section, connect a second geometry to profile. The input type matters: an open curve and the same outline converted to mesh edges can produce different results at a contact.

Features

  • 2D straight skeletons

  • Weighted slopes from curve tilt or mesh edge attributes named tilt

  • Independent PSLG side weights (X and Y) and endpoint-cap weights (Z)

  • ID-based solve groups and automatic nesting

  • Curve offsets on the positive side, negative side or both sides

  • Custom profile sweeps from open or closed sections

  • N-gon or triangle faces, with panels divided at offset levels

  • PSLG solving within a bounding box controlled by margin

  • Transfer of custom float, vector and boolean attributes

  • 2D plan output or 3D event and profile heights

  • Single-sided curve offsets with optional back-side and same-ID collisions

  • Automatic normalization within each solve group

  • Automatic UV mapping on face output

Quick start

1.   Connect a closed 2D outline in the XY plane to geometry. Leave profile empty and side at ∅.

2.   Set output to faces. Enable 3D to see the roof slopes; choose edges to inspect the skeleton or curve to inspect the offset contours.

3.   Set distance and count. For a full roof, increase their product until the wavefront finishes. To try a custom section, follow Profile sweeps.

Input examples, left to right: curves, a wire mesh (PSLG), and a mesh with faces
Input examples, left to right: curves, a wire mesh (PSLG), and a mesh with faces.

Input examples, left to right: curves, a wire mesh (PSLG), and a mesh with faces.

Output examples, left to right: skeleton edges, faces and offset curves.
Output examples, left to right: skeleton edges, faces and offset curves.

Output examples, left to right: skeleton edges, faces and offset curves.

Profile sweep in face mode and its automatic UV mapping, shown on the same outline.

Profile sweep examples, left to right: face output and automatic UV mapping.

Nodegroup controls

Choose the output first. Leave profile empty for the ordinary skeleton and offset controls. A nonempty profile with usable segments activates the profile sweep automatically.

Nodegroup UI reference. The current sockets are described below and on the follo
Nodegroup UI reference. The current sockets are described below and on the following pages; some controls depend on the input and output mode.

Nodegroup UI reference. The current controls are described below; availability depends on the input and output mode.

Control

What it changes

output / 3D

Choose edges, faces or curve. Work in plan with 3D off; turn it on for event or profile heights.

distance / count

Ordinary solve: spacing and number of offset levels. Group defaults: 0.5 and 10.

offset mode / fills

Choose curve sides and collisions, or configure face output and how it closes.

init / custom attribute / debug

Clean input geometry, pass data to the output, or display input weights.


Input geometry and weights

ARCH_SKELET solves in XY. Supply planar footprints for each solve. A PSLG is a planar straight-line graph: segments meet at shared vertices. Split genuine crossings and remove duplicate or overlapping edges before solving.

Geometry input

Routing and weight source

Native curve

Closed outlines can nest. Open paths have a direction; reversing a spline swaps its + and − sides. Use the built-in point tilt. Blender displays it as an angle; node fields and the API use radians.

Edge-only mesh

Wire edges use the PSLG solver. Assign a vector named tilt on the edge domain, with values in degrees: X and Y control opposite directed sides; Z weights the endpoint cap.

Mesh with faces

Upward-facing footprint faces are cleaned and grouped by mesh island. Use an edge-domain float named tilt, in degrees. Check face normals on imported plans.


The slope is in degrees. 0 uses the default 45°; a shallow slope travels farther horizontally per unit of rise. Positive moving slopes are bounded to 1–89°; 90° is stationary. On arbitrary PSLGs, X and Y are not universal outside/inside labels. low weight wins prefers the lower slope when collinear supports have conflicting weights.

To turn a weighted curve into PSLG edges, use .curve2Edges from the file. It writes curve tilt into X, Y and Z of the mesh edge attribute. Blender’s ordinary Curve to Mesh is suitable for an unweighted wire but does not do that conversion.

PSLG vector weights displayed on edges
PSLG vector weights displayed on edges

Scalar tilt labels on curves
Scalar tilt labels on curves

Weight labels: edge-only PSLG input shows XYZ (left); a curve shows a scalar weight (right). Enable weights labels and adjust label scale to inspect them.

The same outline in 2D, in 3D at 45°, and in 3D with varying weights.
The same outline in 2D, in 3D at 45°, and in 3D with varying weights.

The same outline in 2D, in 3D at 45°, and in 3D with varying weights.

Curve offset sides

With profile empty, select curve output for successive contours. The side menu applies to native curves. Converting the input to mesh edges selects PSLG behavior instead.

side

Where the wavefront travels

Open ends

∅

Normal input mode; closed contours use nesting.

Natural ends use their weights.

+

Positive normal side of the spline.

Perpendicular (90°) construction; offsets stay open.

−

Opposite normal side of the spline.

Same open-end rule as +.

±

Generate both sides of the curve.

Perpendicular construction; caps connects or separates the two sides at the ends.


keep original curve includes the input contour at offset zero. Switch it off to return only generated levels 1 through count. It does not change their spacing. On a straight, unweighted open end, a free offset endpoint advances perpendicular to its source segment. A collision can trim or eliminate that contour before the last level.

The same curves under ∅ and ±. In ±, compare connected ends with **caps** on and
The same curves under ∅ and ±. In ±, compare connected ends with **caps** on and separate ends with it off. Bottom right also omits the original contour.

The same curves under ∅ and ±. In ±, compare connected ends with caps on and separate ends with it off. Bottom right also omits the original contour.

Collisions and solve groups

For + or − on a curve, collide decides whether other geometry can stop the offset. With it on, the selected front can hit another span, its own back, or another curve in the same ID group. With it off, each spline runs independently, without a bounding box. The requested levels still stop at count × distance or when the contour finishes.

Positive side (top) and negative side (bottom). With collisions on (left), nearb
Positive side (top) and negative side (bottom). With collisions on (left), nearby geometry can trim the curves; with collisions off (right), other splines do not stop them.

Positive side (top) and negative side (bottom). With collisions on (left), nearby geometry can trim the curves; with collisions off (right), other splines do not stop them.

ID and margin

Use ID to group curve splines or PSLG edges. Give entities the same value if they should share a solve; give them different values to isolate them. A constant 0 puts them in one group. To reuse an existing ID attribute, connect it to the socket. Face meshes use their cleaned mesh islands instead.

margin adds room around a group’s XY bounds where the PSLG solver needs a bounding box (BB). Set it in input units; 0 leaves only minimum numerical clearance for ordinary offsets. A profile sweep can reserve more room for its own width. A very large margin can reduce the precision available for small features.

ID comparison from the original scene: edge IDs, separate curve IDs, and a share
ID comparison from the original scene: edge IDs, separate curve IDs, and a shared curve ID. The group determines which outlines can interact.

ID comparison from the original scene: edge IDs, separate curve IDs, and a shared curve ID. The group determines which outlines can interact.

Faces and top fills

Without a custom profile, distance × count is the requested final wavefront level. The solver stops earlier if the skeleton finishes. At 45° one unit of level corresponds to one unit of horizontal travel; weighted supports can travel different distances.

Face control

Result

count

More than one level divides slopes into bands. In edges output, the arcs are subdivided at the corresponding contours.

N-gons

Keep polygonal panels and caps where possible. Switch off for triangles.

fill tops

Fill enclosed regions left at the final level of a truncated solve. Available for ordinary or both-sided solves with closed ends, not for + or − alone.

fill tops BB

Include remaining top regions connected to the PSLG bounding box. Interior top regions are unaffected.


Top: one 0.5 step, **fill tops** off. Middle: same step, **fill tops** on. Botto
Top: one 0.5 step, **fill tops** off. Middle: same step, **fill tops** on. Bottom: eight 0.5 steps reach the finished skeleton in this example.

Top: one 0.5 step, fill tops off. Middle: same step, fill tops on. Bottom: eight 0.5 steps reach the finished skeleton in this example.

fill tops closes a remaining horizontal region; sweep caps closes a physical end of a profile sweep. They solve different problems.

Profile sweeps

Connect a curve or an edge chain to profile. The section may be open or closed. Draw it in XY: X is signed weighted offset; Y is height. Place a section point at (0, 0) to put that point on the source path at its base elevation. The section’s Z coordinate is not its height.

An open section around a closed L-shaped path. Positive X runs inward in this ex
An open section around a closed L-shaped path. Positive X runs inward in this example; horizontal profile segments form ledges and vertical segments form risers.

An open section around a closed L-shaped path. Positive X runs inward in this example; horizontal profile segments form ledges and vertical segments form risers.

Constructing the section

Use the side of X = 0 you intend to sweep. Negative X requests the opposite side; crossing zero uses both signed ranges. The profile’s X extent sets the solve distance and its evaluated segments provide the bands. Changing the ordinary distance, count, side or collide controls does not redraw this section.

output

With a profile connected

faces

Build the skin between profile levels. Enable 3D for the shaped section.

edges

Inspect the panel boundaries as mesh linework.

curve

Return the contour lines at profile vertices as curves.


Shading and UVs

smooth path smooths across adjacent path segments; smooth profile smooths across adjacent section segments. Each has its own smooth angle: joins sharper than that angle remain hard. At 180° the angle does not restrict smoothing. These controls change shading, not the shape.

Face output has a face-corner UVMap. U follows the source path. V follows the section, or the slope on an ordinary roof, accounting for weighted travel and rise.

Open ends and contact walls

With an open path, a closed section and 3D faces, sweep caps closes the physical start and end. Switch it off to leave those ends open. An open section is a skin; leave it open. For a compound profile, all chains must be closed for end filling. For a hollow section, wind inner contours opposite the outer contour. This option was named fill caps in earlier versions; the illustration below uses that name.

A closed section on an open path. Switching **fill caps** on adds the physical e
A closed section on an open path. Switching **fill caps** on adds the physical end face; the side surface is unchanged.

A closed section on an open path. Switching sweep caps on adds the physical end face; the side surface is unchanged.

What happens when parts touch

Moving front meets moving front. Both spans contribute a profile surface. Where matching profile levels meet, the surfaces share a seam, usually a crease.

Moving front meets a stationary back. Only the incoming span contributes a surface on that side. It is clipped at the back. With a closed 3D section, the contact wall closes this cut even when sweep caps is off. At a corner, each blocking segment contributes its own flat panel.

Same path and closed profile. Curve input (left): a stationary back stops the sw
Same path and closed profile. Curve input (left): a stationary back stops the sweep; green marks the contact wall. Edge-mesh PSLG input (right): the opposing front is active and the two surfaces meet along the dark seam.

Same path and closed profile. Curve input (left): a stationary back stops the sweep; green marks the contact wall. Edge-mesh PSLG input (right): the opposing front is active and the two surfaces meet along the dark seam.

Choose the curve input for a directional section with a passive back. Use an edge-only PSLG when both sides of the wire should contribute. Merely hiding one side of the PSLG result will not reproduce the one-sided contact.

Custom attributes and input cleanup

Connect point fields to float, vector or boolean to reuse source data on the generated geometry. Read them downstream with Named Attribute nodes of the same names and types. The supporting source segment determines the value; a shared arc uses its first valid support.

Output

Domain for float, vector and boolean

edges

Mesh edge

faces

Mesh face

curve

Curve point (outgoing segment)


With survive enabled, values continue onto later generated arcs and offset points. With it off, values are restricted to arcs that touch the original input and their derived offset points. normID is a point attribute on ordinary offset curves; profiled curves do not expose it.

Cleaning the input

eps fix is the input cleanup tolerance (default −3). del 180 angles removes straight-through points before the solve; use it only when those points are unnecessary for the outline or its changing weights.

Boolean selection with survive off and on
Boolean selection with survive off and on

Straight-through points retained and removed
Straight-through points retained and removed

Left: enabling survive (bottom) carries the boolean selection to later arcs. Right: enabling del 180 angles (bottom) removes unnecessary panel divisions.

Precision and troubleshooting


The solver normalizes each solve group before testing events. eps is a power-of-ten tolerance in that space, not a distance in scene units. Start at −4; adjust after checking that the input is clean.

eps

When to use it

−3  /  0.001

More tolerant. Nearby events may merge, simplifying or smoothing the result.

−4  /  0.0001

Balanced starting point for most plans.

−5  /  0.00001

Keeps closer events distinct. Try this when a small feature merges at −4.

−6  /  0.000001

A strict diagnostic setting. Float32 noise and near-degenerate events can become visible; stricter is not always more reliable.


The same weighted shape at eps −3 (left) and −6 (right). A stricter tolerance ca
The same weighted shape at eps −3 (left) and −6 (right). A stricter tolerance can retain more distinct events and take longer.

The same weighted shape at eps −3 (left) and −6 (right). A stricter tolerance can retain more distinct events and take longer.

A close-up of float32 sensitivity. In the original example, the lower views span
A close-up of float32 sensitivity. In the original example, the lower views span approximately 0.0004 m vertically.

A close-up of float32 sensitivity. In the original example, the lower views span approximately 0.0004 m vertically.

If SS is wrong, the solver shows unfinished points. Inspect edges in plan and isolate the affected ID. Check for duplicate segments, extremely short edges or unsplit crossings before changing eps. On a weighted open path, a tiny end-cap seam can still occur in a near-degenerate case.

Neighbouring roofs

Use touchingRoofs before ARCH_SKELET to set facing roof boundaries to 90° when the neighbouring edge qualifies. This is useful for party walls: the qualifying support stays stationary while the remaining roof slopes advance.

Roof block with default 45-degree weights
Roof block with default 45-degree weights

Roof block with qualifying boundaries set to 90 degrees
Roof block with qualifying boundaries set to 90 degrees

The same building group with 45° weights (left) and qualifying neighbouring edges set to 90° (right).

touchingRoofs control

Meaning

enabled

Off passes the geometry through. A candidate must belong to a different roof.

add distance

Maximum horizontal gap tested outward from a boundary edge’s midpoint. Default: 3 input units.

parallel angle

Maximum difference in edge direction, ignoring reversal. Default: 0.1°.

same length

Relative difference: |A − B| / max(A, B). 0 means equal; 0.1 accepts 10%.

height limit / add up / add down

With height limit on, allow a neighbour up to add up higher or add down lower. Defaults: 2 up and 4 down.


The midpoint test is intentional: two outlines that approach only at a corner are not necessarily matching party walls.

Conflicting weights

The upper example uses **low weight wins** to resolve a collinear conflict. Comp
The upper example uses **low weight wins** to resolve a collinear conflict. Compare the resulting ridge detail on the right.

The upper example uses low weight wins to resolve a collinear conflict. Compare the resulting ridge detail on the right.



$30

Have questions about this product?
Login to message

Details
Dev Fund Contributor
Published about 3 hours ago
Blender Version 5.3
License Royalty Free