#include <StdPrs_ToolTriangulatedShape.hxx>
◆ ClearOnOwnDeflectionChange()
If presentation has own deviation coefficient and IsAutoTriangulation() is true, function will compare actual coefficients with previous values and will clear triangulation on their change (regardless actual tessellation quality). Function is placed here for compatibility reasons - new code should avoid using IsAutoTriangulation().
- Parameters
-
theShape | [in] the shape |
theDrawer | [in] the display settings |
theToResetCoeff | [in] updates coefficients in theDrawer to actual state to avoid redundant recomputations |
◆ GetDeflection()
Computes the absolute deflection value depending on the type of deflection in theDrawer:
-
Aspect_TOD_RELATIVE: the absolute deflection is computed using the relative deviation coefficient from theDrawer and the shape's bounding box;
-
Aspect_TOD_ABSOLUTE: the maximal chordial deviation from theDrawer is returned.
In case of the type of deflection in theDrawer computed relative deflection for shape is stored as absolute deflection. It is necessary to use it later on for sub-shapes. This function should always be used to compute the deflection value for building discrete representations of the shape (triangulation, wireframe) to avoid inconsistencies between different representations of the shape and undesirable visual artifacts.
◆ IsClosed()
Checks back faces visibility for specified shape (to activate back-face culling).
- Returns
- true if shape is closed manifold Solid or compound of such Solids.
◆ IsTessellated()
Checks whether the shape is properly triangulated for a given display settings.
- Parameters
-
theShape | [in] the shape. |
theDrawer | [in] the display settings. |
◆ IsTriangulated()
◆ Tessellate()
Validates triangulation within the shape and performs tessellation if necessary.
- Parameters
-
theShape | [in] the shape. |
theDrawer | [in] the display settings. |
- Returns
- true if tessellation was recomputed and false otherwise.
The documentation for this class was generated from the following file: