You can generate one or more splines by advecting specific positions through the velocity field of a CFD simulation.
- Import a Simulation CFD file as described
here.
- Add a helper object, such as a point or dummy helper.
- Move the helper to the position from which you want to start the spline.
- Choose
.
- When prompted, first pick the CFDImportData object and then pick the helper.
A CFDSplineNode object is created in the scene.
- On the
Modify panel, adjust the CFDSplineNode's
Spline Parameters as desired. The length of the spline is controlled by a combination of
Spline Vertices and
Field Sampling.
- You can continue to adjust the helper's position as desired.
- If you want to save out a spline, click
Bake Spline. This creates a separate editable spline that is no longer connected to the helper.
You can continue to move the helper, adjust the settings, and save out more splines.
Spline Parameters
Sim CFD Data
- (CFD Points)
- Click to pick a different CFDImportData object in the scene.
- Refresh Data
- Click in case the CFDSplineNode object does not update properly when you make changes.
Spline Controls
- (Spline Origin Helper)
- Click to pick a different CFDImportData object in the scene.
- Spline Vertices
- The number of vertices in the generated spline.
Interpolation Settings
- Nb. Vertices
- The number of nearby CFD data points to sample per vertex.
- Smoothing
- Controls the weighting of the nearby CFD data points: 1.0 gives a linear falloff, 2.0 gives an inverse-square falloff, and so on.
- Field Sampling
- A divisor for the velocity vector used to extend the spline at each step. Values above 1.0 result in shorter, more accurate segments between spline vertices, while values between 1.0 and 0.0 result in longer segments.
Material Controls
Controls the material ID assigned to each spline segment. By default, a Multi/Sub-Object material is applied to the spline, and successive spline segments can cycle through the sub-materials based on the material ID.
- Material count
- Controls the number of sub-materials that successive splines cycle through. If this value is 1 or less, all segments use the first sub-material; if it is 2, the segments cycle through the first two sub-materials; and so on.
- Material animation
- Offsets the material cycle by the specified number of places. You can animate this value to move the sub-materials along the spline.