Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

AuRea 1.0.2

open class AuMesh : AuNative

This class represents the geometry of a 3D model, consisting of vertices, indices, and associated attributes like normals and texture coordinates.

Inheritors

Constructors

constructor(objFilename: String)

Creates a mesh from an obj file.

constructor(primitiveMode: AuMesh.PrimitiveMode, vertexBuffers: Array<AuVertexBuffer>, indexBuffer: AuIndexBuffer)

Creates a mesh from an array of vertex buffers and an index buffer.

Types

class Arrow(width: Float, h1: Float, h2: Float, thick: Float) : AuMesh

An arrow.

class Cube(width: Float, height: Float, depth: Float) : AuMesh

A cube.

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, ...

class Frame(width: Float, height: Float, depth: Float, thick: Float) : AuMesh

A frame.

class Outlined(outline: FloatArray, scale: Float) : AuMesh

Create a mesh from any outline

This enumeration defines the different types of primitive geometries that can be used when rendering a mesh in a graphics application.

class Rectangle(width: Float, height: Float) : AuMesh

A rectangle.

class Torus(innerRadius: Float, outerRadius: Float, section: Float, radialCount: Int, extrusionCount: Int) : AuMesh

A torus.

class WireBox(width: Float, height: Float, depth: Float, thick: Float) : AuMesh

A wireframe cube.

Inherited properties

The handle to the native resource.

Inherited functions

open override fun close()

Release the native resources.