webleads-tracker

Introduction

The 3D viewer module is the 3D standalone viewer provided by TraceParts.

 

Description

This module provides a 3D viewer of the 3D model of one given part number of a catalog. This module includes three ways of visualization based on three technologies. The optimized one is chosen related to the version of the web browser.

 

Building a URL

The 3d viewer request takes the following form:

http://www.tracepartsonline.net/global/viewer.aspx?parameters

 

Parameters

Certain parameters are required while others are optional. As is standard in URLs, all parameters are separated using the ampersand (&) character. The list of parameters and their possible values are enumerated below.

 

Required parameters

Parameter Name

Data type

Default value

Description

Reference

string

none

Part number of the catalog from the TraceParts database

ManID

string

none

CatalogID given by the CatalogsList API

 

Optional parameters (display)

Parameter Name

Data type

Default value

Description

ActivateCamera

boolean (true/false)

false

Animates the 3D model at the launch of the 3D viewer. The camera mode hides automaticaly the ground and lines.

DisplayGround

boolean (true/false)

false

Displays the ground

DisplayGroundGrid

boolean (true/false)

false

Displays the grid on the ground

DisplayHelpers

boolean (true/false)

false

Displays the bounding box of the 3D model with the dimensions (International measurement system) on XYZ

DisplayLogo

boolean (true/false)

false (DisplayMode=small)
true (DisplayModel=full)

Displays the catalog logo in the righ bottom

DisplayMode

boolean (small/full)

small

“small” is the basic mode of the 3D viewer. “full” is the advanced mode of the 3D viewer. Some options are only available for the “full” mode.

DisplayMovementIcons

boolean (true/false)

true

Displays the movement icons bar. *only for DisplayMode=small

DisplayToolTip

boolean (true/false)

false

Activates the tooltip which displays the name of the 3D model file.

DisplayTree

boolean (true/false)

false

Displays the treeview showing all the 3D models of the scene. It is not displayed with only one 3D model in the scene. *only for DisplayMode=full

DisplayViewIcons

boolean (true/false)

true

Displays the predefined views icons bar. *only for DisplayMode=small

H

integer

210 (DisplayMode=small)
600 (DisplayModel=full)

Height of the 3D viewer in pixel

Mode

text

3DWebGL

“3DWebGL” uses the HTML5 technology / “3D” uses the Java technology / “3DBitmap” displays seven views of the 3D model, as bitmap

W

integer

340 (DisplayMode=small)
780 (DisplayModel=full)

Width of the 3D viewer, in pixel

For “Mode=3D” and “Mode=3DBitmap”, only “H” and “W” parameters are available.

Optional parameters (Rendering)

Parameter Name

Data type

Default value

Description

BackgroundColor

Hexadecimal

0xFFFFFF

Sets a color on the background of the 3D viewer.

DefaultRenderMode

text

shaded-wireframe

Rendering of the 3D model. Values: “shaded”, “shaded-wireframe”, “wireframe”, “transparent”, “transparent-wireframe”

GroundColor

Hexadecimal

0xdddddd

Changes the color of the ground when DisplayGround=true

GroundLineColor

Hexadecimal

0x333333

Changes the color of the ground when DisplayGroundGrid=true

Example of 3D viewer call

The request below returns the 3D viewer of the part number “LAP ATLAS 10” from the LAP Laser catalog.

http://www.tracepartsonline.net/global/viewer.aspx?reference=LAP%20ATLAS%2010&Manid=LAP_LASER

By changing the H and W parameters, the 3D viewer has a bigger size.

http://www.tracepartsonline.net/global/viewer.aspx?reference=LAP%20ATLAS%2010&Manid=LAP_LASER&H=400&W=800

Developer support

Please contact us for any problems, questions or comments related to this module.

Last updated October 20, 2015