Open CASCADE Technology
7.1.0.beta
|
#include <StdPrs_ToolTriangulatedShape.hxx>
Static Public Member Functions | |
static Standard_Boolean | IsTriangulated (const TopoDS_Shape &theShape) |
Similar to BRepTools::Triangulation() but without extra checks. More... | |
static Standard_Boolean | IsClosed (const TopoDS_Shape &theShape) |
Checks back faces visibility for specified shape (to activate back-face culling). More... | |
static void | Normal (const TopoDS_Face &theFace, Poly_Connect &thePolyConnect, TColgp_Array1OfDir &theNormals) |
Evaluate normals for a triangle of a face. More... | |
static Standard_Boolean | IsTessellated (const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer) |
Checks whether the shape is properly triangulated for a given display settings. More... | |
static Standard_Boolean | Tessellate (const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer) |
Validates triangulation within the shape and performs tessellation if necessary. More... | |
static void | ClearOnOwnDeflectionChange (const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Boolean theToResetCoeff) |
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(). More... | |
|
static |
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().
theShape | [in] the shape |
theDrawer | [in] the display settings |
theToResetCoeff | [in] updates coefficients in theDrawer to actual state to avoid redundant recomputations |
|
static |
Checks back faces visibility for specified shape (to activate back-face culling).
|
static |
Checks whether the shape is properly triangulated for a given display settings.
theShape | [in] the shape. |
theDrawer | [in] the display settings. |
|
static |
Similar to BRepTools::Triangulation() but without extra checks.
|
static |
Evaluate normals for a triangle of a face.
theFace | [in] the face. |
thePolyConnect | [in] the definition of a face triangulation. |
theNormal | [out] the array of normals for each triangle. |
|
static |
Validates triangulation within the shape and performs tessellation if necessary.
theShape | [in] the shape. |
theDrawer | [in] the display settings. |