summaryrefslogtreecommitdiff
path: root/src/BRepOffsetAPI/BRepOffsetAPI_NormalProjection.cxx
blob: 15bbece4ca605bf36b5000b5c24e1507181315d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// File:	BRepOffsetAPI_OrthogonalProjection.cxx
// Created:	Mon Oct 13 16:36:58 1997
// Author:	Roman BORISOV
//		<rbv@velox.nnov.matra-dtv.fr>

#include <BRepOffsetAPI_NormalProjection.ixx>

 BRepOffsetAPI_NormalProjection::BRepOffsetAPI_NormalProjection()
{
}

 BRepOffsetAPI_NormalProjection::BRepOffsetAPI_NormalProjection(const TopoDS_Shape& S)
{
  myNormalProjector.Init(S);
}

 void BRepOffsetAPI_NormalProjection::Init(const TopoDS_Shape& S) 
{
  myNormalProjector.Init(S);
}

 void BRepOffsetAPI_NormalProjection::Add(const TopoDS_Shape& ToProj) 
{
  myNormalProjector.Add(ToProj);
}

 void BRepOffsetAPI_NormalProjection::SetParams(const Standard_Real Tol3D,const Standard_Real Tol2D,const GeomAbs_Shape InternalContinuity,const Standard_Integer MaxDegree,const Standard_Integer MaxSeg) 
{
  myNormalProjector.SetParams(Tol3D, Tol2D, InternalContinuity, MaxDegree, MaxSeg);
}

 void BRepOffsetAPI_NormalProjection::SetMaxDistance(const Standard_Real MaxDist)
{
  myNormalProjector.SetMaxDistance(MaxDist);
}

 void BRepOffsetAPI_NormalProjection::SetLimit(const Standard_Boolean FaceBounds)
{
  myNormalProjector.SetLimit(FaceBounds);
}

 void BRepOffsetAPI_NormalProjection::Compute3d(const Standard_Boolean With3d)
{
  myNormalProjector.Compute3d(With3d);
}

 void BRepOffsetAPI_NormalProjection::Build() 
{
  myNormalProjector.Build();
  myShape = myNormalProjector.Projection();
  Done();
}

 Standard_Boolean BRepOffsetAPI_NormalProjection::IsDone() const
{
  return myNormalProjector.IsDone();
}

 const TopoDS_Shape& BRepOffsetAPI_NormalProjection::Couple(const TopoDS_Edge& E) const
{
  return myNormalProjector.Couple(E);
}

 const TopTools_ListOfShape& BRepOffsetAPI_NormalProjection::Generated(const TopoDS_Shape& S)
{
  return myNormalProjector.Generated(S);
}

 const TopoDS_Shape& BRepOffsetAPI_NormalProjection::Projection() const
{
  return myNormalProjector.Projection();
}

 const TopoDS_Shape& BRepOffsetAPI_NormalProjection::Ancestor(const TopoDS_Edge& E) const
{
  return myNormalProjector.Ancestor(E);
}

//=======================================================================
//function : BuildWire
//purpose  : 
//=======================================================================
 
 Standard_Boolean BRepOffsetAPI_NormalProjection::BuildWire(TopTools_ListOfShape& ListOfWire) const
{
  return myNormalProjector.BuildWire(ListOfWire);
}