summaryrefslogtreecommitdiff
path: root/inc/IntCurvesFace_ShapeIntersector.lxx
blob: a3a3a021d5e08e4baa9f079c75a75acbd4dcc97e (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
// File:	IntCurvesFace_ShapeIntersector.lxx
// Created:	Wed Jan 28 10:10:37 1998
// Author:	Laurent BUCHARD
//		<lbr@cracbox.paris1.matra-dtv.fr>



#include <IntCurvesFace_Intersector.hxx>


inline Standard_Integer IntCurvesFace_ShapeIntersector::NbPnt() const { 
  return(IndexPt.Length());
}

inline  Standard_Real IntCurvesFace_ShapeIntersector::UParameter(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->UParameter(IndexIntPnt(IndexPt(i))));
}

inline  Standard_Real IntCurvesFace_ShapeIntersector::VParameter(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->VParameter(IndexIntPnt(IndexPt(i))));
}

inline  Standard_Real IntCurvesFace_ShapeIntersector::WParameter(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->WParameter(IndexIntPnt(IndexPt(i))));
}

inline  const gp_Pnt& IntCurvesFace_ShapeIntersector::Pnt(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->Pnt(IndexIntPnt(IndexPt(i))));
}

inline  IntCurveSurface_TransitionOnCurve  IntCurvesFace_ShapeIntersector::Transition(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->Transition(IndexIntPnt(IndexPt(i))));
}

inline  TopAbs_State  IntCurvesFace_ShapeIntersector::State(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->State(IndexIntPnt(IndexPt(i))));
}


inline  const TopoDS_Face&  IntCurvesFace_ShapeIntersector::Face(const Standard_Integer i) const { 
  IntCurvesFace_Intersector *Ptr =
    (IntCurvesFace_Intersector *)(PtrIntersector(IndexFace(IndexPt(i))));
  return(Ptr->Face());
}

inline Standard_Boolean IntCurvesFace_ShapeIntersector::IsDone() const {
  return(done);
}