|On this page|
This node works like the Wireframe node, but this node creates more complex tube geometry from curves, with smoother bends and intersections than Wireframe, especially for L-systems. (The Wireframe node creates transition surfaces where the original curve branches.)
The four numerical parameters support all the local variables of the Point operation, plus the LSYSTEM specific variables of $WIDTH, $SEGS, $DIV, $LAGE, $GEN, and $ARC.
You can disable end caps using a workaround. First, add an attribute wrangle between the input curve and the Polywire node with the following snippet:
// Create an attribute which is 1 if the point is interior and 0 // if it's at the end i@isinterior = neighbourcount(0, @ptnum) > 1;
Then, in the Polywire node, set Smooth points to
The group of polygons to convert to wires.
This is the radius of the wire to sweep over the polygon.
Maximum Joint Scale
Prevent Joint Buckling scales up the intersection points so that they lie on the intersection of two tubes, rather than a width sized sphere. This can cause the points to be scaled past the first segment of the tube, however, causing buckling. This parameter allows you to change on a point level what the maximum scale applied to the points is.
If the expression evaluates to a non-zero value for a point, the generated tube is smooth and connected through that point. If the expression is zero, the corresponding segment is disconnected. A value of zero will leave ends uncapped.
This is the number of divisions in the circle which is to be swept over the polygon. It can vary on a point basis.
The number of segments to divide each edge of the polygon into. It can vary on a point basis.
These are how far into the segment to make the first circle and how far towards the end to keep going. Both values are in the range 0-1, where 0 is the start and 1 the end. These are segment specific values. The local variable $NSEG is available here for the number of segments in the previous parameter.
Prevent Joint Buckling
This toggle when set will scale the intersection point of edges to avoid a collapse when sharp turns are made.
Do Vertex Textures
Toggles whether vertex textures are generated for the geometry. For best texturing of branch points, the points of the wire should be ordered so the "important" side has least point number. For example, in a Y branch, the bottom of the Y should have the smallest point numbers.
U Seam Offset
A per segment parameter which cycles how far around the tube the seam is placed. The seam is always snapped to the nearest polygon edge.
Per segment values for the starting/ending values of the u texture.
The same, but for v textures.
Joint Up Vector
If enabled, the up vector at each joint is set to the specified value. This will result in twisting of the branches.
When resolving a segment, this is the distance between the end points of the segment.
This is the number of segments which the segments parameter evaluated to for this segment.
This example demonstrates how the Polywire SOP builds polygonal geometry based on a polygonal frame, and how the parameters can be customized with local variables.
The following examples include this node.
This example demonstrates how to use the Agent Clip Layer DOP to apply a clip to the upper body of an agent. The clip is activated when the agent is inside a bounding box.
This example shows how to spiral a line geometry over a tube surface using the Creep SOP.
This is an example of how to use the FindShortestPath SOP to find a path through geometry where certain edges are directed edges. Directed edges can only be traversed in one direction.
Try changing the start and end points, as well as the directed edges, to explore how the SOP avoids going the wrong direction, and cannot reach points with only outgoing edges.
This is an advanced example of how to use the FindShortestPath SOP to prefer "central" paths, based on centraily measures computed using FindShortestPath and AttribWrangle. This helps avoid staying too close to walls where avoidable.
Turn on the Display Option > Optimization > Culling > Remove Backfaces to see inside the space more easily. Try visualizing the different centrality measures using the switch node. The same example without considering the centrality of the path is demonstrated in a side branch of the SOP network, in order to see the difference.