←ALL OPERATORS
> tools

Constraints

tools/constraints·v1.5.1
IN:3  OUT:3

Constraints turns a mesh or a set of curves into the inputs Nexus reads: the geometry with per-point Mass and Thickness, one record per constraint carrying its type, points, rest value and solver properties, and an optional target geometry. Each operator builds one Constraint Type, and chaining several operators merges their constraints on the same mesh.

Types cover distance along edges, bend across triangles, struts, pressure, cloth, string, hair, attach to geometry, glue, pin to target, shape match, weld, stitch and triangle stretch. The Stretch and Bend sections set stiffness, damping, rest scale, plasticity and breaking, optionally scaled by painted attributes, and the build is kept until a parameter or the wiring changes, so an animated input drives the simulation without a rebuild unless Auto Rebuild is on.

PAGEGeometry
GroupGeogroupName of the group to process. Leave empty to process all geometry.
Visualize GeometryVisualizegeometryDisplay the input geometry in the viewport for debugging.
Set MassSetmassUniform mass value per point when Mass is set to Set Uniform.
DensityDensityMaterial density used when calculating mass from geometry volume or surface.
Set ThicknessSetthicknessUniform thickness value when Thickness is set to Set Uniform.
Edge Length ScaleEdgelengthscaleScales the edge lengths when calculating varying thickness.
Visualize ThicknessVisualizethicknessDisplay the thickness values as colors.
Normal DragNormaldragDrag coefficient perpendicular to the surface.
Tangent DragTangentdragDrag coefficient along the surface. Controls sliding friction.
Enable PartitionEnablepartitionEnable partitioning geometry into separate pieces for independent constraints.
Pieces BuiltPiecesbuiltShows how many disconnected pieces the last build found (read-only).
Visualize PiecesVisualizepiecesDisplay each piece with a unique color.
Visualization SeedVisualizationseedNumerical value that initializes the random piece colors.
Piece AttributePieceattrSets the name of the attribute holding the piece IDs.
Target GroupTargetgroupName of the target geometry group to use. Leave empty for all.
Target PathTargetpathSets the POP holding the target geometry.
PAGEConstraints
Rebuild ConstraintsRebuildconstraintsRebuilds the constraints and rest state from the input.
Auto RebuildAutorebuildWhen on, the constraints are rebuilt every frame, for an animated input or changing topology.
Constraints BuiltConstraintsbuiltNumber of constraints made by the last build (read-only).
Build Time (ms)BuildtimeDuration of the last build in milliseconds (read-only).
Visualize ConstraintsVisualizeconstraintsDisplay constraint connections as lines in the viewport.
StiffnessStretchstiffSets the stretch stiffness, multiplied by Stiffness Scale.
Damping RatioStretchdampratioSets the damping ratio of the stretch constraints, from 0 to 1. Higher values reduce oscillation.
Rest Length ScaleStretchrestscaleScales the rest length. Values below 1 shrink it and values above 1 grow it.
Stiffness AttributeStretchstiffattrPoint attribute that multiplies the stretch stiffness.
Rest AttributeStretchrestattrPoint attribute that scales the rest length.
Attribute RangeStretchattrrangeSets how many decades of stiffness the attribute spans in Logarithmic mode.
Enable PlasticityStretchplasticityAllow permanent deformation of stretch constraints when threshold is exceeded.
ThresholdStretchthresholdSets the strain threshold before plastic deformation begins.
RateStretchrateSets the rate of plastic deformation per frame once the threshold is exceeded.
Ratio of Current Rest LengthStretchratiorestlenWhen enabled, rate is relative to current rest length instead of absolute.
HardeningStretchhardeningSets the increase in stiffness as plastic deformation accumulates.
Enable Output GroupStretchenablegroupCreate a point group on the constraint stream holding the stretch constraints.
Output GroupStretchgroupSets the name of the group that stores the stretch constraints.
Add Bend across Weld BendacrossweldAdds bend constraints across welded seams, so welded pieces bend as one surface.
Copy Neighboring StiffnessCopyneighboringstiffnessGives the bend constraints across a weld the stiffness of the neighboring bend constraints.
StiffnessBendstiffSets the bend stiffness, multiplied by Stiffness Scale.
Damping RatioBenddampratioSets the damping ratio of the bend constraints, from 0 to 1. Higher values reduce oscillation.
Rest Angle ScaleBendrestscaleMultiplier for the rest angle. Values above 1.0 create pre-bent constraints.
Stiffness AttributeBendstiffattrPoint attribute that multiplies the bend stiffness.
Rest AttributeBendrestattrPoint attribute that scales the rest angle.
Attribute RangeBendattrrangeSets how many decades of stiffness the attribute spans in Logarithmic mode.
Enable PlasticityBendplasticityAllow permanent deformation of bend constraints when threshold is exceeded.
ThresholdBendthresholdSets the angular strain threshold before plastic deformation begins.
RateBendrateSets the rate of plastic deformation per frame once the threshold is exceeded.
Ratio of Current Rest LengthBendratiorestlenWhen enabled, rate is relative to current rest angle instead of absolute.
HardeningBendhardeningSets the increase in stiffness as plastic deformation accumulates.
Bend Output GroupBendenablegroupCreate a point group on the constraint stream holding the bend constraints.
Output GroupBendgroupSets the name of the group that stores the bend constraints.
Pin PointsPingroupPoint group of the input to pin.
Match AnimationMatchanimationWhen on, Permanent and Stopped pins follow the live input. When off, Permanent pins hold the rest pose and Stopped points stay where they are.
Enable Breaking EnablebreakingEnable breaking: a constraint breaks when the value chosen in Type passes Threshold.
ThresholdBreakingthresholdSets the value at which a constraint breaks, measured as chosen in Type. Welds always break on force.
PAGESearch
Negate RayNegaterayCasts the strut rays along the point normals instead of against them.
Direction JitterStrutsdirjitterAdds random variation to the strut search direction.
Constraint per PointStrutperpointSets the number of strut constraints created per point.
Any HitAnyhitUse the first hit instead of the closest hit for strut connections.
Detach Point ChanceStrutpointchanceSets the probability, from 0 to 1, of randomly excluding points from strut creation.
SeedStrutsseedSets the random seed for strut generation and jitter.
Ray OffsetRayoffsetMoves the ray start along the ray, so a ray does not hit the surface it starts from.
Constraint to Closest PointClosestpointConnects each point to the closest point found by the search.
Use Closest Location on PrimitiveClosestprimAttaches to the closest location on the target primitives instead of to a single point.
Enable Max DistanceEnablemaxdistEnable a limit on the search distance.
Max DistanceMaxdistanceThe largest distance at which points are connected.
Min Search DistanceMindistSets the minimum search distance for glue constraints.
Max Search DistanceMaxdistSets the maximum search distance for glue constraints.
Max Search PointsMaxsearchpointsSets the number of nearby points each point searches for glue partners.
Constraints per PointGlueperpointSets the maximum number of glue constraints created per point.
Detach Object ChanceGlueobjectchanceSets the chance that a whole piece gets no glue constraints.
Detach Point ChanceGluepointchanceSets the chance that a single point gets no glue constraints.
SeedGlueseedSets the random seed of the detach chances.
PAGECommon
Free Extra GPU MemoryFreeextragpumemFree memory that has accumulated when output memory has grown and shrunk.
Input 0 POP - Geometry
Input 1 POP - Constraints
Input 2 POP - Target Geometry
Output 0 POP - Geometry
Output 1 POP - Constraints
Output 2 POP - Target Geometry