|
||||
File indexing completed on 2025-01-18 10:03:13
0001 // Copyright (c) 2021 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _BrepLib_ToolTriangulatedShape_HeaderFile 0015 #define _BrepLib_ToolTriangulatedShape_HeaderFile 0016 0017 #include <Poly_Connect.hxx> 0018 #include <Poly_Triangulation.hxx> 0019 0020 class TopoDS_Face; 0021 class Poly_Triangulation; 0022 0023 //! Provides methods for calculating normals to Poly_Triangulation of TopoDS_Face. 0024 class BRepLib_ToolTriangulatedShape 0025 { 0026 public: 0027 0028 //! Computes nodal normals for Poly_Triangulation structure using UV coordinates and surface. 0029 //! Does nothing if triangulation already defines normals. 0030 //! @param[in] theFace the face 0031 //! @param[in] theTris the definition of a face triangulation 0032 static void ComputeNormals (const TopoDS_Face& theFace, 0033 const Handle(Poly_Triangulation)& theTris) 0034 { 0035 Poly_Connect aPolyConnect; 0036 ComputeNormals (theFace, theTris, aPolyConnect); 0037 } 0038 0039 //! Computes nodal normals for Poly_Triangulation structure using UV coordinates and surface. 0040 //! Does nothing if triangulation already defines normals. 0041 //! @param[in] theFace the face 0042 //! @param[in] theTris the definition of a face triangulation 0043 //! @param[in,out] thePolyConnect optional, initialized tool for exploring triangulation 0044 Standard_EXPORT static void ComputeNormals (const TopoDS_Face& theFace, 0045 const Handle(Poly_Triangulation)& theTris, 0046 Poly_Connect& thePolyConnect); 0047 0048 }; 0049 0050 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |