Arch Skelet - A Blender Geometry Node Group for 2D Straight Skeletons and Curve Offsets
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.
Output examples, left to right: skeleton edges, faces and offset curves.
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 controls are described below; availability depends on the input and output mode.
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.
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.
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.
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.
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 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), 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 shared curve ID. The group determines which outlines can interact.
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.
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 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.
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 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 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.
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.
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.
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 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.
The same building group with 45° weights (left) and qualifying neighbouring edges set to 90° (right).
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. Compare the resulting ridge detail on the right.