CSGPolygon

Extrudes a 2D polygon shape to create a 3D mesh.

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

@GodotBaseClass
struct CSGPolygon {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Mode
enum Mode
PathRotation
enum PathRotation

Functions

_hasEditable3dPolygonNoDepth
bool _hasEditable3dPolygonNoDepth()
_isEditable3dPolygon
bool _isEditable3dPolygon()
_pathChanged
void _pathChanged()
_pathExited
void _pathExited()
getDepth
double getDepth()
getMaterial
Ref!Material getMaterial()
getMode
CSGPolygon.Mode getMode()
getPathInterval
double getPathInterval()
getPathNode
NodePath getPathNode()
getPathRotation
CSGPolygon.PathRotation getPathRotation()
getPolygon
PoolVector2Array getPolygon()
getSmoothFaces
bool getSmoothFaces()
getSpinDegrees
double getSpinDegrees()
getSpinSides
long getSpinSides()
isPathContinuousU
bool isPathContinuousU()
isPathJoined
bool isPathJoined()
isPathLocal
bool isPathLocal()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(CSGPolygon other)
opEquals
bool opEquals(typeof(null) n)
setDepth
void setDepth(double depth)
setMaterial
void setMaterial(Material material)
setMode
void setMode(long mode)
setPathContinuousU
void setPathContinuousU(bool enable)
setPathInterval
void setPathInterval(double distance)
setPathJoined
void setPathJoined(bool enable)
setPathLocal
void setPathLocal(bool enable)
setPathNode
void setPathNode(NodePathArg0 path)
setPathRotation
void setPathRotation(long mode)
setPolygon
void setPolygon(PoolVector2Array polygon)
setSmoothFaces
void setSmoothFaces(bool smooth_faces)
setSpinDegrees
void setSpinDegrees(double degrees)
setSpinSides
void setSpinSides(long spin_sides)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

depth
double depth [@property getter]
double depth [@property setter]

Extrusion depth when mode is constant MODE_DEPTH.

mode
CSGPolygon.Mode mode [@property getter]
long mode [@property setter]

Extrusion mode.

pathContinuousU
bool pathContinuousU [@property getter]
bool pathContinuousU [@property setter]

If true the u component of our uv will continuously increase in unison with the distance traveled along our path when mode is constant MODE_PATH.

pathInterval
double pathInterval [@property getter]
double pathInterval [@property setter]

Interval at which a new extrusion slice is added along the path when mode is constant MODE_PATH.

pathJoined
bool pathJoined [@property getter]
bool pathJoined [@property setter]

If true the start and end of our path are joined together ensuring there is no seam when mode is constant MODE_PATH.

pathLocal
bool pathLocal [@property getter]
bool pathLocal [@property setter]

If false we extrude centered on our path, if true we extrude in relation to the position of our CSGPolygon when mode is constant MODE_PATH.

pathNode
NodePath pathNode [@property getter]
NodePath pathNode [@property setter]

The Shape object containing the path along which we extrude when mode is constant MODE_PATH.

pathRotation
CSGPolygon.PathRotation pathRotation [@property getter]
long pathRotation [@property setter]

The method by which each slice is rotated along the path when mode is constant MODE_PATH.

polygon
PoolVector2Array polygon [@property getter]
PoolVector2Array polygon [@property setter]

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

smoothFaces
bool smoothFaces [@property getter]
bool smoothFaces [@property setter]

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

spinDegrees
double spinDegrees [@property getter]
double spinDegrees [@property setter]

Degrees to rotate our extrusion for each slice when mode is constant MODE_SPIN.

spinSides
long spinSides [@property getter]
long spinSides [@property setter]

Number of extrusion when mode is constant MODE_SPIN.

Static functions

_new
CSGPolygon _new()

Construct a new instance of CSGPolygon. Note: use memnew!CSGPolygon instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta