Table of Contents

Class BuildShapeExtrusion

Extrudes a 2D shape along a path to produce a 3D volume

public class BuildShapeExtrusion : ScalingModule, IPathProvider
Inheritance
Object
Component
Behaviour
MonoBehaviour
DTVersionedMonoBehaviour
BuildShapeExtrusion
Implements
Inherited Members

Fields

InCross

[HideInInspector]
[InputSlotInfo(typeof(CGShape), Array = true, ArrayType = SlotInfo.SlotArrayType.Hidden, RequestDataOnly = true)]
public CGModuleInputSlot InCross

Field Value

CGModuleInputSlot

InPath

[HideInInspector]
[InputSlotInfo(typeof(CGPath), RequestDataOnly = true)]
public CGModuleInputSlot InPath

Field Value

CGModuleInputSlot

OutVolume

[HideInInspector]
[OutputSlotInfo(typeof(CGVolume))]
public CGModuleOutputSlot OutVolume

Field Value

CGModuleOutputSlot

OutVolumeHollow

[HideInInspector]
[OutputSlotInfo(typeof(CGVolume))]
public CGModuleOutputSlot OutVolumeHollow

Field Value

CGModuleOutputSlot

Properties

AngleThreshold

The maximum angle between consecutive path segments, in degrees, used when Optimize is enabled

public float AngleThreshold { get; set; }

Property Value

float

Cross

public IExternalInput Cross { get; }

Property Value

IExternalInput

CrossAngleThreshold

Similar to AngleThreshold, but for the cross shape.

public float CrossAngleThreshold { get; set; }

Property Value

float
See Also

CrossFrom

The start of the cross (shape) rasterization range, as a relative distance (between 0 and 1)

public float CrossFrom { get; set; }

Property Value

float

CrossIncludeControlPoints

When enabled, vertices are guaranteed to be created for all the cross shape's Control Points

public bool CrossIncludeControlPoints { get; set; }

Property Value

bool

CrossLength

The length of the cross (shape) rasterization range

public float CrossLength { get; set; }

Property Value

float

CrossOptimize

Similar to Optimize, but for the cross shape.

public bool CrossOptimize { get; set; }

Property Value

bool
See Also

CrossResolution

Defines how densely the cross spline's sampling points are. When the value is 100, the number of sampling points per world distance unit is equal to the spline's MaxPointsPerUnit

public int CrossResolution { get; set; }

Property Value

int

CrossReverseNormals

When enabled, reverses the vertex normals of the cross section

public bool CrossReverseNormals { get; set; }

Property Value

bool

CrossShiftMode

Defines how the CrossFShift value is defined.

public BuildShapeExtrusion.CrossShiftModeEnum CrossShiftMode { get; set; }

Property Value

BuildShapeExtrusion.CrossShiftModeEnum

CrossShiftValue

The custom shift value applied to the output volume's cross when CrossShiftMode is set to Custom

public float CrossShiftValue { get; set; }

Property Value

float

CrossTo

The end of the cross (shape) rasterization range, as a relative distance (between 0 and 1)

public float CrossTo { get; set; }

Property Value

float

ExtrusionStatistics

Statistics about the last produced extrusion

public BuildShapeExtrusion.Statistics ExtrusionStatistics { get; set; }

Property Value

BuildShapeExtrusion.Statistics

From

The start of the path rasterization range, as a relative distance (between 0 and 1)

public float From { get; set; }

Property Value

float

HollowInset

The inset amount for the hollow volume, between 0 and 1

public float HollowInset { get; set; }

Property Value

float

HollowReverseNormals

When enabled, reverses the vertex normals of the hollow volume

public bool HollowReverseNormals { get; set; }

Property Value

bool

Length

The length of the path rasterization range

public float Length { get; set; }

Property Value

float

Optimize

When enabled, segments are placed based on the path's curvature rather than at a fixed distance. Fewer segments are used on straight sections, more on curves.

public bool Optimize { get; set; }

Property Value

bool
See Also

PathIsClosed

Whether the input path is closed

public bool PathIsClosed { get; }

Property Value

bool

Resolution

Defines how densely the path spline's sampling points are. When the value is 100, the number of sampling points per world distance unit is equal to the spline's MaxPointsPerUnit

public int Resolution { get; set; }

Property Value

int

To

The end of the path rasterization range, as a relative distance (between 0 and 1)

public float To { get; set; }

Property Value

float

Methods

Refresh()

Add Module processing code in here

public override void Refresh()