Skip to content
Select language:English

AuRea 1.0.2

class Extrusion(pathPoints: FloatArray, radius: Float, radialSegments: Int = 16, cornerRadius: Float = 0.05f, uvTileSize: Float = 1.0f) : AuMesh

An Extrusion of a circle given a list of points in 3D space x, y, z, x1, y1, z1, ...

Parameters

pathPoints

Flat array of 3D points laid out as interleaved (x, y, z) triples: [ x0, y0, z0, x1, y1, z1, ..., xN, yN, zN ]. Must contain at least 2 points. The more points, the more detailed the path — but also the heavier the mesh.

radius

How thick the tube is, in world units. Must be > 0. A larger value makes a fatter tube; a smaller value makes it thinner.

radialSegments

How many sides the tube has around its circumference. Default: 16. Low values (4–6) give a clearly angular, prismatic look; higher values (16+) make it look round. More sides means more geometry.

cornerRadius

How rounded the bends are at each path vertex, in world units. Default: 0.05. Set to 0 for sharp corners. A larger value produces wider, smoother curves; a smaller value makes tighter turns. Automatically clamped if the bend would overlap adjacent segments.

uvTileSize

How many world units the texture covers before repeating along the tube. Default: 1.0. Smaller values make the texture repeat more often; larger values stretch it further. Does not affect the mesh shape.

Constructors

constructor(pathPoints: FloatArray, radius: Float, radialSegments: Int = 16, cornerRadius: Float = 0.05f, uvTileSize: Float = 1.0f)

Inherited properties

The handle to the native resource.

Inherited functions

open override fun close()

Release the native resources.