Class ModifierMixShapes
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
public class ModifierMixShapes : CGModule, IOnRequestProcessing, IPathProvider
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourModifierMixShapes
- Implements
- Inherited Members
Fields
InShapeA
[HideInInspector]
[InputSlotInfo(typeof(CGShape), Name = "Shape A")]
public CGModuleInputSlot InShapeA
Field Value
InShapeB
[HideInInspector]
[InputSlotInfo(typeof(CGShape), Name = "Shape B")]
public CGModuleInputSlot InShapeB
Field Value
OutShape
[HideInInspector]
[OutputSlotInfo(typeof(CGShape))]
public CGModuleOutputSlot OutShape
Field Value
Properties
Mix
Defines how the result is interpolated. Values between -1 for Shape A and 1 for Shape B
public float Mix { get; set; }
Property Value
PathIsClosed
public bool PathIsClosed { get; }
Property Value
Methods
InterpolateShape(CGShape, CGShape, CGShape, float, List<string>, bool)
Returns the mixed shape
public static void InterpolateShape(CGShape resultShape, CGShape shapeA, CGShape shapeB, float mix, List<string> warningsContainer, bool ignoreWarnings = false)
Parameters
resultShapeCGShapeA shape which will be filled with the data of the mixed shape
shapeACGShapeOne of the two interpolated shapes
shapeBCGShapeOne of the two interpolated shapes
mixfloatA value between -1 and 1. -1 will select shape A. 1 will select shape B
warningsContainerList<string>Is filled with warnings raised by the mixing logic
ignoreWarningsboolIf true, warningsContainer will not be filled with warnings
MixShapes(CGShape, CGShape, float, List<string>, bool)
Returns the mixed shape
[CanBeNull]
public static CGShape MixShapes(CGShape shapeA, CGShape shapeB, float mix, List<string> warningsContainer, bool ignoreWarnings = false)
Parameters
shapeACGShapeshapeBCGShapemixfloatA value between -1 and 1. -1 will select the shape with the most points. 1 will select the other
warningsContainerList<string>Is filled with warnings raised by the mixing logic
ignoreWarningsboolIf true, warningsContainer will not be filled with warnings
Returns
- CGShape
The mixed shape
OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])
public CGData[] OnSlotDataRequest(CGModuleInputSlot requestedBy, CGModuleOutputSlot requestedSlot, params CGDataRequestParameter[] requests)
Parameters
requestedByCGModuleInputSlotrequestedSlotCGModuleOutputSlotrequestsCGDataRequestParameter[]
Returns
- CGData[]