Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomMannequin

This class creates a bridge between the web viewer and the compute server to perform mannequin related requests as well as displaying the result.

Hierarchy

  • CustomMannequin

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

requestInfo

requestInfo: BasicMannequinRequestInfo = undefined

Object to hold information for the compute server request.

Methods

compute

  • compute(mannequinMaterialName: string, meshName: string): Promise<__type>
  • Make a request to the compute server with the previously set request information. This will always request a model file and cascade the result to the web viewer.

    Parameters

    • mannequinMaterialName: string

      The material name that should be used for the mannequin. This material has to exist beforehand.

    • meshName: string

      The mesh name of the mannequins model in the scene.

    Returns Promise<__type>

    A Promise for all requested file blobs if any were requested. undefined otherwise.

createScene

  • createScene(modelBlob: Blob, mannequinMaterialName: string, meshName: string): Promise<void>
  • Add a new cascade layer to the current web viewer scene.

    Parameters

    • modelBlob: Blob
    • mannequinMaterialName: string
    • meshName: string

    Returns Promise<void>

Generated using TypeDoc