Struct CSGPolygon

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

struct CSGPolygon ;

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

Properties

NameTypeDescription
depth[get, set] doubleExtrusion depth when mode is constant MODE_DEPTH.
mode[get, set] CSGPolygon.ModeExtrusion mode.
pathContinuousU[get, set] boolIf 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[get, set] doubleInterval at which a new extrusion slice is added along the path when mode is constant MODE_PATH.
pathJoined[get, set] boolIf true the start and end of our path are joined together ensuring there is no seam when mode is constant MODE_PATH.
pathLocal[get, set] boolIf 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[get, set] NodePathThe Shape object containing the path along which we extrude when mode is constant MODE_PATH.
pathRotation[get, set] CSGPolygon.PathRotationThe method by which each slice is rotated along the path when mode is constant MODE_PATH.
polygon[get, set] PoolArray!(godot.core.vector2.Vector2)Point array that defines the shape that we'll extrude.
smoothFaces[get, set] boolGenerates smooth normals so smooth shading is applied to our mesh.
spinDegrees[get, set] doubleDegrees to rotate our extrusion for each slice when mode is constant MODE_SPIN.
spinSides[get, set] longNumber of extrusion when mode is constant MODE_SPIN.

Methods

NameDescription
_hasEditable3dPolygonNoDepth
_isEditable3dPolygon
_pathChanged
_pathExited
getDepth
getMaterial
getMode
getPathInterval
getPathNode
getPathRotation
getPolygon
getSmoothFaces
getSpinDegrees
getSpinSides
isPathContinuousU
isPathJoined
isPathLocal
setDepth
setMaterial
setMode
setPathContinuousU
setPathInterval
setPathJoined
setPathLocal
setPathNode
setPathRotation
setPolygon
setSmoothFaces
setSpinDegrees
setSpinSides

Enums

NameDescription
Constants
Mode
PathRotation