Interface P3dEmbedApiPick

interface P3dEmbedApiPick {
    coordinates?: {
        x: number;
        y: number;
        z: number;
    };
    material?: P3dMaterial;
    materialIndex?: number;
    status: "hit" | "miss";
}

Hierarchy (view full)

Properties

coordinates?: {
    x: number;
    y: number;
    z: number;
}

Hit coordinates in model space

Type declaration

  • x: number
  • y: number
  • z: number
material?: P3dMaterial

Material instance that cursor was on

materialIndex?: number

Index of the material that cursor was on

status: "hit" | "miss"

Determines if cursor event was over the model or not