Extrudes a 2D polygon shape to create a 3D mesh.
    public class CSGPolygon : CSGPrimitive

This node takes a 2D polygon shape and extrudes it to create a 3D mesh.

Inheritance Chain

Constructors

    public CSGPolygon()

Properties

    public float Depth { get; set; }

Extrusion depth when Mode is ModeEnum.Depth.

    public Material Material { get; set; }

Material to use for the resulting mesh.

    public ModeEnum Mode { get; set; }

Extrusion mode.

    public bool PathContinuousU { get; set; }

If true the u component of our uv will continuously increase in unison with the distance traveled along our path when Mode is ModeEnum.Path.

    public float PathInterval { get; set; }

Interval at which a new extrusion slice is added along the path when Mode is ModeEnum.Path.

    public bool PathJoined { get; set; }

If true the start and end of our path are joined together ensuring there is no seam when Mode is ModeEnum.Path.

    public bool PathLocal { get; set; }

If false we extrude centered on our path, if true we extrude in relation to the position of our CSGPolygon when Mode is ModeEnum.Path.

    public NodePath PathNode { get; set; }

The Shape object containing the path along which we extrude when Mode is ModeEnum.Path.

    public PathRotationEnum PathRotation { get; set; }

The method by which each slice is rotated along the path when Mode is ModeEnum.Path.

    public Vector2[] Polygon { get; set; }

Point array that defines the shape that we’ll extrude.

    public bool SmoothFaces { get; set; }

Generates smooth normals so smooth shading is applied to our mesh.

    public float SpinDegrees { get; set; }

Degrees to rotate our extrusion for each slice when Mode is ModeEnum.Spin.

    public int SpinSides { get; set; }

Number of extrusion when Mode is ModeEnum.Spin.

Methods

    [Obsolete("GetDepth is deprecated. Use the Depth property instead.")]
    public float GetDepth()

Getter for Depth

    [Obsolete("GetMaterial is deprecated. Use the Material property instead.")]
    public Material GetMaterial()

Getter for Material

    [Obsolete("GetMode is deprecated. Use the Mode property instead.")]
    public ModeEnum GetMode()

Getter for Mode

    [Obsolete("GetPathInterval is deprecated. Use the PathInterval property instead.")]
    public float GetPathInterval()

Getter for PathInterval

    [Obsolete("GetPathNode is deprecated. Use the PathNode property instead.")]
    public NodePath GetPathNode()

Getter for PathNode

    [Obsolete("GetPathRotation is deprecated. Use the PathRotation property instead.")]
    public PathRotationEnum GetPathRotation()

Getter for PathRotation

    [Obsolete("GetPolygon is deprecated. Use the Polygon property instead.")]
    public Vector2[] GetPolygon()

Getter for PathRotationEnum.Polygon

    [Obsolete("GetSmoothFaces is deprecated. Use the SmoothFaces property instead.")]
    public bool GetSmoothFaces()

Getter for SmoothFaces

    [Obsolete("GetSpinDegrees is deprecated. Use the SpinDegrees property instead.")]
    public float GetSpinDegrees()

Getter for SpinDegrees

    [Obsolete("GetSpinSides is deprecated. Use the SpinSides property instead.")]
    public int GetSpinSides()

Getter for SpinSides

    [Obsolete("IsPathContinuousU is deprecated. Use the PathContinuousU property instead.")]
    public bool IsPathContinuousU()

Getter for PathContinuousU

    [Obsolete("IsPathJoined is deprecated. Use the PathJoined property instead.")]
    public bool IsPathJoined()

Getter for PathJoined

    [Obsolete("IsPathLocal is deprecated. Use the PathLocal property instead.")]
    public bool IsPathLocal()

Getter for PathLocal

    [Obsolete("SetDepth is deprecated. Use the Depth property instead.")]
    public void SetDepth(float depth)

Setter for Depth

    [Obsolete("SetMaterial is deprecated. Use the Material property instead.")]
    public void SetMaterial(Material material)

Setter for Material

    [Obsolete("SetMode is deprecated. Use the Mode property instead.")]
    public void SetMode(ModeEnum mode)

Setter for Mode

    [Obsolete("SetPathContinuousU is deprecated. Use the PathContinuousU property instead.")]
    public void SetPathContinuousU(bool enable)

Setter for PathContinuousU

    [Obsolete("SetPathInterval is deprecated. Use the PathInterval property instead.")]
    public void SetPathInterval(float distance)

Setter for PathInterval

    [Obsolete("SetPathJoined is deprecated. Use the PathJoined property instead.")]
    public void SetPathJoined(bool enable)

Setter for PathJoined

    [Obsolete("SetPathLocal is deprecated. Use the PathLocal property instead.")]
    public void SetPathLocal(bool enable)

Setter for PathLocal

    [Obsolete("SetPathNode is deprecated. Use the PathNode property instead.")]
    public void SetPathNode(NodePath path)

Setter for PathNode

    [Obsolete("SetPathRotation is deprecated. Use the PathRotation property instead.")]
    public void SetPathRotation(PathRotationEnum mode)

Setter for PathRotation

    [Obsolete("SetPolygon is deprecated. Use the Polygon property instead.")]
    public void SetPolygon(Vector2[] polygon)

Setter for PathRotationEnum.Polygon

    [Obsolete("SetSmoothFaces is deprecated. Use the SmoothFaces property instead.")]
    public void SetSmoothFaces(bool smoothFaces)

Setter for SmoothFaces

    [Obsolete("SetSpinDegrees is deprecated. Use the SpinDegrees property instead.")]
    public void SetSpinDegrees(float degrees)

Setter for SpinDegrees

    [Obsolete("SetSpinSides is deprecated. Use the SpinSides property instead.")]
    public void SetSpinSides(int spinSides)

Setter for SpinSides

Inner Types

ModeEnum

Name Value Description
Depth 0 Shape is extruded to [member depth].
Spin 1 Shape is extruded by rotating it around an axis.
Path 2 Shape is extruded along a path set by a [Shape] set in [member path_node].

PathRotationEnum

Name Value Description
Polygon    
Path    
PathFollow    
Tags: