Welcome

The following samples show the usage of the CADMAI Control / Plugin in Web environments

If you have not downloaded the latest CADMAI Version (Version 4.2 , sample source code included) the Control / Plugin download and setup will be initialized when one of the sample pages are loaded. The control is only licensed in the context of these web pages
The CADMAI Control / Plugin show the standard tool bar and the status bar. All 3D viewing operation can either be carried out using the tool bar icons or using the middle mouse button.

  • Middle Button = Pan
  • Ctrl + Middle Button = Rotate
  • Shift + Middle Button = Zoom

Some Examples use OpenGL Shaders which need an OpenGL Version greater 2.0.
If you receive error messages you may have to update your graphic driver

Model Viewer
This sample shows how the CADMAI Control can be used as a viewer for 2D and 3D models.
The models are downloaded from web locations and are displayed in the CAD window

Context Menu
This sample shows how the CADMAI Control can be used as an information base for web page linkages
The html site overrides the CADMAI context menu, which is shown when the user presses the right mouse button over a CADMAI entity. The html site receives the information which menu item is selected and which CADMAI entity is selected and can react on this events e.g. by displaying additional web pages.

Table based Design
This sample shows how parameters can be transferred to the CADMAI control and steer the parametric design of the model. In this case a ball bearing is steered by a table from the html page.

Parametric changes by mouse interaction
This sample shows how parametric CADMAI models can be steered by user interaction (e.g. Drag actions).
The web site handles mouse events from the CADMAI window by notification handlers and updates the correspondent model geometry with the values received from CADMAI.

3D user interfaces
This sample shows how the CADMAI control can be used to define 3D user interfaces
The web site receives mouse events from the CADMAI window and updates the correspondent HTML Controls with the values received from CADMAI.
This works vice versa.
If a HTML control is changed the values are transferred to CADMAI and perform parametric changes in the model

Feedback from user defined objects (Tic Tac Toe 3D game sample)
This sample shows how mouse feedback from CADMAI can be used to steer user defined objects (UDO's) in a CADMAI model.
The web page receives mouse events from the CADMAI control and updates the clicked CADMAI UDO's by changing the creation parameter of the UDO

Internal component positioning (Poke game sample)
This sample shows how users can define assemblies in 3D interactively with CADMAI.
The applications uses the CADMAI assemble mode to position components on pre defined positioning points.
Beside different orientations of the components also collision checking can be performed

External component positioning (4 Wins 3D game sample)
This sample shows how mouse feedback from CADMAI can be used to position components dynamically.
The applications receives mouse events from the CADMAI window and re positions the clicked CADMAI component by changing the creation parameter of the component placement