Class DeformMesh
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
Deforms a mesh following a path
public class DeformMesh : ScalingModule
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourDeformMesh
- Inherited Members
Fields
InPath
[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path", DisplayName = "Volume/Rasterized Path")]
public CGModuleInputSlot InPath
Field Value
InSpots
[HideInInspector]
[InputSlotInfo(typeof(CGSpots), Array = true, Name = "Spots", Optional = true)]
public CGModuleInputSlot InSpots
Field Value
InVMeshes
[HideInInspector]
[InputSlotInfo(typeof(CGVMesh), Array = true, Name = "VMesh")]
public CGModuleInputSlot InVMeshes
Field Value
OutSpots
[HideInInspector]
[OutputSlotInfo(typeof(CGSpots), Array = true, Name = "Spots")]
public CGModuleOutputSlot OutSpots
Field Value
OutVMeshes
[HideInInspector]
[OutputSlotInfo(typeof(CGVMesh), Name = "VMesh", Array = true)]
public CGModuleOutputSlot OutVMeshes
Field Value
Properties
StretchToEnd
Stretch the meshes to make them fit the end of the path
public bool StretchToEnd { get; set; }
Property Value
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
inputMeshesList<CGVMesh>The list of meshes the Index of
inputSpotsrefer toinputSpotsSubArray<CGSpot>The CGSpots defining the transform and mesh to use as inputs
outputSpotsSubArray<CGSpot>Should have the same Count as
inputMeshesoutputMeshesCGVMesh[]Should have the same Count as
inputMeshespathCGPathA path defining how the meshes should be deformed
stretchToEndboolsee StretchToEnd
threadPoolWorkerThreadPoolWorker<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
inputMeshesList<CGVMesh>The list of meshes the Index of
inputSpotsrefer toinputSpotsSubArray<CGSpot>The CGSpots defining the transform and mesh to use as inputs
outputSpotsSubArray<CGSpot>Should have the same Count as
inputMeshesoutputMeshesCGVMesh[]Should have the same Count as
inputMeshespathCGPathA path defining how the meshes should be deformed
stretchToEndboolsee StretchToEnd
threadPoolWorkerThreadPoolWorker<CGSpot>An instance of FluffyUnderware.DevTools.ThreadPoolWorker<T> to run the mesh deformation on
scaleParametersScaleParametersDefines what scaling to apply to the deformed mesh
Refresh()
Add Module processing code in here
public override void Refresh()