Navigation
BlueprintAPI > BlueprintAPI/Utilities > BlueprintAPI/Utilities/Struct
Adds a node that create a 'PCGSpline Sampler Params' from its members
Inputs
| Type | Name | Description |
|---|---|---|
| enum | Dimension | |
| enum | Mode | |
| enum | Fill | |
| integer | Subdivisions Per Segment | |
| real | Distance Increment | |
| integer | Num Samples | |
| integer | Num Planar Subdivisions | |
| integer | Num Height Subdivisions | |
| real | Start Offset | Distance (in cm) along the spline at which sampling will begin. |
| real | End Offset | Distance (in cm) from the end of the spline at which sampling will end. |
| real | Max Random Offset Normalized | Normalized value for the maximum possible offset for each sample point. 0.0 means no offset, and 1.0 means DistanceIncrement / 2.0. |
| boolean | Fit To Curve | If the length of the spline does not divide evenly into the DistanceIncrement, the final sample point will not land on the end of the spline. Enable this to forcethe DistanceIncrement to be rounded up to the nearest value which would yield evenly spaced samples across the entire length of the spline. |
| real | Interior Sample Spacing | The space between each sample point |
| real | Interior Border Sample Spacing | The space between each sample point on the spline boundary. Used for computation; lower spacing is more expensive but more accurate. |
| boolean | Treat Spline As Polyline | Use the spline points to form a polyline, instead of computing many sample points along the spline. This is more accurate if your spline is linear. |
| enum | Interior Orientation | Determines the orientation of interior points. |
| boolean | Project Onto Surface | Project sample points onto one possible surface given by the spline boundary. |
| struct | Interior Density Falloff Curve | Defines the density for each sample based on its distance from the spline. X axis is normalized distance to boundary (0-1), Y axis is density value. |
| boolean | Compute Direction Delta | Compute the delta angle to the next point on the spline and write it to an attribute. |
| name | Next Direction Delta Attribute | Attribute that will contain the delta angle to the next point on the spline w.r.t to the current's point Up vector. |
| boolean | Compute Curvature | Compute curvature along the spline and write it to an attribute. |
| name | Curvature Attribute | Attribute that will contain the curvature. Note that the radius of curvature is defined as 1/Curvature, and might need you to scale to world units. |
| boolean | Compute Segment Index | Compute the spline segment index and write it to an attribute. |
| name | Segment Index Attribute | Attribute that will contain the spline segment index. |
| boolean | Compute Subsegment Index | Compute the sub-segment index of a point on the spline and write it to an attribute. |
| name | Subsegment Index Attribute | Attribute that will contain the sub-segment index of a point on the spline. When the sub-segment index is 0, the point is a control point on the actual spline. Only applies to Subdivision mode. |
| boolean | Compute Tangents | Compute arrive and leave tangents along the spline and write them to attributes. |
| name | Arrive Tangent Attribute | Attribute that will contain the arrive tangent vector. For control points, this will be the actual arrive tangent. For non-control points, this will only be the normalized tangent at this point. |
| name | Leave Tangent Attribute | Attribute that will contain the leave tangent vector. For control points, this will be the actual leave tangent. For non-control points, this will only be the normalized tangent at this point. |
| boolean | Compute Alpha | Compute an alpha value along the spline and write it to an attribute. |
| name | Alpha Attribute | Attribute that will contain a value in [0,1] representing how far along the point is to the end of the line. Each segment on the line represents a same-size interval.For example, if there are three segments, each segment will take up 0.333... of the interval. |
| boolean | Compute Distance | Compute distance along the spline and write it to an attribute. |
| name | Distance Attribute | Attribute that will contain the distance along the spline at the sample point. |
| boolean | Compute Input Key | Compute an input key for each point along the spline and write the key to an attribute. |
| name | Input Key Attribute | Attribute that will contain the spline input key, a float value between [0, N], where N is the number of control points. Each range [i, i+1] represents an interpolation from 0 to 1 across spline segment i. |
| boolean | Unbounded | If no Bounding Shape input is provided, the actor bounds are used to limit the sample generation domain.This option allows ignoring the actor bounds and generating over the entire spline. Use with caution as thismay generate a lot of points. |
| real | Point Steepness | Each PCG point represents a discretized, volumetric region of world space. The points' Steepness value [0.0 to1.0] establishes how "hard" or "soft" that volume will be represented. From 0, it will ramp up linearlyincreasing its influence over the density from the point's center to up to two times the bounds. At 1, it willrepresent a binary box function with the size of the point's bounds. |
| enum | Seeding Mode | Controls the mode for computing a sample point's seed. |
| boolean | Seed From Local Position | Controls whether we will seed the sampled points using the final world position or the local position. |
| boolean | Seed From 2DPosition | Controls whether we will seed the sampled points using the 3D position or the 2D (XY) position. |
Outputs
| Type | Name | Description |
|---|---|---|
| struct | PCGSpline Sampler Params |