Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
PathIntervalType
CSGPolygon3D.swift:60enum PathIntervalType
Cases
case distance
When
mode
is set to .path,pathInterval
will determine the distance, in meters, each interval of the path will extrude.case subdivide
When
mode
is set to .path,pathInterval
will subdivide the polygons along the path.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (19) members.
Types
Type members
Instance members
var depth: Double
When
mode
is .depth, the depth of the extrusion.var material: Material?
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.var mode: CSGPolygon3D.Mode
var pathContinuousU: Bool
When
mode
is .path, by default, the top half of thematerial
is stretched along the entire length of the extruded shape. Iffalse
the top half of the material is repeated every step of the extrusion.var pathInterval: Double
When
mode
is .path, the path interval or ratio of path points to extrusions.var pathIntervalType: CSGPolygon3D.PathIntervalType
When
mode
is .path, this will determine if the interval should be by distance (.pathIntervalDistance) or subdivision fractions (.pathIntervalSubdivide).var pathJoined: Bool
When
mode
is .path, iftrue
the ends of the path are joined, by adding an extrusion between the last and first points of the path.var pathLocal: Bool
When
mode
is .path, iftrue
theTransform3D
of theCSGPolygon3D
is used as the starting point for the extrusions, not theTransform3D
of thepathNode
.var pathNode: NodePath
When
mode
is .path, the location of thePath3D
object used to extrude thepolygon
.var pathRotation: CSGPolygon3D.PathRotation
When
mode
is .path, thePathRotation
method used to rotate thepolygon
as it is extruded.var pathSimplifyAngle: Double
When
mode
is .path, extrusions that are less than this angle, will be merged together to reduce polygon count.var pathUDistance: Double
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.var polygon: PackedVector2Array
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.
var smoothFaces: Bool
If
true
, applies smooth shading to the extrusions.var spinDegrees: Double
When
mode
is .spin, the total number of degrees thepolygon
is rotated when extruding.var spinSides: Int32
When
mode
is .spin, the number of extrusions made.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A 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.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.