Constructors
constructor
- new Model(a: string, b: Partial<{ allowPicking?: boolean; asynchronous?: boolean; backFaceCulling?: boolean; basePath?: string | Resource; clampAnimations?: boolean; clippingPlanes?: ClippingPlaneCollection; color?: Color; colorBlendAmount?: number; colorBlendMode?: ColorBlendMode; credit?: string | Credit; debugShowBoundingVolume?: boolean; debugWireframe?: boolean; dequantizeInShader?: boolean; distanceDisplayCondition?: DistanceDisplayCondition; heightReference?: HeightReference; id?: any; imageBasedLighting?: ImageBasedLighting; incrementallyLoadTextures?: boolean; lightColor?: Cartesian3; maximumScale?: number; minimumPixelSize?: number; modelMatrix?: Matrix4; scale?: number; scene?: Scene; shadows?: ShadowMode; show?: boolean; showCreditsOnScreen?: boolean; showOutline?: boolean; silhouetteColor?: Color; silhouetteSize?: number; url: string | Resource } & { justLoad: boolean }>): Model
Parameters
a: string
b: Partial<{ allowPicking?: boolean; asynchronous?: boolean; backFaceCulling?: boolean; basePath?: string | Resource; clampAnimations?: boolean; clippingPlanes?: ClippingPlaneCollection; color?: Color; colorBlendAmount?: number; colorBlendMode?: ColorBlendMode; credit?: string | Credit; debugShowBoundingVolume?: boolean; debugWireframe?: boolean; dequantizeInShader?: boolean; distanceDisplayCondition?: DistanceDisplayCondition; heightReference?: HeightReference; id?: any; imageBasedLighting?: ImageBasedLighting; incrementallyLoadTextures?: boolean; lightColor?: Cartesian3; maximumScale?: number; minimumPixelSize?: number; modelMatrix?: Matrix4; scale?: number; scene?: Scene; shadows?: ShadowMode; show?: boolean; showCreditsOnScreen?: boolean; showOutline?: boolean; silhouetteColor?: Color; silhouetteSize?: number; url: string | Resource } & { justLoad: boolean }>
Methods
changeTexture
- changeTexture(a: string, b: string, c?: Model): void
Parameters
a: string
b: string
Optional c: Model
Returns void
setCssColor
- setCssColor(a: string): void
setLocation
- setLocation(a: number[]): void
setOpacity
- setOpacity(a: number): void
setPositionOrientationAndScale
- setPositionOrientationAndScale(a: number[], b?: number[], c?: number[]): void
Parameters
a: number[]
Optional b: number[]
Optional c: number[]
Returns void
setRotation
- setRotation(a: number, b: number): void
setScale
- setScale(a: number): void