Table of Contents

Class DeformMesh

Deforms a mesh following a path

public class DeformMesh : ScalingModule
Inheritance
Object
Component
Behaviour
MonoBehaviour
DTVersionedMonoBehaviour
DeformMesh
Inherited Members

Fields

InPath

[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path", DisplayName = "Volume/Rasterized Path")]
public CGModuleInputSlot InPath

Field Value

CGModuleInputSlot

InSpots

[HideInInspector]
[InputSlotInfo(typeof(CGSpots), Array = true, Name = "Spots", Optional = true)]
public CGModuleInputSlot InSpots

Field Value

CGModuleInputSlot

InVMeshes

[HideInInspector]
[InputSlotInfo(typeof(CGVMesh), Array = true, Name = "VMesh")]
public CGModuleInputSlot InVMeshes

Field Value

CGModuleInputSlot

OutSpots

[HideInInspector]
[OutputSlotInfo(typeof(CGSpots), Array = true, Name = "Spots")]
public CGModuleOutputSlot OutSpots

Field Value

CGModuleOutputSlot

OutVMeshes

[HideInInspector]
[OutputSlotInfo(typeof(CGVMesh), Name = "VMesh", Array = true)]
public CGModuleOutputSlot OutVMeshes

Field Value

CGModuleOutputSlot

Properties

StretchToEnd

Stretch the meshes to make them fit the end of the path

public bool StretchToEnd { get; set; }

Property Value

bool

Methods

DeformMeshes(List<CGVMesh>, SubArray<CGSpot>, SubArray<CGSpot>, CGVMesh[], CGPath, bool, ThreadPoolWorker<CGSpot>)

Deforms multiple CGVMeshs following a path

public static void DeformMeshes(List<CGVMesh> inputMeshes, SubArray<CGSpot> inputSpots, SubArray<CGSpot> outputSpots, CGVMesh[] outputMeshes, CGPath path, bool stretchToEnd, ThreadPoolWorker<CGSpot> threadPoolWorker)

Parameters

inputMeshes List<CGVMesh>

The list of meshes the Index of inputSpots refer to

inputSpots SubArray<CGSpot>

The CGSpots defining the transform and mesh to use as inputs

outputSpots SubArray<CGSpot>

Should have the same Count as inputMeshes

outputMeshes CGVMesh[]

Should have the same Count as inputMeshes

path CGPath

A path defining how the meshes should be deformed

stretchToEnd bool

see StretchToEnd

threadPoolWorker ThreadPoolWorker<CGSpot>

An instance of FluffyUnderware.DevTools.ThreadPoolWorker<T> to run the mesh deformation on

DeformMeshes(List<CGVMesh>, SubArray<CGSpot>, SubArray<CGSpot>, CGVMesh[], CGPath, bool, ThreadPoolWorker<CGSpot>, ScaleParameters)

Deforms multiple CGVMeshs following a path

public static void DeformMeshes(List<CGVMesh> inputMeshes, SubArray<CGSpot> inputSpots, SubArray<CGSpot> outputSpots, CGVMesh[] outputMeshes, CGPath path, bool stretchToEnd, ThreadPoolWorker<CGSpot> threadPoolWorker, ScaleParameters scaleParameters)

Parameters

inputMeshes List<CGVMesh>

The list of meshes the Index of inputSpots refer to

inputSpots SubArray<CGSpot>

The CGSpots defining the transform and mesh to use as inputs

outputSpots SubArray<CGSpot>

Should have the same Count as inputMeshes

outputMeshes CGVMesh[]

Should have the same Count as inputMeshes

path CGPath

A path defining how the meshes should be deformed

stretchToEnd bool

see StretchToEnd

threadPoolWorker ThreadPoolWorker<CGSpot>

An instance of FluffyUnderware.DevTools.ThreadPoolWorker<T> to run the mesh deformation on

scaleParameters ScaleParameters

Defines what scaling to apply to the deformed mesh

Refresh()

Add Module processing code in here

public override void Refresh()