0025132: Visualization - treat any TopoDS_Solid as closed volume
[occt.git] / src / StdPrs / StdPrs_ToolShadedShape.hxx
CommitLineData
fc9b36d6 1// Copyright (c) 2013 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#ifndef _StdPrs_ToolShadedShape_HeaderFile
15#define _StdPrs_ToolShadedShape_HeaderFile
16
17#include <Standard.hxx>
18#include <Standard_DefineAlloc.hxx>
19#include <Standard_Macro.hxx>
20#include <Handle_Poly_Triangulation.hxx>
21
22class TopoDS_Shape;
23class Poly_Triangulation;
24class TopoDS_Face;
25class TopLoc_Location;
26class Poly_Connect;
27class TColgp_Array1OfDir;
28
29class StdPrs_ToolShadedShape
30{
31public:
32
33 DEFINE_STANDARD_ALLOC
34
4769a395 35 //! Similar to BRepTools::Triangulation() but without extra checks.
36 //! @return true if all faces within shape are triangulated.
37 Standard_EXPORT static Standard_Boolean IsTriangulated (const TopoDS_Shape& theShape);
38
fc9b36d6 39 //! Checks back faces visibility for specified shape (to activate back-face culling). <br>
4769a395 40 //! @return true if shape is closed manifold Solid or compound of such Solids. <br>
9a148b08 41 Standard_EXPORT static Standard_Boolean IsClosed(const TopoDS_Shape& theShape);
fc9b36d6 42
9a148b08 43 Standard_EXPORT static Handle_Poly_Triangulation Triangulation(const TopoDS_Face& aFace,
fc9b36d6 44 TopLoc_Location& loc);
45
9a148b08 46 Standard_EXPORT static void Normal(const TopoDS_Face& aFace,
47 Poly_Connect& PC,
48 TColgp_Array1OfDir& Nor);
fc9b36d6 49};
50
51#endif