Box Segmentation
Once the command is activated, a new window, below the main 3D view and docked within the desktop is created to display the content of the segmentation cursor.
A dialog box (see Fig. 52 : Segmentation configuration dialog) is also displayed to manually configure the segmentation cursor parameters.
As an example of the expected results, the next picture shows the 2 views of the PERFECT viewer:
Fig. 51 : PERFECT viewer segmentation
Sphere Segmentation
As for plane segmentation, once the command is activated, a new window, below the main 3D view and docked within the desktop is created to display the content of the segmentation cursor.
A dialog box (see Fig. 54 : Sphere Segmentation configuration dialog) is also displayed to manually configure the segmentation cursor parameters.
The main view (top) shows the results at Gauss points with its scalar bars as described in the previous chapter. In addition, a semi-transparent segmentation cursor – in the form of a box with an axis to define its orientation – is added to define the part of the variables to be inspected. Two different presentations for Gauss points are used, depending on location of points: inside or outside the segmentation cursor. Inside points uses the normal presentation for Gauss points as defined in Fig. 10 : Results at Gauss points primitive configuration dialog. Outside points presentation is to be defined in the segmentation configuration dialog.
The second view (bottom) – also called segmentation viewer – shows, in real time, the results at Gauss points only (no meshes elements) that are located inside the segmentation cursor. Gauss points are displayed with the same presentation as the one used for points inside the cursor of the first view. This view is automatically updated when the cursor is changed in the first view.
Picking capabilities
The picking functionality, as defined in Picking, is available in both views. The picked point is also highlighted by the 3D cursor in both views simultaneously. The semi-transparent information window is displayed in the view used for the picking.
In the case a picked point (from the first view) is not visible in the second view – i.e.: the point is not contained within the segmentation cursor – only the picking cursor is displayed in the second view till the selection is cancelled.
Edition of the box segmentation cursor
A dialog with 2 tabs is opened when the function is activated. When user exits this dialog, the function is ended and the second view (segmentation cursor viewer) is erased.
The following dialog describes configuration of the segmentation cursor:
Fig. 52 : Segmentation configuration dialog
This dialog defines the coordinates of the origin of the segmentation cursor, in addition to its direction and depth.
Parameters are explained as follows:
Fig. 53 : Understanding segmentation cursor parameters
It is also possible to graphically edit these parameters directly from the first 3D view with the mouse:
Translation (dragging) of the lower plane along the V axis changes the origin of the cursor
Rotating the V axis around its origin defines a new direction for the cursor
Dragging the second plane (upper one) along its axis changes the depth of the cursor. It is not possible to move this second plane under the first one (minimum depth is set to 0).
The dialog is automatically updated.
Edition of the segmentation cursor
A dialog with 2 tabs is opened when the function is activated. When user exits this dialog, the function is ended and the second view (segmentation cursor viewer) is erased.
The following dialog describes configuration of the segmentation cursor:
Fig. 54 : Sphere Segmentation configuration dialog
This dialog defines the coordinates of the origin of the segmentation cursor, in addition to its radius.
Origin defines the coordinates of the origin of the segmentation cursor. Default is set to the CAD origin.
Radius corresponds to the radius of the sphere. Default is set to 5% of the diagonal of the bounding box for the scene (i.e.: diameter is then equal to 10% of the diagonal).
+/- Ratio corresponds to the number by which the radius will be respectively multiplied or divided at edition. Default is set to 2 mm.
Keyboard: During rendering the scene, it is possible to modify the radius (multiply/divide by the radius ratio) by using ‘D’, ‘d’ keys of the keyboard when the 3D view is active. The effect is immediately applied. The value of the ratio is only defined through the dialog box.
Parameters are explained as follows:
Fig. 55 : Understanding segmentation cursor parameters
It is also possible to graphically edit these parameters directly from the first 3D view with the mouse:
Translation (dragging) of the sphere by moving the centre (glyph) of the sphere
Change the radius my moving the boundary glyph on the top of the sphere (minimum radius is set to 0)
The dialog is automatically updated accordingly.
The second tab provides the user with the ability to change both presentations of Gauss points inside and outside the segmentation cursor within the same dialog. This is applicable for all segmentation cursors (plane & sphere).
Therefore, dialogs are made of two parts:
First part defines primitives inside the cursor
Second part defines primitives outside the cursor
Note:
the next dialogs only described the content of primitive parameterisation inside the cursor, intended that all the three primitives are also applicable outside the cursor.
Primitive presentation definition for Gauss points and in the case of a segmentation are defined by the following dialogs:
Fig. 56 : Segmentation Gauss points primitive – Point sprite parameters
Fig. 57 : Segmentation Gauss points primitive – OpenGL parameters
Fig. 58 : Segmentation Gauss points primitive – Geometrical sphere parameters
The first part of the dialog is the same as for Fig. 10 : Results at Gauss points primitive configuration dialog.
Size: defines the size of Gauss points located outside the segmentation cursor. It is a percentage of the normal size of Gauss points defined in Fig. 10 : Results at Gauss points primitive configuration dialog.
Color: define the unique color used for Gauss points located outside the segmentation cursor. It is a button control. When user press it, he can choose a color from a standard color configuration dialog:
Fig. 59 : Standard color dialog
Predefined view for the segmentation 3D view
A new toolbar is defined for the second view only (segmentation viewer) to define certain pre-defined point of view:
Fig. 60 : New toolbar for the segmentation viewer 3D view
From left to right, the predefined points of view are:
Front
Back
Top
Bottom
Left
Right
Cursor (front)
Cursor (back)
This toolbar is docked to the frame of the second view.
Note:
The possibility to adjust in real time the segmentation viewer to the segmentation cursor can be proposed as a future improvement of this functionality, but is out of the scope of this project.