0024624: Lost word in license statement in source files
[occt.git] / src / BRepGProp / BRepGProp_Face.lxx
CommitLineData
b311480e 1// Created on: 2005-12-20
2// Created by: Sergey KHROMOV
973c2be1 3// Copyright (c) 2005-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#include <BRep_Tool.hxx>
17
18//=======================================================================
19//function : BRepGProp_Face
20//purpose : Constructor. Initializes the object with IsUseSpan.
21//=======================================================================
22
23inline BRepGProp_Face::BRepGProp_Face(const Standard_Boolean IsUseSpan)
c24d4017 24 : mySReverse (Standard_False),
25 myIsUseSpan(IsUseSpan)
7fd59977 26{
27}
28
29//=======================================================================
30//function : BRepGProp_Face
31//purpose : Constructor.Initializes the object with the face and
32// IsUseSpan flan.
33//=======================================================================
34
35inline BRepGProp_Face::BRepGProp_Face(const TopoDS_Face &F,
36 const Standard_Boolean IsUseSpan)
37 : myIsUseSpan(IsUseSpan)
38{
39 Load(F);
40}
41
42//=======================================================================
43//function : NaturalRestriction
44//purpose : Returns Standard_True if the face is not trimmed.
45//=======================================================================
46
47inline Standard_Boolean BRepGProp_Face::NaturalRestriction() const
48{
49 return BRep_Tool::NaturalRestriction(mySurface.Face());
50}
51
52//=======================================================================
53//function : Value2d
54//purpose : Returns the value of the boundary curve of the face.
55//=======================================================================
56
57inline gp_Pnt2d BRepGProp_Face::Value2d(const Standard_Real U) const
58{
59 return myCurve.Value(U);
60}
61
62//=======================================================================
63//function : D12d
64//purpose : Returns the point of parameter U and the first derivative
65// at this point of a boundary curve.
66//=======================================================================
67
68inline void BRepGProp_Face::D12d(const Standard_Real U,
69 gp_Pnt2d &P,
70 gp_Vec2d &V1) const
71{
72 myCurve.D1(U,P,V1);
73}
74
75//=======================================================================
76//function : FirstParameter
77//purpose : Returns the parametric value of the start point of
78// the current arc of curve.
79//=======================================================================
80
81inline Standard_Real BRepGProp_Face::FirstParameter() const
82{
83 return myCurve.FirstParameter();
84}
85
86//=======================================================================
87//function : LastParameter
88//purpose : Returns the parametric value of the end point of
89// the current arc of curve.
90//=======================================================================
91
92inline Standard_Real BRepGProp_Face::LastParameter() const
93{
94 return myCurve.LastParameter();
95}