loadModel() function

Helper to load a ModelInterface object by Model identity.

Signature:

declare function loadModel(ctx: Context, identity: string, modelData?: Omit<ModelDataInterface, 'variants'> & {
    variant?: ModelVariant;
}): Promise<ModelInterface>;

Parameters

Parameter

Type

Description

ctx

Context

identity

string

modelData

Omit<ModelDataInterface, 'variants'> & { variant?: ModelVariant; }

(Optional)

**Returns:**

Promise<ModelInterface>

Remarks

Given a Model identity (e.g. core3d:model:...) this will create and load a ModelInterface.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2025 Core3D, Inc. All Rights Reserved.