2012-01-12 22:36:50 +06:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page material_page Material
|
|
|
|
|
|
|
|
\n You can change the material properties of the selected shape(s) by
|
|
|
|
- choosing one of predefined global materials,
|
|
|
|
- choosing one of predefined user materials,
|
|
|
|
- creating a new user material and applying it to the selected shape(s)
|
|
|
|
|
|
|
|
in the following dialog box.
|
|
|
|
|
2012-04-13 21:22:52 +06:00
|
|
|
\image html material.png
|
2012-04-16 19:03:09 +06:00
|
|
|
<center><em><b>Set Material Properties</b> dialog</em></center>
|
2012-01-12 22:36:50 +06:00
|
|
|
|
2012-04-16 19:03:09 +06:00
|
|
|
|
|
|
|
With help of <b>Set Material Properties</b> dialog it is possible to set
|
2012-04-13 21:22:52 +06:00
|
|
|
materials of the selected shape(s).
|
2012-01-12 22:36:50 +06:00
|
|
|
|
2012-04-13 21:22:52 +06:00
|
|
|
This functionality is available in OCC and VTK viewers.
|
2012-01-12 22:36:50 +06:00
|
|
|
|
2012-04-16 19:03:09 +06:00
|
|
|
\anchor material
|
2012-01-12 22:36:50 +06:00
|
|
|
User can changed the following material properties
|
|
|
|
|
|
|
|
- ambient color and coefficient
|
|
|
|
- diffuse color and coefficient
|
|
|
|
- specular color and coefficient
|
2012-04-13 21:22:52 +06:00
|
|
|
- emission color and coefficient (available only in OCC viewer), which simulate light originating from an object.
|
2012-01-12 22:36:50 +06:00
|
|
|
- shininess
|
2012-04-16 19:03:09 +06:00
|
|
|
- type of material: <b>Physical</b> these materials will not allow modification of color attributes (gold, aluminium, bronze, etc.);
|
2012-04-13 21:22:52 +06:00
|
|
|
<b>Artificial</b> these materials will allow modification of color attributes (plastic, satin, metall, etc.)
|
2012-01-12 22:36:50 +06:00
|
|
|
|
2012-04-13 21:22:52 +06:00
|
|
|
\n All currently available materials are shown in the left-side list box
|
2012-01-12 22:36:50 +06:00
|
|
|
of the <b>Set Material Properties</b> dialog.
|
|
|
|
|
2012-04-13 21:22:52 +06:00
|
|
|
- <b>[Current]</b> item in the list corresponds to the material
|
2012-01-12 22:36:50 +06:00
|
|
|
currently used for the selected shape(s)
|
|
|
|
- <b>[Default]</b> item in the list corresponds to the front/back material
|
|
|
|
specified in Geometry module preferences
|
|
|
|
- <b>Global</b> materials are shown in blue color in the list
|
|
|
|
- <b>User</b> materials are shown in black color in the list
|
|
|
|
|
2012-04-16 21:22:45 +06:00
|
|
|
\n If user tries to change a global material, it
|
|
|
|
creates a new user material basing on selected one in the left-side list box.
|
2012-04-13 21:22:52 +06:00
|
|
|
User materials allow changes without creating a new one.
|
|
|
|
Hot keys for the User materials:
|
|
|
|
- "Delete" key delete the selected material from list box
|
|
|
|
- "F2" key allow to rename selected material
|
|
|
|
|
2012-01-12 22:36:50 +06:00
|
|
|
|
|
|
|
<b>Examples:</b>
|
|
|
|
|
|
|
|
\image html material_OCC.png
|
|
|
|
<center><em>Different materials in OCC viewer</em></center>
|
|
|
|
|
|
|
|
\image html material_VTK.png
|
|
|
|
<center><em>Different materials in VTK viewer</em></center>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|