PathIntervalType
CSGPolygon3D.swift:66enum PathIntervalTypeenum PathIntervalTypeimport SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
class CSGPolygon3DExtrudes a 2D polygon shape to create a 3D mesh.
case distanceWhen mode is set to .path, pathInterval will determine the distance, in meters, each interval of the path will extrude.
case subdivideWhen mode is set to .path, pathInterval will subdivide the polygons along the path.
final var mode: CSGPolygon3D.Mode { get set }The mode used to extrude the polygon.
final var pathInterval: Double { get set }When mode is .path, the path interval or ratio of path points to extrusions.
override class var godotClassName: StringName { get }final var depth: Double { get set }When mode is .depth, the depth of the extrusion.
final var material: Material? { get set }Material to use for the resulting mesh. The UV maps the top half of the material to the extruded shape (U along the length of the extrusions and V around the outline of the polygon), the bottom-left quarter to the front end face, and the bottom-right quarter to the back end face.
final var pathContinuousU: Bool { get set }When mode is .path, by default, the top half of the material is stretched along the entire length of the extruded shape. If false the top half of the material is repeated every step of the extrusion.
final var pathIntervalType: CSGPolygon3D.PathIntervalType { get set }When mode is .path, this will determine if the interval should be by distance (.pathIntervalDistance) or subdivision fractions (.pathIntervalSubdivide).
final var pathJoined: Bool { get set }When mode is .path, if true the ends of the path are joined, by adding an extrusion between the last and first points of the path.
final var pathLocal: Bool { get set }When mode is .path, if true the Transform3D of the CSGPolygon3D is used as the starting point for the extrusions, not the Transform3D of the pathNode.
final var pathNode: NodePath { get set }When mode is .path, the location of the Path3D object used to extrude the polygon.
final var pathRotation: CSGPolygon3D.PathRotation { get set }When mode is .path, the path rotation method used to rotate the polygon as it is extruded.
final var pathSimplifyAngle: Double { get set }When mode is .path, extrusions that are less than this angle, will be merged together to reduce polygon count.
final var pathUDistance: Double { get set }When mode is .path, this is the distance along the path, in meters, the texture coordinates will tile. When set to 0, texture coordinates will match geometry exactly with no tiling.
final var polygon: PackedVector2Array { get set }The point array that defines the 2D polygon that is extruded. This can be a convex or concave polygon with 3 or more points. The polygon must not have any intersecting edges. Otherwise, triangulation will fail and no mesh will be generated.
final var smoothFaces: Bool { get set }If true, applies smooth shading to the extrusions.
final var spinDegrees: Double { get set }When mode is .spin, the total number of degrees the polygon is rotated when extruding.
final var spinSides: Int32 { get set }When mode is .spin, the number of extrusions made.
enum Modeenum PathRotationprotocol CaseIterableA type that provides a collection of all of its values.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol RawRepresentable<RawValue>A type that can be converted to and from an associated raw value.
init?(rawValue: Int64) var debugDescription: String { get }A textual representation of this instance, suitable for debugging
var hashValue: Int { get }static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)