One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MeshResource.ShapeExtrusionOptions.MaterialAssignment

struct · iOS 18.0+ · SDK 27.1

struct MaterialAssignment

A type that determines the material assignments for each part of an extruded shape.

Members (2)

init · iOS 18.0+

init

TypeScript
static initFrontBackExtrusionFrontChamferBackChamfer(front?: number, back?: number, extrusion?: number, frontChamfer?: number, backChamfer?: number): Promise<MeshResource_ShapeExtrusionOptions_MaterialAssignment>
Swift declaration
init(front: UInt32 = 0, back: UInt32 = 0, extrusion: UInt32 = 0, frontChamfer: UInt32 = 0, backChamfer: UInt32 = 0)

Creates a material assignment structure with options for each side of an extruded shape. - Parameters: - front: The material index for the front face of the shape. - back: The material index for the back face of the shape. - extrusion: The material index for the extruded faces of the shape. - frontChamfer: The material index for the chamfered edges between the front and sides of the shape. - backChamfer: The material index for the chamfered edges between the back and sides of the shape. The default for any omitted parameter is `0`.

init · iOS 18.0+

init

TypeScript
static initAssignAll(all: number): Promise<MeshResource_ShapeExtrusionOptions_MaterialAssignment>
Swift declaration
init(assignAll all: UInt32)

Creates a material assignment structure that assigns the same material to all faces. - Parameter all: The material index for all mesh faces.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →