2012-08-09 16:03:55 +06:00
|
|
|
/*!
|
|
|
|
|
2014-08-11 19:30:26 +06:00
|
|
|
\page reorient_faces_page Reorient faces
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2014-10-27 15:00:38 +05:00
|
|
|
\n This operation allows changing the orientation of a set faces in the following ways:
|
|
|
|
<ul>
|
2014-11-10 16:21:42 +05:00
|
|
|
<li>The new orientation of a set of neighboring faces can be defined
|
2014-10-27 15:00:38 +05:00
|
|
|
by a vector. <br> Since the direction of face normals in
|
2014-08-11 19:30:26 +06:00
|
|
|
the set can be even opposite, it is necessary to specify a control
|
2014-10-27 15:00:38 +05:00
|
|
|
face, the normal to which will be compared with the vector. This face can be
|
2014-11-10 16:21:42 +05:00
|
|
|
either:
|
|
|
|
<ul>
|
|
|
|
<li>found by proximity to a given point, or</li>
|
|
|
|
<li>specified explicitly.</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Alternatively, the faces can be oriented relatively to the adjacent volumes.</li>
|
2014-10-27 15:00:38 +05:00
|
|
|
</ul>
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2014-10-27 15:00:38 +05:00
|
|
|
The orientation of a face is changed by reverting the order of its nodes.
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
<em>To change orientation of faces:</em>
|
|
|
|
<ol>
|
2014-08-11 19:30:26 +06:00
|
|
|
<li>In the \b Modification menu select <b>Reorient faces</b>
|
|
|
|
item or click <em>Reorient faces</em> button in the toolbar.
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
<center>
|
|
|
|
\image html reorient_faces_face.png
|
2014-08-11 19:30:26 +06:00
|
|
|
<em>"Reorient faces" button</em>
|
2012-08-09 16:03:55 +06:00
|
|
|
</center>
|
2014-11-10 16:21:42 +05:00
|
|
|
</li>
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2014-11-10 16:21:42 +05:00
|
|
|
<li>In the "Reorient faces" dialog box
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
<ul>
|
2014-08-11 19:30:26 +06:00
|
|
|
<li>Select the \b Object (mesh, sub-mesh or group)
|
|
|
|
containing faces to reorient, in the Object Browser or in the 3D
|
|
|
|
Viewer.</li>
|
2014-11-10 16:21:42 +05:00
|
|
|
|
|
|
|
<li>To reorient according to vector:
|
|
|
|
<ul>
|
2014-08-11 19:30:26 +06:00
|
|
|
<li>Specify the coordinates of the \b Point by which the control face
|
2014-10-27 15:00:38 +05:00
|
|
|
will be found. You can easy specify the \b
|
2014-08-11 19:30:26 +06:00
|
|
|
Point by either picking a node in the 3D Viewer or selecting a vertex
|
|
|
|
in the Object Browser. It is possible to pick the \b Face by mouse in
|
|
|
|
the 3D Viewer or enter its ID.</li>
|
|
|
|
<li>Set up the \b Direction vector to be compared with the normal of the
|
|
|
|
control face. If you pick a node in the 3D Viewer then the \b Direction
|
|
|
|
vector will go from the coordinate system origin to the selected node.
|
|
|
|
If you pick two nodes (holding Shift button) then the \b Direction vector
|
2014-11-10 16:21:42 +05:00
|
|
|
will go from the first to the second node.</li>
|
|
|
|
</ul>
|
2014-10-27 15:00:38 +05:00
|
|
|
|
|
|
|
<br>
|
2014-11-10 16:21:42 +05:00
|
|
|
<center>
|
|
|
|
\image html reorient_2d_point.png "The orientation of adjacent faces is chosen according to a vector. The control face is found by point."
|
|
|
|
</center>
|
2014-10-27 15:00:38 +05:00
|
|
|
|
2014-11-10 16:21:42 +05:00
|
|
|
</li>
|
2014-10-27 15:00:38 +05:00
|
|
|
|
2014-11-10 16:21:42 +05:00
|
|
|
<li>In the second mode it is possible to directly input the \b Face ID in the corresponding field.
|
|
|
|
|
|
|
|
<center>
|
|
|
|
\image html reorient_2d_face.png "The orientation of adjacent faces is chosen according to a vector. The control face is explicitly given."
|
2014-10-27 15:00:38 +05:00
|
|
|
</center>
|
|
|
|
|
2014-11-10 16:21:42 +05:00
|
|
|
</li>
|
2014-10-27 15:00:38 +05:00
|
|
|
|
2014-11-10 16:21:42 +05:00
|
|
|
<li>In the third mode, the faces can be reoriented according to volumes:
|
|
|
|
<ul>
|
2014-08-11 19:30:26 +06:00
|
|
|
<li>Select an object (mesh, sub-mesh or group) containing
|
|
|
|
reference \b Volumes, in the Object Browser or in the 3D
|
|
|
|
Viewer.</li>
|
|
|
|
<li>Specify whether face normals should point outside or inside
|
|
|
|
the reference volumes using <b>Face normal outside volume</b>
|
2014-11-10 16:21:42 +05:00
|
|
|
check-box.</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<center>
|
|
|
|
\image html reorient_2d_volume.png "The orientation of faces is chosen with relation to adjacent volumes."
|
|
|
|
</center>
|
|
|
|
|
2012-08-09 16:03:55 +06:00
|
|
|
</li>
|
2014-11-10 16:21:42 +05:00
|
|
|
</ul>
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
<li>Click the \b Apply or <b>Apply and Close</b> button to confirm the operation.</li>
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<br><b>See Also</b> a sample TUI Script of a
|
2014-08-11 19:30:26 +06:00
|
|
|
\ref tui_reorient_faces "Reorient faces" operation.
|
2012-08-09 16:03:55 +06:00
|
|
|
|
|
|
|
*/
|